BenchmarkDotNet icon indicating copy to clipboard operation
BenchmarkDotNet copied to clipboard

[FeatureRequest] Summary: data from Analyzers.

Open ig-sinicyn opened this issue 9 years ago • 1 comments

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.

ig-sinicyn avatar Dec 10 '16 18:12 ig-sinicyn

Makes sense to me, will be implemented.

AndreyAkinshin avatar Dec 12 '16 13:12 AndreyAkinshin