Closed Bug 1503959 Opened 6 years ago Closed 2 years ago

Tracelogger: use rdtscp for event timing

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox65 --- affected

People

(Reporter: denispal, Assigned: denispal)

References

Details

If the CPU supports an invariant TSC (which is most modern x86 CPU's), then we can use the rdtscp instruction for event timing.  Along with the TSC, it will return a processor signature that tells you whether or not the thread has changed cores.  On the off chance that the TSC is not synchronized across cores by the OS, we can then resync the tsc manually to mozilla::TimeStamp whenever the thread switches cores.
Priority: -- → P3
See Also: → 1497018
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.