Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
profiler: handle low Windows timer resolution for metrics profile tests
The Windows system timer resolution is about 15 milliseconds (see https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/high-resolution-timers#controlling-timer-accuracy) This caused the metrics profile tests from #2865 to fail because the metrics profiler will likely be stopped in less than 15 milliseconds, meaning we'll see 0 duration between profile collection and log an error. Drop TestMetricsProfileStopEarlyNoLog because it's not going to be useful if the timer resolution is that low. Bump the period in TestShortMetricsProfile from 10ms to 20ms so that the Windows timer will (hopefully) be able to actually measure the duration.
- Loading branch information