Skip to content

Remove our RDTSC code? #4563

@RalfJung

Description

@RalfJung

In #4524 we gained some code to directly access the x86 RDTSC clock for profiling purposes. However, on almost all systems, std::time::Instant should already be using that clock. So maybe instead of carrying such low-level code we should document how to diagnose and potentially work-around the case where the kernel doesn't trust the RDTSC clock? If the clock is so unstable that the kernel doesn't use it, maybe it's also not a great fit for profiling...

See the discussion here.
Cc @Stypox

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-devArea: working on Miri as a developerC-proposalCategory: a proposal for something we might want to do, or maybe not; details still being worked out

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions