]> Cypherpunks repositories - gostls13.git/commit
runtime: fix EvFrequency event value on Windows in the new tracer
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 28 Feb 2024 22:24:48 +0000 (22:24 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 8 Mar 2024 19:59:54 +0000 (19:59 +0000)
commit707eba9b941230be1afe809466afa3465ed60fdb
tree670fb1a214ecdf68916dcd12dd2253c1e189bf0d
parentccfcc30f3e3ce90bad0b7a40f79eee78da6adb47
runtime: fix EvFrequency event value on Windows in the new tracer

The value produced for the EvFrequency event on Windows is missing the
fact that the cputicks clock gets divided. This results in durations
that are consistently wrong by the same factor (about 256).

Fixes #65997.

Change-Id: I930cbfce3499d435c20699f41c11e3227d84f911
Reviewed-on: https://go-review.googlesource.com/c/go/+/567937
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/trace2time.go