]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/telemetry: add NewStackCounter functions
authorMichael Matloob <matloob@golang.org>
Tue, 30 Apr 2024 20:23:24 +0000 (16:23 -0400)
committerMichael Matloob <matloob@golang.org>
Wed, 1 May 2024 17:37:58 +0000 (17:37 +0000)
commit660a071906a3f010a947457521b7671041b5f737
treeea40b1ec5e72a81fdbcce76edcf1c1e0083437d7
parentc5698e31552953a0487ec23e0a015c02067065d3
cmd/internal/telemetry: add NewStackCounter functions

This CL adds a wrapper for the golang.org/x/telemetry/counter.NewStack
function so that it can be used by the compiler.

Also add build constraints for compiler_bootstrap to build the stubs
when we're bootstrapping the compiler.

For #58894

Change-Id: Icdbdd7aa6d2a3f1147112739c6939e14414f5ee9
Cq-Include-Trybots: luci.golang.try:gotip-linux-arm64-longtest,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/582695
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
src/cmd/internal/telemetry/telemetry.go
src/cmd/internal/telemetry/telemetry_bootstrap.go