| 1 | // Copyright 2020 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package event_testscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/ |
| 6 | |
| 7 | import ( |
| 8 | "contextscip-go gomod github.com/golang/go/src go1.25.0 context/" |
| 9 | "ioscip-go gomod github.com/golang/go/src go1.25.0 io/" |
| 10 | "logscip-go gomod github.com/golang/go/src go1.25.0 log/" |
| 11 | "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/" |
| 12 | |
| 13 | "golang.org/x/tools/internal/eventscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event`/" |
| 14 | "golang.org/x/tools/internal/event/corescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/" |
| 15 | "golang.org/x/tools/internal/event/exportscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/export`/" |
| 16 | "golang.org/x/tools/internal/event/keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/" |
| 17 | "golang.org/x/tools/internal/event/labelscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/label`/" |
| 18 | ) |
| 19 | |
| 20 | type Hooksscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks# struct { |
| 21 | Ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#A. func(ctx contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, a int) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) |
| 22 | Bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#B. func(ctx contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, b string) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) |
| 23 | } |
| 24 | |
| 25 | var ( |
| 26 | aValuescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/aValue. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewIntscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewInt().("a", "") |
| 27 | bValuescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/bValue. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewStringscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewString().("b", "") |
| 28 | aCountscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/aCount. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewIntscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewInt().("aCount", "Count of time A is called.") |
| 29 | aStatscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/aStat. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewIntscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewInt().("aValue", "A value.") |
| 30 | bCountscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/bCount. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewIntscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewInt().("B", "Count of time B is called.") |
| 31 | bLengthscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/bLength. = keysscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/.NewIntscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/NewInt().("BLen", "B length.") |
| 32 | |
| 33 | Baselinescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Baseline. = Hooksscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#{ |
| 34 | Ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#A.: func(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Baseline:ctx. contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Baseline:a. int) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) { |
| 35 | return ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Baseline:ctx., func() {} |
| 36 | }, |
| 37 | Bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#B.: func(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Baseline:ctx. contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Baseline:b. string) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) { |
| 38 | return ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Baseline:ctx., func() {} |
| 39 | }, |
| 40 | } |
| 41 | |
| 42 | StdLogscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/StdLog. = Hooksscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#{ |
| 43 | Ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#A.: func(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/StdLog:ctx. contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/StdLog:a. int) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) { |
| 44 | logscip-go gomod github.com/golang/go/src go1.25.0 log/.Printfscip-go gomod github.com/golang/go/src go1.25.0 log/Printf().("A where a=%d", ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/StdLog:a.) |
| 45 | return ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/StdLog:ctx., func() {} |
| 46 | }, |
| 47 | Bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#B.: func(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/StdLog:ctx. contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/StdLog:b. string) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) { |
| 48 | logscip-go gomod github.com/golang/go/src go1.25.0 log/.Printfscip-go gomod github.com/golang/go/src go1.25.0 log/Printf().("B where b=%q", bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/StdLog:b.) |
| 49 | return ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/StdLog:ctx., func() {} |
| 50 | }, |
| 51 | } |
| 52 | |
| 53 | Logscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log. = Hooksscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#{ |
| 54 | Ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#A.: func(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log:ctx. contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log:a. int) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) { |
| 55 | corescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/.Log1scip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/Log1().(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log:ctx., "A", aValuescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/aValue..Ofscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/Int#Of().(ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log:a.)) |
| 56 | return ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log:ctx., func() {} |
| 57 | }, |
| 58 | Bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#B.: func(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log:ctx. contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log:b. string) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) { |
| 59 | corescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/.Log1scip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/Log1().(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log:ctx., "B", bValuescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/bValue..Ofscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/String#Of().(bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log:b.)) |
| 60 | return ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log:ctx., func() {} |
| 61 | }, |
| 62 | } |
| 63 | |
| 64 | Tracescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Trace. = Hooksscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#{ |
| 65 | Ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#A.: func(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Trace:ctx. contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Trace:a. int) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) { |
| 66 | return corescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/.Start1scip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/Start1().(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Trace:ctx., "A", aValuescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/aValue..Ofscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/Int#Of().(ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Trace:a.)) |
| 67 | }, |
| 68 | Bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#B.: func(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Trace:ctx. contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Trace:b. string) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) { |
| 69 | return corescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/.Start1scip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/Start1().(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Trace:ctx., "B", bValuescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/bValue..Ofscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/String#Of().(bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Trace:b.)) |
| 70 | }, |
| 71 | } |
| 72 | |
| 73 | Statsscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats. = Hooksscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#{ |
| 74 | Ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#A.: func(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:ctx. contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:a. int) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) { |
| 75 | corescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/.Metric1scip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/Metric1().(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:ctx., aStatscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/aStat..Ofscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/Int#Of().(ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:a.)) |
| 76 | corescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/.Metric1scip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/Metric1().(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:ctx., aCountscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/aCount..Ofscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/Int#Of().(1)) |
| 77 | return ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:ctx., func() {} |
| 78 | }, |
| 79 | Bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#B.: func(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:ctx. contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:b. string) (contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, func()) { |
| 80 | corescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/.Metric1scip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/Metric1().(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:ctx., bLengthscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/bLength..Ofscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/Int#Of().(len(bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:b.))) |
| 81 | corescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/.Metric1scip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/Metric1().(ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:ctx., bCountscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/bCount..Ofscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/keys`/Int#Of().(1)) |
| 82 | return ctxscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats:ctx., func() {} |
| 83 | }, |
| 84 | } |
| 85 | |
| 86 | initialListscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/initialList. = []int{0, 1, 22, 333, 4444, 55555, 666666, 7777777} |
| 87 | stringListscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/stringList. = []string{ |
| 88 | "A value", |
| 89 | "Some other value", |
| 90 | "A nice longer value but not too long", |
| 91 | "V", |
| 92 | "", |
| 93 | "ı", |
| 94 | "prime count of values", |
| 95 | } |
| 96 | ) |
| 97 | |
| 98 | type namedBenchmarkscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/namedBenchmark# struct { |
| 99 | namescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/namedBenchmark#name. string |
| 100 | testscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/namedBenchmark#test. func(*testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Bscip-go gomod github.com/golang/go/src go1.25.0 testing/B#) |
| 101 | } |
| 102 | |
| 103 | func Benchmarkscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Benchmark().(b *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Bscip-go gomod github.com/golang/go/src go1.25.0 testing/B#) { |
| 104 | b.Runscip-go gomod github.com/golang/go/src go1.25.0 testing/B#Run().("Baseline", Baselinescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Baseline..runBenchmarkscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#runBenchmark().) |
| 105 | b.Runscip-go gomod github.com/golang/go/src go1.25.0 testing/B#Run().("StdLog", StdLogscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/StdLog..runBenchmarkscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#runBenchmark().) |
| 106 | benchmarks := []namedBenchmarkscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/namedBenchmark#{ |
| 107 | {"Log", Logscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Log..runBenchmarkscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#runBenchmark().}, |
| 108 | {"Trace", Tracescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Trace..runBenchmarkscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#runBenchmark().}, |
| 109 | {"Stats", Statsscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Stats..runBenchmarkscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#runBenchmark().}, |
| 110 | } |
| 111 | |
| 112 | eventscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event`/.SetExporterscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event`/SetExporter().(nil) |
| 113 | for _, t := range benchmarks { |
| 114 | b.Runscip-go gomod github.com/golang/go/src go1.25.0 testing/B#Run().(t.namescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/namedBenchmark#name.+"NoExporter", t.testscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/namedBenchmark#test.) |
| 115 | } |
| 116 | |
| 117 | eventscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event`/.SetExporterscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event`/SetExporter().(noopExporterscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/noopExporter().) |
| 118 | for _, t := range benchmarks { |
| 119 | b.Runscip-go gomod github.com/golang/go/src go1.25.0 testing/B#Run().(t.namescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/namedBenchmark#name.+"Noop", t.testscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/namedBenchmark#test.) |
| 120 | } |
| 121 | |
| 122 | eventscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event`/.SetExporterscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event`/SetExporter().(exportscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/export`/.Spansscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/export`/Spans().(exportscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/export`/.LogWriterscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/export`/LogWriter().(ioscip-go gomod github.com/golang/go/src go1.25.0 io/.Discardscip-go gomod github.com/golang/go/src go1.25.0 io/Discard., false))) |
| 123 | for _, t := range benchmarks { |
| 124 | b.Runscip-go gomod github.com/golang/go/src go1.25.0 testing/B#Run().(t.namescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/namedBenchmark#name., t.testscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/namedBenchmark#test.) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | func Ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/A().(ctx contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, hooks Hooksscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#, a int) int { |
| 129 | ctx, done := hooks.Ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#A.(ctx, a) |
| 130 | defer done() |
| 131 | return Bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/B().(ctx, hooks, a, stringListscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/stringList.[a%len(stringListscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/stringList.)]) |
| 132 | } |
| 133 | |
| 134 | func Bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/B().(ctx contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, hooks Hooksscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#, a int, b string) int { |
| 135 | _, done := hooks.Bscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#B.(ctx, b) |
| 136 | defer done() |
| 137 | return a + len(b) |
| 138 | } |
| 139 | |
| 140 | func (hooks Hooksscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#) runBenchmarkscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/Hooks#runBenchmark().(b *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Bscip-go gomod github.com/golang/go/src go1.25.0 testing/B#) { |
| 141 | ctx := contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Backgroundscip-go gomod github.com/golang/go/src go1.25.0 context/Background().() |
| 142 | b.ReportAllocsscip-go gomod github.com/golang/go/src go1.25.0 testing/B#ReportAllocs().() |
| 143 | |
| 144 | var acc int |
| 145 | for b.Loopscip-go gomod github.com/golang/go/src go1.25.0 testing/B#Loop().() { |
| 146 | for _, value := range initialListscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/initialList. { |
| 147 | acc += Ascip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/A().(ctx, hooks, value) |
| 148 | } |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | func initscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/init().() { |
| 153 | logscip-go gomod github.com/golang/go/src go1.25.0 log/.SetOutputscip-go gomod github.com/golang/go/src go1.25.0 log/SetOutput().(ioscip-go gomod github.com/golang/go/src go1.25.0 io/.Discardscip-go gomod github.com/golang/go/src go1.25.0 io/Discard.) |
| 154 | } |
| 155 | |
| 156 | func noopExporterscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event_test`/noopExporter().(ctx contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context#, ev corescip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/.Eventscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/core`/Event#, lm labelscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/label`/.Mapscip-go gomod golang.org/x/tools . `golang.org/x/tools/internal/event/label`/Map#) contextscip-go gomod github.com/golang/go/src go1.25.0 context/.Contextscip-go gomod github.com/golang/go/src go1.25.0 context/Context# { |
| 157 | return ctx |
| 158 | } |