aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/nm/nm.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/nm/nm.go')
-rw-r--r--src/cmd/nm/nm.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/nm/nm.go b/src/cmd/nm/nm.go
index 78fa60014b..62cf155362 100644
--- a/src/cmd/nm/nm.go
+++ b/src/cmd/nm/nm.go
@@ -13,6 +13,7 @@ import (
"sort"
"cmd/internal/objfile"
+ "cmd/internal/telemetry"
)
const helpText = `usage: go tool nm [options] file...
@@ -67,8 +68,11 @@ func (nflag) String() string {
func main() {
log.SetFlags(0)
+ telemetry.Start()
flag.Usage = usage
flag.Parse()
+ telemetry.Inc("nm/invocations")
+ telemetry.CountFlags("nm/flag:", *flag.CommandLine)
switch *sortOrder {
case "address", "name", "none", "size":