Open Bug 1651843 Opened 4 years ago Updated 4 years ago

Investigate using SetWaitableTimer instead of Sleep in Windows sampler loop

Categories

(Core :: Gecko Profiler, enhancement, P3)

Unspecified
Windows
enhancement

Tracking

()

People

(Reporter: mozbugz, Unassigned)

References

Details

:mstange suggested that we may want to replace ::Sleep(milliseconds) in the profiler Sampler loop with SetWaitableTimer, which has a better-that-millisecond precision.
But we should verify that it can in fact sleep for less than a millisecond.

This could potentially help with bug 1574815 (effective minimum sampling interval is 2ms on Windows).

You need to log in before you can comment on or make changes to this bug.