File tree 1 file changed +4
-0
lines changed 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import (
36
36
"cmd/internal/objabi"
37
37
"cmd/internal/quoted"
38
38
"cmd/internal/sys"
39
+ "cmd/internal/telemetry"
39
40
"cmd/link/internal/benchmark"
40
41
"flag"
41
42
"internal/buildcfg"
@@ -155,6 +156,8 @@ func (t *ternaryFlag) IsBoolFlag() bool { return true } // parse like a boolean
155
156
func Main (arch * sys.Arch , theArch Arch ) {
156
157
log .SetPrefix ("link: " )
157
158
log .SetFlags (0 )
159
+ telemetry .Start ()
160
+ telemetry .Inc ("link/invocations" )
158
161
159
162
thearch = theArch
160
163
ctxt := linknew (arch )
@@ -200,6 +203,7 @@ func Main(arch *sys.Arch, theArch Arch) {
200
203
objabi .Flagfn1 ("importcfg" , "read import configuration from `file`" , ctxt .readImportCfg )
201
204
202
205
objabi .Flagparse (usage )
206
+ telemetry .CountFlags ("link/flag:" , * flag .CommandLine )
203
207
204
208
if ctxt .Debugvlog > 0 {
205
209
// dump symbol info on crash
You can’t perform that action at this time.
0 commit comments