dotnet / dotnet/BenchmarkDotNet

[FeatureRequest] Summary: data from Analyzers.

Open
#324 1 comment 0 reactions 1 assignee Claimed by @AndreyAkinshin View on GitHub
Area:Exporters enhancement
Dominant language
C#
Stars
11.5k
Forks
1.1k
Avg merge
6d 11h
Merged PRs (30d)
12

Description

Subj:)

Real-world scenario: I have some values that are determined during analysis pass and I want to include them into summary table. Current implementation initializes the table immediately after benchmark run so there's no way to pass the values from the analyzer.

So far there are two options I thought about:

* Do not init the table until all analysers are complete. Will break all analyzers that use `summary.Table`. Not a bad thing though, as the table contains only text values and the code has to parse them to obtain numbers. It shall fail anyway, so the change is not so breaking:)

* Or, add `GetColumnProvider()` to the `IAnalyzer` and add columns from it on analysis pass completion. It will make code much more complex as you'll had to insert/replace columns (if there are old ones with same Ids) dynamically.

NB I'll be satisfied with any another solution, these two are just an example.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.