Skip to content

Add an option so perf jit dump can optionally use TSC for timestamps. #110809

@Kuinox

Description

@Kuinox

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++.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Diagnostics-coreclrenhancementProduct code improvement that does NOT require public API changes/additionsin-prThere is an active PR which will close this issue when it is merged

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions