Debian Codegraph @

profile/prune_test.go

raw symbols SCIP
1 // Copyright 2014 Google Inc. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 package profilescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/
16
17 import (
18 "stringsscip-go gomod github.com/golang/go/src go1.24.0 strings/"
19 "testingscip-go gomod github.com/golang/go/src go1.24.0 testing/"
20 )
21
22 func TestPrunescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/TestPrune().(t *testingscip-go gomod github.com/golang/go/src go1.24.0 testing/.Tscip-go gomod github.com/golang/go/src go1.24.0 testing/T#) {
23 for _, test := range []struct {
24 in *Profilescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#
25 want string
26 }{
27 {in1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/in1., out1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/out1.},
28 {in2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/in2., out2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/out2.},
29 } {
30 in := test.in.Copyscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#Copy().()
31 in.RemoveUninterestingscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#RemoveUninteresting().()
32 if err := in.CheckValidscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#CheckValid().(); err != nil {
33 t.Errorscip-go gomod github.com/golang/go/src go1.24.0 testing/common#Error().(err)
34 }
35 w := stringsscip-go gomod github.com/golang/go/src go1.24.0 strings/.Splitscip-go gomod github.com/golang/go/src go1.24.0 strings/Split().(test.want, "\n")
36 for i, g := range stringsscip-go gomod github.com/golang/go/src go1.24.0 strings/.Splitscip-go gomod github.com/golang/go/src go1.24.0 strings/Split().(in.Stringscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#String().(), "\n") {
37 if i >= len(w) {
38 t.Fatalfscip-go gomod github.com/golang/go/src go1.24.0 testing/common#Fatalf().("got trailing %s", g)
39 }
40 if stringsscip-go gomod github.com/golang/go/src go1.24.0 strings/.TrimSpacescip-go gomod github.com/golang/go/src go1.24.0 strings/TrimSpace().(g) != stringsscip-go gomod github.com/golang/go/src go1.24.0 strings/.TrimSpacescip-go gomod github.com/golang/go/src go1.24.0 strings/TrimSpace().(w[i]) {
41 t.Fatalfscip-go gomod github.com/golang/go/src go1.24.0 testing/common#Fatalf().(`%d: got: "%s" want:"%s"`, i, g, w[i])
42 }
43 }
44 }
45 }
46
47 var funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs. = []*Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#{
48 {IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#ID.: 1, Namescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Name.: "main", SystemNamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#SystemName.: "main", Filenamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Filename.: "main.c"},
49 {IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#ID.: 2, Namescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Name.: "fun1", SystemNamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#SystemName.: "fun1", Filenamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Filename.: "fun.c"},
50 {IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#ID.: 3, Namescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Name.: "fun2", SystemNamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#SystemName.: "fun2", Filenamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Filename.: "fun.c"},
51 {IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#ID.: 4, Namescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Name.: "fun3", SystemNamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#SystemName.: "fun3", Filenamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Filename.: "fun.c"},
52 {IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#ID.: 5, Namescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Name.: "fun4", SystemNamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#SystemName.: "fun4", Filenamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Filename.: "fun.c"},
53 {IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#ID.: 6, Namescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Name.: "fun5", SystemNamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#SystemName.: "fun5", Filenamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Filename.: "fun.c"},
54 {IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#ID.: 7, Namescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Name.: "unsimplified_fun(int)", SystemNamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#SystemName.: "unsimplified_fun(int)", Filenamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Filename.: "fun.c"},
55 {IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#ID.: 8, Namescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Name.: "Foo::(anonymous namespace)::Test::Bar", SystemNamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#SystemName.: "Foo::(anonymous namespace)::Test::Bar", Filenamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Filename.: "fun.c"},
56 {IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#ID.: 9, Namescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Name.: "Hello::(anonymous namespace)::World(const Foo::(anonymous namespace)::Test::Bar)", SystemNamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#SystemName.: "Hello::(anonymous namespace)::World(const Foo::(anonymous namespace)::Test::Bar)", Filenamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Filename.: "fun.c"},
57 {IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#ID.: 10, Namescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Name.: "Foo::operator()(::Bar)", SystemNamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#SystemName.: "Foo::operator()(::Bar)", Filenamescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Function#Filename.: "fun.c"},
58 }
59
60 var locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1. = []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{
61 {
62 IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#ID.: 1,
63 Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#Line.: []Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#{
64 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[0], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 1, Columnscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Column.: 7},
65 },
66 },
67 {
68 IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#ID.: 2,
69 Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#Line.: []Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#{
70 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[1], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 2},
71 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[2], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 1},
72 },
73 },
74 {
75 IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#ID.: 3,
76 Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#Line.: []Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#{
77 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[3], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 2},
78 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[1], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 1, Columnscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Column.: 7},
79 },
80 },
81 {
82 IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#ID.: 4,
83 Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#Line.: []Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#{
84 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[3], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 2},
85 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[1], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 2},
86 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[5], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 2},
87 },
88 },
89 }
90
91 var in1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/in1. = &Profilescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#{
92 PeriodTypescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#PeriodType.: &ValueTypescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#{Typescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Type.: "cpu", Unitscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Unit.: "milliseconds"},
93 Periodscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#Period.: 1,
94 DurationNanosscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#DurationNanos.: 10e9,
95 SampleTypescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#SampleType.: []*ValueTypescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#{
96 {Typescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Type.: "samples", Unitscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Unit.: "count"},
97 {Typescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Type.: "cpu", Unitscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Unit.: "milliseconds"},
98 },
99 Samplescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#Sample.: []*Samplescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#{
100 {
101 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Location.: []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[0]},
102 Valuescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Value.: []int64{1, 1},
103 },
104 {
105 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Location.: []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[1], locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[0]},
106 Valuescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Value.: []int64{1, 1},
107 },
108 {
109 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Location.: []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[2], locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[0]},
110 Valuescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Value.: []int64{1, 1},
111 },
112 {
113 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Location.: []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[3], locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[0]},
114 Valuescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Value.: []int64{1, 1},
115 },
116 {
117 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Location.: []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[3], locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[2], locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[1], locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.[0]},
118 Valuescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Value.: []int64{1, 1},
119 },
120 },
121 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#Location.: locs1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs1.,
122 Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.,
123 DropFramesscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#DropFrames.: "fu.*[12]|banana",
124 KeepFramesscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#KeepFrames.: ".*[n2][n2]",
125 }
126
127 const out1scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/out1. = `PeriodType: cpu milliseconds
128 Period: 1
129 Duration: 10s
130 Samples:
131 samples/count cpu/milliseconds
132 1 1: 1
133 1 1: 2 1
134 1 1: 1
135 1 1: 4 1
136 1 1: 2 1
137 Locations
138 1: 0x0 main main.c:1:7 s=0
139 2: 0x0 fun2 fun.c:1:0 s=0
140 3: 0x0 fun3 fun.c:2:0 s=0
141 fun1 fun.c:1:7 s=0
142 4: 0x0 fun5 fun.c:2:0 s=0
143 Mappings
144 `
145
146 var locs2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs2. = []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{
147 {
148 IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#ID.: 1,
149 Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#Line.: []Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#{
150 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[0], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 1},
151 },
152 },
153 {
154 IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#ID.: 2,
155 Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#Line.: []Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#{
156 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[6], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 1},
157 },
158 },
159 {
160 IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#ID.: 3,
161 Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#Line.: []Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#{
162 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[7], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 1},
163 },
164 },
165 {
166 IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#ID.: 4,
167 Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#Line.: []Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#{
168 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[8], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 1},
169 },
170 },
171 {
172 IDscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#ID.: 5,
173 Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#Line.: []Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#{
174 {Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.[9], Linescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Line#Line.: 1},
175 },
176 },
177 }
178
179 var in2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/in2. = &Profilescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#{
180 PeriodTypescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#PeriodType.: &ValueTypescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#{Typescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Type.: "cpu", Unitscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Unit.: "milliseconds"},
181 Periodscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#Period.: 1,
182 DurationNanosscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#DurationNanos.: 10e9,
183 SampleTypescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#SampleType.: []*ValueTypescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#{
184 {Typescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Type.: "samples", Unitscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Unit.: "count"},
185 {Typescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Type.: "cpu", Unitscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/ValueType#Unit.: "milliseconds"},
186 },
187 Samplescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#Sample.: []*Samplescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#{
188 // Unsimplified name with parameters shouldn't match.
189 {
190 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Location.: []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{locs2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs2.[1], locs2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs2.[0]},
191 Valuescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Value.: []int64{1, 1},
192 },
193 // .*Foo::.*::Bar.* should (and will be dropped) regardless of the anonymous namespace.
194 {
195 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Location.: []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{locs2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs2.[2], locs2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs2.[0]},
196 Valuescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Value.: []int64{1, 1},
197 },
198 // .*Foo::.*::Bar.* shouldn't match inside the parameter list.
199 {
200 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Location.: []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{locs2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs2.[3], locs2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs2.[0]},
201 Valuescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Value.: []int64{1, 1},
202 },
203 // .*operator\(\) should match, regardless of parameters.
204 {
205 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Location.: []*Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Location#{locs2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs2.[4], locs2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs2.[0]},
206 Valuescip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Sample#Value.: []int64{1, 1},
207 },
208 },
209 Locationscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#Location.: locs2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/locs2.,
210 Functionscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#Function.: funsscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/funs.,
211 DropFramesscip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/Profile#DropFrames.: `unsimplified_fun\(int\)|.*Foo::.*::Bar.*|.*operator\(\)`,
212 }
213
214 const out2scip-go gomod github.com/google/pprof . `github.com/google/pprof/profile`/out2. = `PeriodType: cpu milliseconds
215 Period: 1
216 Duration: 10s
217 Samples:
218 samples/count cpu/milliseconds
219 1 1: 2 1
220 1 1: 1
221 1 1: 4 1
222 1 1: 1
223 Locations
224 1: 0x0 main main.c:1:0 s=0
225 2: 0x0 unsimplified_fun(int) fun.c:1:0 s=0
226 3: 0x0 Foo::(anonymous namespace)::Test::Bar fun.c:1:0 s=0
227 4: 0x0 Hello::(anonymous namespace)::World(const Foo::(anonymous namespace)::Test::Bar) fun.c:1:0 s=0
228 5: 0x0 Foo::operator()(::Bar) fun.c:1:0 s=0
229 Mappings
230 `