]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: formalize the trace clock
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 12 May 2023 21:13:06 +0000 (21:13 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 19 May 2023 18:01:57 +0000 (18:01 +0000)
commitb60db8f7d92fb2c87b6f416ebb38a6924978aa8c
tree4ea638ba067628daf3340084ae0e247dc63a5b40
parentdc4993e7c633be8c1d77c7242607cc1e23668d9b
runtime: formalize the trace clock

Currently the trace clock is cputicks() with comments sprinkled in
different places as to which clock to use. Since the execution tracer
redesign will use a different clock, it seems like a good time to clean
that up.

Also, rename the start/end timestamps to be more readable (i.e.
startTime vs. timeStart).

Change-Id: If43533eddd0e5f68885bb75cdbadb38da42e7584
Reviewed-on: https://go-review.googlesource.com/c/go/+/494775
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/proc.go
src/runtime/trace.go