Skip to content

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

Open
@Kuinox

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area-Diagnostics-coreclrenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions