-
Notifications
You must be signed in to change notification settings - Fork 5k
Add an option so perf jit dump can optionally use TSC for timestamps. #110809
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
Comments
This comment has been minimized.
This comment has been minimized.
Tagging subscribers to this area: @tommcdon |
This comment has been minimized.
This comment has been minimized.
This issue about Linux perf tool support. Historically, this fell into area-Diagnostics (for example, check dotnet/coreclr#26897, #229, #99986, ...). @tommcdon Is it intentional that we want Linux perf tool support to be tracked under CodeGen now? |
This comment has been minimized.
This comment has been minimized.
Thanks Jan! Moving to dotnet-diagnostics-coreclr - I had originally read this issue as being an RyuJIT request |
Since I will try to implement this, can I get some guidance if there is a specific method to call to get |
You can
We use |
This question was also if I needed to use some helper method like what GetTimestampNs uses. |
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to make perf with Intel PT works with RyuJIT.
It currently doesn't work because Intel PT use TSC as a timestamp, and RyuJIT uses the monotonic clock for the dump timestamp.
The change would read the environment variable flag
JITDUMP_USE_ARCH_TIMESTAMP
, and when this flag is true, change the behavior of GetTimeStampNS to use __rdtsc, and also set the file header flag JITDUMP_FLAGS_ARCH_TIMESTAMPI'm open to do the contribution, but I have next to no experience with C++.
The text was updated successfully, but these errors were encountered: