@@ -82,113 +82,113 @@ class HeapProfile instanceof Profile {
8282 }
8383
8484 // -----------------------------------------------------------------------
85- // Cumulative (total) values per function — across all samples containing funcName
85+ // Cumulative (total) values per function — across all samples containing funcFullName
8686 // -----------------------------------------------------------------------
8787
8888 /**
89- * Cumulative allocated objects (count) of samples whose call stack contains `funcName `.
89+ * Cumulative allocated objects (count) of samples whose call stack contains `funcFullName `.
9090 */
91- bindingset [ funcName ]
92- QlBuiltins:: BigInt allocObjectsOfFunc ( string funcName ) {
91+ bindingset [ funcFullName ]
92+ QlBuiltins:: BigInt allocObjectsOfFunc ( string funcFullName ) {
9393 result = sum ( Sample sample
9494 | super .getSample ( _) = sample and
95- sample .containsFunc ( funcName )
95+ sample .containsFunc ( funcFullName )
9696 | sample .getValue ( 0 )
9797 )
9898 }
9999
100100 /**
101- * Cumulative allocated space (bytes) of samples whose call stack contains `funcName `.
101+ * Cumulative allocated space (bytes) of samples whose call stack contains `funcFullName `.
102102 */
103- bindingset [ funcName ]
104- QlBuiltins:: BigInt allocSpaceOfFunc ( string funcName ) {
103+ bindingset [ funcFullName ]
104+ QlBuiltins:: BigInt allocSpaceOfFunc ( string funcFullName ) {
105105 result = sum ( Sample sample
106106 | super .getSample ( _) = sample and
107- sample .containsFunc ( funcName )
107+ sample .containsFunc ( funcFullName )
108108 | sample .getValue ( 1 )
109109 )
110110 }
111111
112112 /**
113- * Cumulative in-use objects (count) of samples whose call stack contains `funcName `.
113+ * Cumulative in-use objects (count) of samples whose call stack contains `funcFullName `.
114114 */
115- bindingset [ funcName ]
116- QlBuiltins:: BigInt inuseObjectsOfFunc ( string funcName ) {
115+ bindingset [ funcFullName ]
116+ QlBuiltins:: BigInt inuseObjectsOfFunc ( string funcFullName ) {
117117 result = sum ( Sample sample
118118 | super .getSample ( _) = sample and
119- sample .containsFunc ( funcName )
119+ sample .containsFunc ( funcFullName )
120120 | sample .getValue ( 2 )
121121 )
122122 }
123123
124124 /**
125- * Cumulative in-use space (bytes) of samples whose call stack contains `funcName `.
125+ * Cumulative in-use space (bytes) of samples whose call stack contains `funcFullName `.
126126 */
127- bindingset [ funcName ]
128- QlBuiltins:: BigInt inuseSpaceOfFunc ( string funcName ) {
127+ bindingset [ funcFullName ]
128+ QlBuiltins:: BigInt inuseSpaceOfFunc ( string funcFullName ) {
129129 result = sum ( Sample sample
130130 | super .getSample ( _) = sample and
131- sample .containsFunc ( funcName )
131+ sample .containsFunc ( funcFullName )
132132 | sample .getValue ( 3 )
133133 )
134134 }
135135
136136 // -----------------------------------------------------------------------
137- // Flat / self-value per function — only samples where funcName is at location[0]
137+ // Flat / self-value per function — only samples where funcFullName is at location[0]
138138 // -----------------------------------------------------------------------
139139
140140 /**
141- * Flat (self) allocated objects (count) of `funcName `: only samples where `funcName `
141+ * Flat (self) allocated objects (count) of `funcFullName `: only samples where `funcFullName `
142142 * is at the top of the stack (location index 0).
143143 */
144- bindingset [ funcName ]
145- QlBuiltins:: BigInt allocObjectsFlatOfFunc ( string funcName ) {
144+ bindingset [ funcFullName ]
145+ QlBuiltins:: BigInt allocObjectsFlatOfFunc ( string funcFullName ) {
146146 result = sum ( Sample sample
147147 | super .getSample ( _) = sample and
148- sample .containsFunc ( funcName ) and
149- sample .getLocation ( 0 ) .getLine ( _) .getFunction ( ) .getName ( ) = funcName
148+ sample .containsFunc ( funcFullName ) and
149+ sample .getLocation ( 0 ) .getLine ( _) .getFunction ( ) .getName ( ) = funcFullName
150150 | sample .getValue ( 0 )
151151 )
152152 }
153153
154154 /**
155- * Flat (self) allocated space (bytes) of `funcName `: only samples where `funcName `
155+ * Flat (self) allocated space (bytes) of `funcFullName `: only samples where `funcFullName `
156156 * is at the top of the stack (location index 0).
157157 */
158- bindingset [ funcName ]
159- QlBuiltins:: BigInt allocSpaceFlatOfFunc ( string funcName ) {
158+ bindingset [ funcFullName ]
159+ QlBuiltins:: BigInt allocSpaceFlatOfFunc ( string funcFullName ) {
160160 result = sum ( Sample sample
161161 | super .getSample ( _) = sample and
162- sample .containsFunc ( funcName ) and
163- sample .getLocation ( 0 ) .getLine ( _) .getFunction ( ) .getName ( ) = funcName
162+ sample .containsFunc ( funcFullName ) and
163+ sample .getLocation ( 0 ) .getLine ( _) .getFunction ( ) .getName ( ) = funcFullName
164164 | sample .getValue ( 1 )
165165 )
166166 }
167167
168168 /**
169- * Flat (self) in-use objects (count) of `funcName `: only samples where `funcName `
169+ * Flat (self) in-use objects (count) of `funcFullName `: only samples where `funcFullName `
170170 * is at the top of the stack (location index 0).
171171 */
172- bindingset [ funcName ]
173- QlBuiltins:: BigInt inuseObjectsFlatOfFunc ( string funcName ) {
172+ bindingset [ funcFullName ]
173+ QlBuiltins:: BigInt inuseObjectsFlatOfFunc ( string funcFullName ) {
174174 result = sum ( Sample sample
175175 | super .getSample ( _) = sample and
176- sample .containsFunc ( funcName ) and
177- sample .getLocation ( 0 ) .getLine ( _) .getFunction ( ) .getName ( ) = funcName
176+ sample .containsFunc ( funcFullName ) and
177+ sample .getLocation ( 0 ) .getLine ( _) .getFunction ( ) .getName ( ) = funcFullName
178178 | sample .getValue ( 2 )
179179 )
180180 }
181181
182182 /**
183- * Flat (self) in-use space (bytes) of `funcName `: only samples where `funcName `
183+ * Flat (self) in-use space (bytes) of `funcFullName `: only samples where `funcFullName `
184184 * is at the top of the stack (location index 0).
185185 */
186- bindingset [ funcName ]
187- QlBuiltins:: BigInt inuseSpaceFlatOfFunc ( string funcName ) {
186+ bindingset [ funcFullName ]
187+ QlBuiltins:: BigInt inuseSpaceFlatOfFunc ( string funcFullName ) {
188188 result = sum ( Sample sample
189189 | super .getSample ( _) = sample and
190- sample .containsFunc ( funcName ) and
191- sample .getLocation ( 0 ) .getLine ( _) .getFunction ( ) .getName ( ) = funcName
190+ sample .containsFunc ( funcFullName ) and
191+ sample .getLocation ( 0 ) .getLine ( _) .getFunction ( ) .getName ( ) = funcFullName
192192 | sample .getValue ( 3 )
193193 )
194194 }
@@ -198,65 +198,65 @@ class HeapProfile instanceof Profile {
198198 // -----------------------------------------------------------------------
199199
200200 /**
201- * Percentage of allocated objects for `funcName ` relative to total allocated objects,
201+ * Percentage of allocated objects for `funcFullName ` relative to total allocated objects,
202202 * with `precision` decimal places.
203203 */
204- bindingset [ funcName , precision]
205- float allocObjectsPercent ( string funcName , int precision ) {
206- result = percent ( allocObjectsOfFunc ( funcName ) , allocObjectsSum ( ) , precision )
204+ bindingset [ funcFullName , precision]
205+ float allocObjectsPercent ( string funcFullName , int precision ) {
206+ result = percent ( allocObjectsOfFunc ( funcFullName ) , allocObjectsSum ( ) , precision )
207207 }
208208
209209 /**
210- * Percentage of allocated space for `funcName ` relative to total allocated space,
210+ * Percentage of allocated space for `funcFullName ` relative to total allocated space,
211211 * with `precision` decimal places.
212212 */
213- bindingset [ funcName , precision]
214- float allocSpacePercent ( string funcName , int precision ) {
215- result = percent ( allocSpaceOfFunc ( funcName ) , allocSpaceSum ( ) , precision )
213+ bindingset [ funcFullName , precision]
214+ float allocSpacePercent ( string funcFullName , int precision ) {
215+ result = percent ( allocSpaceOfFunc ( funcFullName ) , allocSpaceSum ( ) , precision )
216216 }
217217
218218 /**
219- * Percentage of in-use objects for `funcName ` relative to total in-use objects,
219+ * Percentage of in-use objects for `funcFullName ` relative to total in-use objects,
220220 * with `precision` decimal places.
221221 */
222- bindingset [ funcName , precision]
223- float inuseObjectsPercent ( string funcName , int precision ) {
224- result = percent ( inuseObjectsOfFunc ( funcName ) , inuseObjectsSum ( ) , precision )
222+ bindingset [ funcFullName , precision]
223+ float inuseObjectsPercent ( string funcFullName , int precision ) {
224+ result = percent ( inuseObjectsOfFunc ( funcFullName ) , inuseObjectsSum ( ) , precision )
225225 }
226226
227227 /**
228- * Percentage of in-use space for `funcName ` relative to total in-use space,
228+ * Percentage of in-use space for `funcFullName ` relative to total in-use space,
229229 * with `precision` decimal places.
230230 */
231- bindingset [ funcName , precision]
232- float inuseSpacePercent ( string funcName , int precision ) {
233- result = percent ( inuseSpaceOfFunc ( funcName ) , inuseSpaceSum ( ) , precision )
231+ bindingset [ funcFullName , precision]
232+ float inuseSpacePercent ( string funcFullName , int precision ) {
233+ result = percent ( inuseSpaceOfFunc ( funcFullName ) , inuseSpaceSum ( ) , precision )
234234 }
235235
236236 // -----------------------------------------------------------------------
237237 // Value at specific line
238238 // -----------------------------------------------------------------------
239239
240240 /**
241- * Cumulative allocated space (bytes) of `funcName ` at a specific `lineNumber`.
241+ * Cumulative allocated space (bytes) of `funcFullName ` at a specific `lineNumber`.
242242 */
243- bindingset [ funcName , lineNumber]
244- QlBuiltins:: BigInt allocSpaceOfLine ( string funcName , int lineNumber ) {
243+ bindingset [ funcFullName , lineNumber]
244+ QlBuiltins:: BigInt allocSpaceOfLine ( string funcFullName , int lineNumber ) {
245245 result = sum ( Sample sample
246246 | super .getSample ( _) = sample and
247- sample .containsLine ( funcName , lineNumber )
247+ sample .containsLine ( funcFullName , lineNumber )
248248 | sample .getValue ( 1 )
249249 )
250250 }
251251
252252 /**
253- * Cumulative in-use space (bytes) of `funcName ` at a specific `lineNumber`.
253+ * Cumulative in-use space (bytes) of `funcFullName ` at a specific `lineNumber`.
254254 */
255- bindingset [ funcName , lineNumber]
256- QlBuiltins:: BigInt inuseSpaceOfLine ( string funcName , int lineNumber ) {
255+ bindingset [ funcFullName , lineNumber]
256+ QlBuiltins:: BigInt inuseSpaceOfLine ( string funcFullName , int lineNumber ) {
257257 result = sum ( Sample sample
258258 | super .getSample ( _) = sample and
259- sample .containsLine ( funcName , lineNumber )
259+ sample .containsLine ( funcFullName , lineNumber )
260260 | sample .getValue ( 3 )
261261 )
262262 }
@@ -266,29 +266,29 @@ class HeapProfile instanceof Profile {
266266 // -----------------------------------------------------------------------
267267
268268 /**
269- * Allocated space (bytes) of `funcName ` in the call context of `focusFuncName `.
269+ * Allocated space (bytes) of `funcFullName ` in the call context of `focusfuncFullName `.
270270 * Only samples that contain both functions are counted.
271271 */
272- bindingset [ funcName , focusFuncName ]
273- QlBuiltins:: BigInt allocSpaceUnderFunc ( string funcName , string focusFuncName ) {
272+ bindingset [ funcFullName , focusfuncFullName ]
273+ QlBuiltins:: BigInt allocSpaceUnderFunc ( string funcFullName , string focusfuncFullName ) {
274274 result = sum ( Sample sample
275275 | super .getSample ( _) = sample and
276- sample .containsFunc ( funcName ) and
277- sample .containsFunc ( focusFuncName )
276+ sample .containsFunc ( funcFullName ) and
277+ sample .containsFunc ( focusfuncFullName )
278278 | sample .getValue ( 1 )
279279 )
280280 }
281281
282282 /**
283- * In-use space (bytes) of `funcName ` in the call context of `focusFuncName `.
283+ * In-use space (bytes) of `funcFullName ` in the call context of `focusfuncFullName `.
284284 * Only samples that contain both functions are counted.
285285 */
286- bindingset [ funcName , focusFuncName ]
287- QlBuiltins:: BigInt inuseSpaceUnderFunc ( string funcName , string focusFuncName ) {
286+ bindingset [ funcFullName , focusfuncFullName ]
287+ QlBuiltins:: BigInt inuseSpaceUnderFunc ( string funcFullName , string focusfuncFullName ) {
288288 result = sum ( Sample sample
289289 | super .getSample ( _) = sample and
290- sample .containsFunc ( funcName ) and
291- sample .containsFunc ( focusFuncName )
290+ sample .containsFunc ( funcFullName ) and
291+ sample .containsFunc ( focusfuncFullName )
292292 | sample .getValue ( 3 )
293293 )
294294 }
@@ -298,16 +298,16 @@ class HeapProfile instanceof Profile {
298298 // -----------------------------------------------------------------------
299299
300300 /**
301- * Average block size (bytes) of samples whose call stack contains `funcName `.
301+ * Average block size (bytes) of samples whose call stack contains `funcFullName `.
302302 * Block size is derived from the "bytes" label on each heap sample,
303303 * which represents AllocBytes / AllocObjects per sample. Returns the sum
304304 * of block sizes across all matching samples.
305305 */
306- bindingset [ funcName ]
307- QlBuiltins:: BigInt blockSizeSumOfFunc ( string funcName ) {
306+ bindingset [ funcFullName ]
307+ QlBuiltins:: BigInt blockSizeSumOfFunc ( string funcFullName ) {
308308 result = sum ( Sample sample
309309 | super .getSample ( _) = sample and
310- sample .containsFunc ( funcName )
310+ sample .containsFunc ( funcFullName )
311311 | getBlockSize ( sample )
312312 )
313313 }
0 commit comments