golang/src/cmd/covdata
Michael Matloob eef288da1e cmd: add telemetry for commands in cmd
This change modifies the commands in cmd to open counter files,
increment invocations counters and to increment counters for the names
of the flags that were passed in.

cmd/pprof and cmd/vet are both wrappers around tools defined in other
modules which do their own flag processing so we can't directly
increment flag counters right after flags are parsed. For those two
commands we wait to increment counters until after the programs have
returned.

cmd/dist is built with the bootstrap go so it can't depend on telemetry
yet. We can add telemetry support to it once 1.23 is the minimum
bootstrap version.

For #58894

Change-Id: Ic7f6009992465e55c56ad4dc6451bcb1ca51374a
Reviewed-on: https://go-review.googlesource.com/c/go/+/585235
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-05-14 19:41:17 +00:00
..
testdata
argsmerge.go cmd: use slices.Equal to simplify code 2023-05-10 10:18:37 +00:00
covdata.go cmd: add telemetry for commands in cmd 2024-05-14 19:41:17 +00:00
doc.go cmd: fix mismatched symbols 2023-10-03 12:57:25 +00:00
dump.go internal/coverage/cformat: add aggregation option to EmitPercent 2023-05-23 11:36:57 +00:00
export_test.go
merge.go cmd/covdata: relax mode clash policy for selected operations 2023-05-23 11:36:37 +00:00
metamerge.go cmd/covdata: fix typo in comment 2024-03-12 17:17:47 +00:00
subtractintersect.go cmd/{cover,covdata}: minor code cleanups 2022-10-12 12:50:46 +00:00
tool_test.go all: remove redundant string conversions when formatting []byte with %s 2024-03-07 20:46:32 +00:00