]> Cypherpunks repositories - gostls13.git/commit
runtime: add traceEnabled function
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 9 May 2023 19:36:13 +0000 (19:36 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 11 May 2023 19:07:33 +0000 (19:07 +0000)
commit3e9876cd3a5a83be9bb0f5cbc600aadf9b599558
tree8674101155457416e920569be3c32e4ebafadbaa
parenta2737b1aab2d351792291c5967147220f9327dc4
runtime: add traceEnabled function

This change introduces the trivial traceEnabled function to help tighten
up the execution tracer's API in preparation for the execution trace
redesign GOEXPERIMENT.

A follow-up change will refactor the runtime to use it.

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