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
JitStatsDiagnoser #2243
JitStatsDiagnoser #2243
Conversation
Also, I am not sure if |
Thanks @adamsitnik . This should definitely help us in reproing and investigating performance issues. We can add more columns as and when we have a need, but this is a good starter. |
@adamsitnik nice! |
This is the number of |
Ah, right. |
I do, please go ahead and send a PR. BTW I was also wondering whether we should filter the methods by namespace and for example remove all BenchmarkDotNet* methods from the report. |
This event is emitted when a background thread starts jitting to tier up and includes info about how many methods were pending jitting at that time. The corresponding |
Are there any plans to make this diagnoser available via attribute? |
@KeterSCP There are not, but you can send a PR that adds such an attribute. Here you can find existing attributes for similar diagnosers: https://github.com/dotnet/BenchmarkDotNet/tree/master/src/BenchmarkDotNet.Diagnostics.Windows/Configs |
I'm currently working on improving System.CommandLine (mainly design, but also perf).
One of the things unique about S.CL is that it's typically used just once, during process startup time. So what matters is the number of JIT compilations. I've implemented this simple diagnoser that prints simple JIT stats.
Sample usage:
@AndyAyersMS @kunalspathak @stephentoub @EgorBo @kouvel I am opened to extending it, but I need your feedback before I invest my time. I know that PerfView offers more: