Add an option so perf jit dump can optionally use TSC for timestamps. #110809
Open
Description
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_TIMESTAMP
I'm open to do the contribution, but I have next to no experience with C++.
Activity