-
-
Notifications
You must be signed in to change notification settings - Fork 970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: Include hardware counters in XML output #2233
Comments
Hi! We are most likely just missing this information. Please send a PR that fixes it, you should be able to achieve that by modifying the JSON exporter here:
and DTOs used by the XML exporter here: BenchmarkDotNet/src/BenchmarkDotNet/Exporters/Xml/SummaryDto.cs Lines 65 to 73 in 82f03f4
We have tests that verify the output of the exported files, you will need to update them as well. cd .\tests\BenchmarkDotNet.Tests\
dotnet test -c Release -f net7.0 |
Hi @adamsitnik ! I can take this issue and fix it. I noted the following with the initial request,
BenchmarkDotNet/src/BenchmarkDotNet/Exporters/Json/JsonExporterBase.cs Lines 113 to 116 in 0a734a9
|
Hi @nazulg
Awesome!
👍
Would it be possible to always add the required columns when |
Hi @adamsitnik!, Great! Yes, that will be better to add the required columns based on the AddHardwareCounters call, I will get this change too. Thank you. |
Hi @adamsitnik , I am trying to push a PR but getting a 403 permissions error, do I need permissions to the repository to send a PR? "remote: Permission to dotnet/BenchmarkDotNet.git denied to nazulg" Thank you. |
@nazulg You need to fork the repository, make a branch in your fork and apply the changes, then open the PR with that branch from your fork. There's a button at the top of the main page to easily fork the repo. |
…lumns for output based on Hardware Counters when using ManualConfig. Fix dotnet#2233
Thank you @timcassell ! I created a draft PR, I included verified text files since they were needed in my local to pass the test, but not sure if they should be included? Thank you. |
* Adds Metrics Columns to Benchmark Report for XmlExporter, and adds columns for output based on Hardware Counters when using ManualConfig. Fix #2233 * Removed changes to ManualConfig that were not needed and introduced in a past commit of this PR.
Hi. I've lost a couple of hours now trying to coax BenchmarkDotNet to output hardware counters in a XML or JSON file. Default job configuration outputs them in the console report and CSV file, but not matter what I do (even following CSV export example), I run into the following troubles:
HW counters DO get shown in the console summary.
Any suggestions?
Sample code:
The text was updated successfully, but these errors were encountered: