Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime: cpu profiler to use high resolution timers on Windows
The CPU profiler skip samples if the sampling rate is too high for the system timer resolution. This CL uses high resolution timers on Windows when available, to avoid this problem. Note that the default sampling rate (100Hz) is already too high for the Windows timer resolution (15.6ms), so this CL also improves the default Windows sampling coverage. Not adding regression tests, as they would be too flaky. Fixes #61665 Change-Id: Ifdadabc9ebaf56f397eac517bd0e5f1502b956b3 Reviewed-on: https://go-review.googlesource.com/c/go/+/514375 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Run-TryBot: Quim Muntal <[email protected]> Reviewed-by: David Chase <[email protected]>
- Loading branch information