9994
|
1 |
"
|
10058
|
2 |
COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
|
|
3 |
All Rights Reserved
|
9994
|
4 |
|
10058
|
5 |
Permission is hereby granted, free of charge, to any person
|
|
6 |
obtaining a copy of this software and associated documentation
|
|
7 |
files (the 'Software'), to deal in the Software without
|
|
8 |
restriction, including without limitation the rights to use,
|
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10 |
copies of the Software, and to permit persons to whom the
|
|
11 |
Software is furnished to do so, subject to the following
|
|
12 |
conditions:
|
|
13 |
|
|
14 |
The above copyright notice and this permission notice shall be
|
|
15 |
included in all copies or substantial portions of the Software.
|
|
16 |
|
|
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
24 |
OTHER DEALINGS IN THE SOFTWARE.
|
9994
|
25 |
"
|
|
26 |
"{ Package: 'stx:libtool' }"
|
|
27 |
|
|
28 |
"{ NameSpace: Tools }"
|
|
29 |
|
|
30 |
NavigatorModel subclass:#VisualProfilerCanvas
|
|
31 |
instanceVariableNames:'profilerStatistics selectedMethods packageFilter
|
|
32 |
perspectiveSpecHolder callTreeHolder selectedCallTreeItemHolder
|
|
33 |
methodList'
|
|
34 |
classVariableNames:''
|
|
35 |
poolDictionaries:''
|
|
36 |
category:'Interface-Browsers-New-Profiler'
|
|
37 |
!
|
|
38 |
|
|
39 |
HierarchicalItem subclass:#CallTreeItem
|
|
40 |
instanceVariableNames:'subjects'
|
|
41 |
classVariableNames:''
|
|
42 |
poolDictionaries:''
|
|
43 |
privateIn:VisualProfilerCanvas
|
|
44 |
!
|
|
45 |
|
|
46 |
!VisualProfilerCanvas class methodsFor:'documentation'!
|
|
47 |
|
|
48 |
copyright
|
|
49 |
"
|
10058
|
50 |
COPYRIGHT (c) 2010 by Jan Vrany, SWING Research Group. CTU in Prague
|
|
51 |
All Rights Reserved
|
|
52 |
|
|
53 |
Permission is hereby granted, free of charge, to any person
|
|
54 |
obtaining a copy of this software and associated documentation
|
|
55 |
files (the 'Software'), to deal in the Software without
|
|
56 |
restriction, including without limitation the rights to use,
|
|
57 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
58 |
copies of the Software, and to permit persons to whom the
|
|
59 |
Software is furnished to do so, subject to the following
|
|
60 |
conditions:
|
9994
|
61 |
|
10058
|
62 |
The above copyright notice and this permission notice shall be
|
|
63 |
included in all copies or substantial portions of the Software.
|
|
64 |
|
|
65 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
66 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
67 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
68 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
69 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
70 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
71 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
72 |
OTHER DEALINGS IN THE SOFTWARE.
|
9994
|
73 |
"
|
|
74 |
! !
|
|
75 |
|
|
76 |
!VisualProfilerCanvas class methodsFor:'interface specs'!
|
|
77 |
|
|
78 |
callTreeSpec
|
|
79 |
"This resource specification was automatically generated
|
|
80 |
by the UIPainter of ST/X."
|
|
81 |
|
|
82 |
"Do not manually edit this!! If it is corrupted,
|
|
83 |
the UIPainter may not be able to read the specification."
|
|
84 |
|
|
85 |
"
|
|
86 |
UIPainter new openOnClass:Tools::VisualProfilerCanvas andSelector:#callTreeSpec
|
|
87 |
Tools::VisualProfilerCanvas new openInterface:#callTreeSpec
|
|
88 |
"
|
|
89 |
|
|
90 |
<resource: #canvas>
|
|
91 |
|
|
92 |
^
|
|
93 |
#(FullSpec
|
|
94 |
name: callTreeSpec
|
|
95 |
window:
|
|
96 |
(WindowSpec
|
|
97 |
label: 'Visual Profiler - Call Tree'
|
|
98 |
name: 'Visual Profiler - Call Tree'
|
|
99 |
min: (Point 10 10)
|
|
100 |
bounds: (Rectangle 0 0 300 300)
|
|
101 |
)
|
|
102 |
component:
|
|
103 |
(SpecCollection
|
|
104 |
collection: (
|
|
105 |
(HierarchicalListViewSpec
|
|
106 |
name: 'CallTree'
|
|
107 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
108 |
model: selectedCallTreeItemHolder
|
|
109 |
hasHorizontalScrollBar: true
|
|
110 |
hasVerticalScrollBar: true
|
|
111 |
listModel: callTreeHolder
|
|
112 |
useIndex: false
|
|
113 |
highlightMode: line
|
|
114 |
useDefaultIcons: false
|
|
115 |
)
|
|
116 |
)
|
|
117 |
|
|
118 |
)
|
|
119 |
)
|
|
120 |
|
|
121 |
"Modified: / 10-10-2007 / 08:51:10 / janfrog"
|
|
122 |
!
|
|
123 |
|
|
124 |
methodListSpec
|
|
125 |
"This resource specification was automatically generated
|
|
126 |
by the UIPainter of ST/X."
|
|
127 |
|
|
128 |
"Do not manually edit this!! If it is corrupted,
|
|
129 |
the UIPainter may not be able to read the specification."
|
|
130 |
|
|
131 |
"
|
|
132 |
UIPainter new openOnClass:Tools::VisualProfilerCanvas andSelector:#methodListSpec
|
|
133 |
Tools::VisualProfilerCanvas new openInterface:#methodListSpec
|
|
134 |
"
|
|
135 |
|
|
136 |
<resource: #canvas>
|
|
137 |
|
|
138 |
^
|
|
139 |
#(FullSpec
|
|
140 |
name: methodListSpec
|
|
141 |
window:
|
|
142 |
(WindowSpec
|
|
143 |
label: 'Method list'
|
|
144 |
name: 'Method list'
|
|
145 |
min: (Point 10 10)
|
|
146 |
bounds: (Rectangle 0 0 300 300)
|
|
147 |
)
|
|
148 |
component:
|
|
149 |
(SpecCollection
|
|
150 |
collection: (
|
|
151 |
(DataSetSpec
|
|
152 |
name: 'MethodList'
|
|
153 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
154 |
model: selectedCallTreeItemHolder
|
|
155 |
hasHorizontalScrollBar: true
|
|
156 |
hasVerticalScrollBar: true
|
|
157 |
dataList: methodListAspect
|
|
158 |
useIndex: false
|
|
159 |
columnHolder: methodListColumns
|
|
160 |
)
|
|
161 |
)
|
|
162 |
|
|
163 |
)
|
|
164 |
)
|
|
165 |
|
|
166 |
"Modified: / 01-12-2007 / 23:57:41 / janfrog"
|
|
167 |
!
|
|
168 |
|
|
169 |
sidebarInfoSpec
|
|
170 |
"This resource specification was automatically generated
|
|
171 |
by the UIPainter of ST/X."
|
|
172 |
|
|
173 |
"Do not manually edit this!! If it is corrupted,
|
|
174 |
the UIPainter may not be able to read the specification."
|
|
175 |
|
|
176 |
"
|
|
177 |
UIPainter new openOnClass:Tools::VisualProfilerCanvas andSelector:#sidebarInfoSpec
|
|
178 |
Tools::VisualProfilerCanvas new openInterface:#sidebarInfoSpec
|
|
179 |
"
|
|
180 |
|
|
181 |
<resource: #canvas>
|
|
182 |
|
|
183 |
^
|
|
184 |
#(FullSpec
|
|
185 |
name: sidebarInfoSpec
|
|
186 |
window:
|
|
187 |
(WindowSpec
|
|
188 |
label: 'General Info'
|
|
189 |
name: 'General Info'
|
|
190 |
min: (Point 10 10)
|
|
191 |
bounds: (Rectangle 0 0 300 300)
|
|
192 |
)
|
|
193 |
component:
|
|
194 |
(SpecCollection
|
|
195 |
collection: (
|
|
196 |
(VerticalPanelViewSpec
|
|
197 |
name: 'Panel'
|
|
198 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
199 |
horizontalLayout: fit
|
|
200 |
verticalLayout: topFit
|
|
201 |
horizontalSpace: 3
|
|
202 |
verticalSpace: 3
|
|
203 |
component:
|
|
204 |
(SpecCollection
|
|
205 |
collection: (
|
|
206 |
(TransparentBoxSpec
|
|
207 |
name: 'StartTimeBox'
|
|
208 |
component:
|
|
209 |
(SpecCollection
|
|
210 |
collection: (
|
|
211 |
(LabelSpec
|
|
212 |
label: 'Start time:'
|
|
213 |
name: 'StartTimestampLabel'
|
|
214 |
layout: (LayoutFrame 0 0 0 0 0 1 0 0.5)
|
|
215 |
translateLabel: true
|
|
216 |
adjust: left
|
|
217 |
)
|
|
218 |
(LabelSpec
|
|
219 |
name: 'StartTimestamp'
|
|
220 |
layout: (LayoutFrame 30 0 0 0.5 0 1 0 1)
|
|
221 |
translateLabel: true
|
|
222 |
labelChannel: startTimestampAspect
|
|
223 |
adjust: left
|
|
224 |
)
|
|
225 |
)
|
|
226 |
|
|
227 |
)
|
|
228 |
extent: (Point 300 50)
|
|
229 |
)
|
|
230 |
(TransparentBoxSpec
|
|
231 |
name: 'ExecutionTimeBox'
|
|
232 |
component:
|
|
233 |
(SpecCollection
|
|
234 |
collection: (
|
|
235 |
(LabelSpec
|
|
236 |
label: 'Execution time:'
|
|
237 |
name: 'ExecutionTimeLabel'
|
|
238 |
layout: (LayoutFrame 0 0 0 0 0 1 0 0.5)
|
|
239 |
translateLabel: true
|
|
240 |
adjust: left
|
|
241 |
)
|
|
242 |
(LabelSpec
|
|
243 |
label: 'Label'
|
|
244 |
name: 'ExecutionTime'
|
|
245 |
layout: (LayoutFrame 30 0 0 0.5 0 1 0 1)
|
|
246 |
translateLabel: true
|
|
247 |
labelChannel: executionTimeAspect
|
|
248 |
adjust: left
|
|
249 |
)
|
|
250 |
)
|
|
251 |
|
|
252 |
)
|
|
253 |
extent: (Point 300 50)
|
|
254 |
)
|
|
255 |
(TransparentBoxSpec
|
|
256 |
name: 'NotesBox'
|
|
257 |
component:
|
|
258 |
(SpecCollection
|
|
259 |
collection: (
|
|
260 |
(LabelSpec
|
|
261 |
label: 'Notes:'
|
|
262 |
name: 'NotesLabel'
|
|
263 |
layout: (LayoutFrame 0 0 0 0 0 1 25 0)
|
|
264 |
translateLabel: true
|
|
265 |
adjust: left
|
|
266 |
)
|
|
267 |
(TextEditorSpec
|
|
268 |
name: 'Notes'
|
|
269 |
layout: (LayoutFrame 30 0 25 0 0 1 0 1)
|
|
270 |
model: notesAspect
|
|
271 |
hasHorizontalScrollBar: true
|
|
272 |
hasVerticalScrollBar: true
|
|
273 |
)
|
|
274 |
)
|
|
275 |
|
|
276 |
)
|
|
277 |
extent: (Point 300 194)
|
|
278 |
)
|
|
279 |
)
|
|
280 |
|
|
281 |
)
|
|
282 |
)
|
|
283 |
)
|
|
284 |
|
|
285 |
)
|
|
286 |
)
|
|
287 |
|
|
288 |
"Modified: / 24-11-2007 / 09:27:08 / janfrog"
|
|
289 |
!
|
|
290 |
|
|
291 |
sidebarPackageFilterSpec
|
|
292 |
<resource: #canvas>
|
|
293 |
"This resource specification was automatically generated
|
|
294 |
by the UIPainter of ST/X."
|
|
295 |
"Do not manually edit this!! If it is corrupted,
|
|
296 |
the UIPainter may not be able to read the specification."
|
|
297 |
"
|
|
298 |
UIPainter new openOnClass:Tools::VisualProfilerCanvas andSelector:#packageFilterSpec
|
|
299 |
Tools::VisualProfilerCanvas new openInterface:#packageFilterSpec"
|
|
300 |
|
|
301 |
^ #( #FullSpec
|
|
302 |
#name: #sidebarPackageFilterSpec
|
|
303 |
#window:
|
|
304 |
#(WindowSpec label: 'Package Filter' name: 'Package Filter' min: (Point 10 10) bounds: (Rectangle 0 0 300 300))
|
|
305 |
#component:
|
|
306 |
#(SpecCollection collection: ((SubCanvasSpec name: 'PackageFilterCanvas' layout: (LayoutFrame 0 0 0 0 0 1 0 1) hasHorizontalScrollBar: false hasVerticalScrollBar: false majorKey: #'Tools::HierarchicalPackageFilterList' minorKey: windowSpec subAspectHolders: (Array (SubChannelInfoSpec subAspect: packageFilter aspect: packageFilter)) createNewApplication: true createNewBuilder: true))) )
|
|
307 |
|
|
308 |
"Modified: / 24-11-2007 / 08:34:31 / janfrog"
|
|
309 |
!
|
|
310 |
|
|
311 |
sidebarSpec
|
|
312 |
"This resource specification was automatically generated
|
|
313 |
by the UIPainter of ST/X."
|
|
314 |
|
|
315 |
"Do not manually edit this!! If it is corrupted,
|
|
316 |
the UIPainter may not be able to read the specification."
|
|
317 |
|
|
318 |
"
|
|
319 |
UIPainter new openOnClass:Tools::VisualProfilerCanvas andSelector:#sidebarSpec
|
|
320 |
Tools::VisualProfilerCanvas new openInterface:#sidebarSpec
|
|
321 |
"
|
|
322 |
|
|
323 |
<resource: #canvas>
|
|
324 |
|
|
325 |
^
|
|
326 |
#(FullSpec
|
|
327 |
name: sidebarSpec
|
|
328 |
window:
|
|
329 |
(WindowSpec
|
|
330 |
label: 'Profiler Sidebar'
|
|
331 |
name: 'Profiler Sidebar'
|
|
332 |
min: (Point 10 10)
|
|
333 |
bounds: (Rectangle 0 0 300 300)
|
|
334 |
)
|
|
335 |
component:
|
|
336 |
(SpecCollection
|
|
337 |
collection: (
|
|
338 |
(MenuPanelSpec
|
|
339 |
name: 'ToolBar'
|
|
340 |
layout: (LayoutFrame 0 0 0 0 0 1 30 0)
|
|
341 |
menu: sidebarMenu
|
|
342 |
textDefault: true
|
|
343 |
)
|
|
344 |
(NoteBookViewSpec
|
|
345 |
name: 'SidebarNotebook'
|
|
346 |
layout: (LayoutFrame 0 0 30 0 0 1 0 1)
|
|
347 |
menu: sidebarNotebookTabList
|
|
348 |
direction: left
|
|
349 |
fitLastRow: false
|
|
350 |
)
|
|
351 |
)
|
|
352 |
|
|
353 |
)
|
|
354 |
)
|
|
355 |
|
|
356 |
"Modified: / 24-11-2007 / 09:13:40 / janfrog"
|
|
357 |
!
|
|
358 |
|
|
359 |
windowSpec
|
|
360 |
"This resource specification was automatically generated
|
|
361 |
by the UIPainter of ST/X."
|
|
362 |
|
|
363 |
"Do not manually edit this!! If it is corrupted,
|
|
364 |
the UIPainter may not be able to read the specification."
|
|
365 |
|
|
366 |
"
|
|
367 |
UIPainter new openOnClass:Tools::VisualProfilerCanvas andSelector:#windowSpec
|
|
368 |
Tools::VisualProfilerCanvas new openInterface:#windowSpec
|
|
369 |
Tools::VisualProfilerCanvas open
|
|
370 |
"
|
|
371 |
|
|
372 |
<resource: #canvas>
|
|
373 |
|
|
374 |
^
|
|
375 |
#(FullSpec
|
|
376 |
name: windowSpec
|
|
377 |
window:
|
|
378 |
(WindowSpec
|
|
379 |
label: 'Visual Profiler'
|
|
380 |
name: 'Visual Profiler'
|
|
381 |
min: (Point 10 10)
|
|
382 |
bounds: (Rectangle 0 0 714 332)
|
|
383 |
)
|
|
384 |
component:
|
|
385 |
(SpecCollection
|
|
386 |
collection: (
|
|
387 |
(VariableHorizontalPanelSpec
|
|
388 |
name: 'SidebarAndPerspectivePanel'
|
|
389 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1)
|
|
390 |
showHandle: true
|
|
391 |
snapMode: both
|
|
392 |
component:
|
|
393 |
(SpecCollection
|
|
394 |
collection: (
|
|
395 |
(UISubSpecification
|
|
396 |
name: 'SidebarSpec'
|
|
397 |
minorKey: sidebarSpec
|
|
398 |
)
|
|
399 |
(NoteBookViewSpec
|
|
400 |
name: 'PerspectiveNoteBook'
|
|
401 |
menu: perspectiveNotebookTabList
|
|
402 |
direction: bottom
|
|
403 |
fitLastRow: false
|
|
404 |
)
|
|
405 |
)
|
|
406 |
|
|
407 |
)
|
|
408 |
handles: (Any 0.3 1.0)
|
|
409 |
)
|
|
410 |
)
|
|
411 |
|
|
412 |
)
|
|
413 |
)
|
|
414 |
|
|
415 |
"Modified: / 24-11-2007 / 09:07:56 / janfrog"
|
|
416 |
! !
|
|
417 |
|
|
418 |
!VisualProfilerCanvas class methodsFor:'list specs'!
|
|
419 |
|
|
420 |
perspectiveNotebookTabList
|
|
421 |
"This resource specification was automatically generated
|
|
422 |
by the TabListEditor of ST/X."
|
|
423 |
|
|
424 |
"Do not manually edit this!! If it is corrupted,
|
|
425 |
the TabListEditor may not be able to read the specification."
|
|
426 |
|
|
427 |
"
|
|
428 |
TabListEditor new openOnClass: self andSelector:#perspectiveNotebookTabList
|
|
429 |
"
|
|
430 |
|
|
431 |
<resource: #tabList>
|
|
432 |
|
|
433 |
^ #(
|
|
434 |
(TabItem
|
|
435 |
label: 'Call tree'
|
|
436 |
createNewBuilder: false
|
|
437 |
minorKey: callTreeSpec
|
|
438 |
)
|
|
439 |
(TabItem
|
|
440 |
label: 'Method list'
|
|
441 |
createNewBuilder: false
|
|
442 |
minorKey: methodListSpec
|
|
443 |
)
|
|
444 |
)
|
|
445 |
|
|
446 |
collect:[:aTab| TabItem new fromLiteralArrayEncoding:aTab ]
|
|
447 |
|
|
448 |
"Modified: / 02-12-2007 / 00:03:42 / janfrog"
|
|
449 |
!
|
|
450 |
|
|
451 |
sidebarNotebookTabList
|
|
452 |
"This resource specification was automatically generated
|
|
453 |
by the TabListEditor of ST/X."
|
|
454 |
|
|
455 |
"Do not manually edit this!! If it is corrupted,
|
|
456 |
the TabListEditor may not be able to read the specification."
|
|
457 |
|
|
458 |
"
|
|
459 |
TabListEditor new openOnClass: self andSelector:#sidebarNotebookTabList
|
|
460 |
"
|
|
461 |
|
|
462 |
<resource: #tabList>
|
|
463 |
|
|
464 |
^ #(
|
|
465 |
(TabItem
|
|
466 |
label: 'Statistics'
|
|
467 |
minorKey: sidebarInfoSpec
|
|
468 |
)
|
|
469 |
(TabItem
|
|
470 |
label: 'Packages'
|
|
471 |
createNewBuilder: false
|
|
472 |
minorKey: sidebarPackageFilterSpec
|
|
473 |
)
|
|
474 |
)
|
|
475 |
|
|
476 |
collect:[:aTab| TabItem new fromLiteralArrayEncoding:aTab ]
|
|
477 |
|
|
478 |
"Modified: / 24-11-2007 / 08:45:36 / janfrog"
|
|
479 |
! !
|
|
480 |
|
|
481 |
!VisualProfilerCanvas class methodsFor:'menu specs'!
|
|
482 |
|
|
483 |
sidebarMenu
|
|
484 |
"This resource specification was automatically generated
|
|
485 |
by the MenuEditor of ST/X."
|
|
486 |
|
|
487 |
"Do not manually edit this!! If it is corrupted,
|
|
488 |
the MenuEditor may not be able to read the specification."
|
|
489 |
|
|
490 |
"
|
|
491 |
MenuEditor new openOnClass:Tools::VisualProfilerCanvas andSelector:#sidebarMenu
|
|
492 |
(Menu new fromLiteralArrayEncoding:(Tools::VisualProfilerCanvas sidebarMenu)) startUp
|
|
493 |
"
|
|
494 |
|
|
495 |
<resource: #menu>
|
|
496 |
|
|
497 |
^
|
|
498 |
#(Menu
|
|
499 |
(
|
|
500 |
(MenuItem
|
|
501 |
label: 'Save'
|
|
502 |
itemValue: saveProfilerAction
|
|
503 |
translateLabel: true
|
|
504 |
labelImage: (ResourceRetriever XPToolbarIconLibrary saveToFileIcon)
|
|
505 |
)
|
|
506 |
)
|
|
507 |
nil
|
|
508 |
nil
|
|
509 |
)
|
|
510 |
|
|
511 |
"Modified: / 24-11-2007 / 09:10:50 / janfrog"
|
|
512 |
! !
|
|
513 |
|
|
514 |
!VisualProfilerCanvas class methodsFor:'plugIn spec'!
|
|
515 |
|
|
516 |
aspectSelectors
|
|
517 |
"This resource specification was automatically generated
|
|
518 |
by the UIPainter of ST/X."
|
|
519 |
|
|
520 |
"Do not manually edit this. If it is corrupted,
|
|
521 |
the UIPainter may not be able to read the specification."
|
|
522 |
|
|
523 |
"Return a description of exported aspects;
|
|
524 |
these can be connected to aspects of an embedding application
|
|
525 |
(if this app is embedded in a subCanvas)."
|
|
526 |
|
|
527 |
^ #(
|
|
528 |
#packageFilter
|
|
529 |
#profilerStatistics
|
|
530 |
#selectedMethods
|
|
531 |
).
|
|
532 |
|
|
533 |
"Modified: / 01-12-2007 / 23:57:41 / janfrog"
|
|
534 |
! !
|
|
535 |
|
|
536 |
!VisualProfilerCanvas class methodsFor:'tableColumns specs'!
|
|
537 |
|
|
538 |
methodListColumns
|
|
539 |
"This resource specification was automatically generated
|
|
540 |
by the DataSetBuilder of ST/X."
|
|
541 |
|
|
542 |
"Do not manually edit this!! If it is corrupted,
|
|
543 |
the DataSetBuilder may not be able to read the specification."
|
|
544 |
|
|
545 |
"
|
|
546 |
DataSetBuilder new openOnClass:Tools::VisualProfilerCanvas andSelector:#methodListColumns
|
|
547 |
"
|
|
548 |
|
|
549 |
<resource: #tableColumns>
|
|
550 |
|
|
551 |
^#(
|
|
552 |
(DataSetColumnSpec
|
|
553 |
labelButtonType: Button
|
|
554 |
rendererType: rowSelector
|
|
555 |
showRowSeparator: false
|
|
556 |
showSelectionHighLighted: false
|
|
557 |
showColSeparator: false
|
|
558 |
)
|
|
559 |
(DataSetColumnSpec
|
|
560 |
label: 'Tally'
|
|
561 |
labelButtonType: Button
|
|
562 |
type: number
|
|
563 |
model: tally
|
|
564 |
canSelect: false
|
|
565 |
showRowSeparator: false
|
|
566 |
showSelectionHighLighted: false
|
|
567 |
showColSeparator: false
|
|
568 |
)
|
|
569 |
(DataSetColumnSpec
|
|
570 |
label: 'Method'
|
|
571 |
labelButtonType: Button
|
|
572 |
model: methodLabel
|
|
573 |
canSelect: false
|
|
574 |
showRowSeparator: false
|
|
575 |
showSelectionHighLighted: false
|
|
576 |
showColSeparator: false
|
|
577 |
)
|
|
578 |
(DataSetColumnSpec
|
|
579 |
label: 'Package'
|
|
580 |
labelButtonType: Button
|
|
581 |
model: packageLabel
|
|
582 |
canSelect: false
|
|
583 |
showRowSeparator: false
|
|
584 |
showSelectionHighLighted: false
|
|
585 |
showColSeparator: false
|
|
586 |
)
|
|
587 |
)
|
|
588 |
|
|
589 |
"Modified: / 01-12-2007 / 23:56:15 / janfrog"
|
|
590 |
! !
|
|
591 |
|
|
592 |
!VisualProfilerCanvas methodsFor:'aspects'!
|
|
593 |
|
|
594 |
callTreeHolder
|
|
595 |
"automatically generated by UIPainter ..."
|
|
596 |
|
|
597 |
"*** the code below creates a default model when invoked."
|
|
598 |
"*** (which may not be the one you wanted)"
|
|
599 |
"*** Please change as required and accept it in the browser."
|
|
600 |
"*** (and replace this comment by something more useful ;-)"
|
|
601 |
|
|
602 |
callTreeHolder isNil ifTrue:[
|
|
603 |
callTreeHolder := HierarchicalList new.
|
|
604 |
callTreeHolder application: self.
|
|
605 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
606 |
"/ callTreeHolder addDependent:self.
|
|
607 |
"/ callTreeHolder onChangeSend:#callTreeHolderChanged to:self.
|
|
608 |
].
|
|
609 |
^ callTreeHolder.
|
|
610 |
|
|
611 |
"Created: / 10-10-2007 / 08:34:26 / janfrog"
|
|
612 |
"Modified: / 10-10-2007 / 12:48:20 / janfrog"
|
|
613 |
!
|
|
614 |
|
|
615 |
executionTimeAspect
|
|
616 |
|
|
617 |
^(PluggableAdaptor on: profilerStatistics)
|
|
618 |
getBlock:[:model|
|
|
619 |
model value
|
|
620 |
ifNil:['N/A']
|
|
621 |
ifNotNil:[model value computationTime printString
|
|
622 |
, 'ms'
|
|
623 |
,' (', (TimeDuration new setMilliseconds:model value computationTime) printString , ')']]
|
|
624 |
putBlock:[:ign1 :ign2|self shouldNeverBeReached]
|
|
625 |
updateBlock:[:ign1 :ign2 :ign3|true]
|
|
626 |
|
|
627 |
"Created: / 24-11-2007 / 08:44:49 / janfrog"
|
|
628 |
!
|
|
629 |
|
|
630 |
methodListAspect
|
|
631 |
|
|
632 |
methodList ifNil:[methodList := List new].
|
|
633 |
^methodList
|
|
634 |
|
|
635 |
"Created: / 01-12-2007 / 23:38:16 / janfrog"
|
|
636 |
!
|
|
637 |
|
|
638 |
notesAspect
|
|
639 |
|
|
640 |
^(AspectAdaptor forAspect:#notes)
|
|
641 |
subjectChannel: self profilerStatistics
|
|
642 |
|
|
643 |
"Created: / 24-11-2007 / 09:27:47 / janfrog"
|
|
644 |
!
|
|
645 |
|
|
646 |
packageFilter
|
|
647 |
"return/create the 'packageFilter' value holder (automatically generated)"
|
|
648 |
|
|
649 |
packageFilter isNil ifTrue:[
|
|
650 |
packageFilter := ValueHolder new.
|
|
651 |
].
|
|
652 |
^ packageFilter
|
|
653 |
|
|
654 |
"Created: / 09-10-2007 / 21:27:32 / janfrog"
|
|
655 |
!
|
|
656 |
|
|
657 |
packageFilter:something
|
|
658 |
"set the 'packageFilter' value holder (automatically generated)"
|
|
659 |
|
|
660 |
packageFilter ifNotNil:[packageFilter removeDependent: self].
|
|
661 |
packageFilter := something.
|
|
662 |
packageFilter ifNotNil:[packageFilter addDependent: self].
|
|
663 |
|
|
664 |
"Created: / 09-10-2007 / 21:27:32 / janfrog"
|
|
665 |
"Modified: / 10-10-2007 / 12:47:08 / janfrog"
|
|
666 |
!
|
|
667 |
|
|
668 |
perspectiveNotebookTabList
|
|
669 |
"Generated by the TabListEditor"
|
|
670 |
|
|
671 |
|list|
|
|
672 |
|
|
673 |
(list := builder bindingAt:#perspectiveNotebookTabList) isNil ifTrue:[
|
|
674 |
builder aspectAt:#perspectiveNotebookTabList put:(list := self class perspectiveNotebookTabList).
|
|
675 |
].
|
|
676 |
^ list
|
|
677 |
|
|
678 |
"Created: / 10-10-2007 / 10:10:07 / janfrog"
|
|
679 |
!
|
|
680 |
|
|
681 |
perspectiveSpecHolder
|
|
682 |
"automatically generated by UIPainter ..."
|
|
683 |
|
|
684 |
"*** the code below creates a default model when invoked."
|
|
685 |
"*** (which may not be the one you wanted)"
|
|
686 |
"*** Please change as required and accept it in the browser."
|
|
687 |
"*** (and replace this comment by something more useful ;-)"
|
|
688 |
|
|
689 |
perspectiveSpecHolder isNil ifTrue:[
|
|
690 |
perspectiveSpecHolder := #callTreeSpec asValue.
|
|
691 |
"/ if your app needs to be notified of changes, uncomment one of the lines below:
|
|
692 |
"/ perspectiveSpecHolder addDependent:self.
|
|
693 |
"/ perspectiveSpecHolder onChangeSend:#perspectiveSpecHolderChanged to:self.
|
|
694 |
].
|
|
695 |
^ perspectiveSpecHolder.
|
|
696 |
|
|
697 |
"Created: / 10-10-2007 / 08:31:35 / janfrog"
|
|
698 |
!
|
|
699 |
|
|
700 |
profilerStatistics
|
|
701 |
"return/create the 'profilerStatistics' value holder (automatically generated)"
|
|
702 |
|
|
703 |
profilerStatistics isNil ifTrue:[
|
|
704 |
profilerStatistics := ValueHolder new.
|
|
705 |
].
|
|
706 |
^ profilerStatistics
|
|
707 |
|
|
708 |
"Created: / 09-10-2007 / 21:53:38 / janfrog"
|
|
709 |
!
|
|
710 |
|
|
711 |
profilerStatistics:something
|
|
712 |
"set the 'profilerStatistics' value holder (automatically generated)"
|
|
713 |
|
|
714 |
profilerStatistics ifNotNil:[profilerStatistics removeDependent: self].
|
|
715 |
profilerStatistics := something.
|
|
716 |
profilerStatistics ifNotNil:[profilerStatistics addDependent: self].
|
|
717 |
|
|
718 |
"Created: / 09-10-2007 / 21:53:38 / janfrog"
|
|
719 |
"Modified: / 10-10-2007 / 08:46:46 / janfrog"
|
|
720 |
!
|
|
721 |
|
|
722 |
selectedCallTreeItemHolder
|
|
723 |
"automatically generated by UIPainter ..."
|
|
724 |
|
|
725 |
"*** the code below creates a default model when invoked."
|
|
726 |
"*** (which may not be the one you wanted)"
|
|
727 |
"*** Please change as required and accept it in the browser."
|
|
728 |
"*** (and replace this comment by something more useful ;-)"
|
|
729 |
|
|
730 |
selectedCallTreeItemHolder isNil ifTrue:[
|
|
731 |
selectedCallTreeItemHolder := ValueHolder new.
|
|
732 |
selectedCallTreeItemHolder onChangeSend:#selectedCallTreeItemChanged to:self.
|
|
733 |
].
|
|
734 |
^ selectedCallTreeItemHolder.
|
|
735 |
|
|
736 |
"Created: / 10-10-2007 / 08:51:34 / janfrog"
|
|
737 |
!
|
|
738 |
|
|
739 |
selectedMethods
|
|
740 |
"return/create the 'selectedMethods' value holder (automatically generated)"
|
|
741 |
|
|
742 |
selectedMethods isNil ifTrue:[
|
|
743 |
selectedMethods := ValueHolder new.
|
|
744 |
].
|
|
745 |
^ selectedMethods
|
|
746 |
|
|
747 |
"Created: / 09-10-2007 / 21:18:18 / janfrog"
|
|
748 |
!
|
|
749 |
|
|
750 |
selectedMethods:something
|
|
751 |
"set the 'selectedMethods' value holder (automatically generated)"
|
|
752 |
|
|
753 |
selectedMethods := something.
|
|
754 |
|
|
755 |
"Created: / 09-10-2007 / 21:18:18 / janfrog"
|
|
756 |
!
|
|
757 |
|
|
758 |
sidebarNotebookTabList
|
|
759 |
"Generated by the TabListEditor"
|
|
760 |
|
|
761 |
|list|
|
|
762 |
|
|
763 |
(list := builder bindingAt:#sidebarNotebookTabList) isNil ifTrue:[
|
|
764 |
builder aspectAt:#sidebarNotebookTabList put:(list := self class sidebarNotebookTabList).
|
|
765 |
].
|
|
766 |
^ list
|
|
767 |
|
|
768 |
"Created: / 10-10-2007 / 10:10:35 / janfrog"
|
|
769 |
!
|
|
770 |
|
|
771 |
startTimestampAspect
|
|
772 |
|
|
773 |
^(PluggableAdaptor on: profilerStatistics)
|
|
774 |
getBlock:[:model|
|
|
775 |
model value
|
|
776 |
ifNil:['N/A']
|
|
777 |
ifNotNil:[model value startTimestamp printString]]
|
|
778 |
putBlock:[:ign1 :ign2|self shouldNeverBeReached]
|
|
779 |
updateBlock:[:ign1 :ign2 :ign3|true]
|
|
780 |
|
|
781 |
"Created: / 24-11-2007 / 08:57:58 / janfrog"
|
|
782 |
! !
|
|
783 |
|
|
784 |
!VisualProfilerCanvas methodsFor:'change & update'!
|
|
785 |
|
|
786 |
methodsSelectionChanged
|
|
787 |
|
|
788 |
self topApplication == self
|
|
789 |
ifFalse:[self topApplication methodsSelectionChanged]
|
|
790 |
|
|
791 |
"Created: / 09-10-2007 / 21:33:50 / janfrog"
|
|
792 |
!
|
|
793 |
|
|
794 |
selectedCallTreeItemChanged
|
|
795 |
|
|
796 |
self selectedCallTreeItemHolder value ifNil:[^self].
|
|
797 |
self switchToMethod: self selectedCallTreeItemHolder value method
|
|
798 |
|
|
799 |
"Created: / 10-10-2007 / 08:52:33 / janfrog"
|
|
800 |
!
|
|
801 |
|
|
802 |
update: aspect with: value from: sender
|
|
803 |
|
|
804 |
sender == self profilerStatistics
|
|
805 |
ifTrue:[^self updateCallTreeRoot; updateMethodList].
|
|
806 |
|
|
807 |
sender == self packageFilter
|
|
808 |
ifTrue:[self updateCallTree; updateMethodList]
|
|
809 |
|
|
810 |
"Created: / 10-10-2007 / 08:46:59 / janfrog"
|
|
811 |
"Modified: / 01-12-2007 / 23:52:07 / janfrog"
|
|
812 |
!
|
|
813 |
|
|
814 |
updateCallTree
|
|
815 |
|
|
816 |
self callTreeHolder root updateChildren
|
|
817 |
|
|
818 |
"Created: / 10-10-2007 / 12:57:36 / janfrog"
|
|
819 |
!
|
|
820 |
|
|
821 |
updateCallTreeRoot
|
|
822 |
|
|
823 |
| callTree callTreeRootItem |
|
|
824 |
callTree := self callTreeHolder.
|
|
825 |
profilerStatistics value ifNil:[^callTree root: nil].
|
|
826 |
callTreeRootItem := CallTreeItem
|
|
827 |
subject: profilerStatistics value tree
|
|
828 |
parent: callTree.
|
|
829 |
callTree root: callTreeRootItem.
|
|
830 |
callTree showRoot: true.
|
|
831 |
|
|
832 |
"Created: / 10-10-2007 / 12:59:07 / janfrog"
|
|
833 |
!
|
|
834 |
|
|
835 |
updateMethodList
|
|
836 |
|
|
837 |
| items |
|
|
838 |
self methodListAspect removeAll.
|
|
839 |
self profilerStatistics value ifNil:[^self].
|
|
840 |
items := ProfilerInfoBuilder::MethodList new
|
|
841 |
packages: self packageFilter value;
|
|
842 |
build: self profilerStatistics value tree;
|
|
843 |
items.
|
|
844 |
|
|
845 |
self methodListAspect addAll: items
|
|
846 |
|
|
847 |
"Created: / 01-12-2007 / 23:39:15 / janfrog"
|
|
848 |
! !
|
|
849 |
|
|
850 |
!VisualProfilerCanvas methodsFor:'hooks'!
|
|
851 |
|
|
852 |
commonPostBuild
|
|
853 |
|
|
854 |
super commonPostBuild.
|
|
855 |
self updateCallTreeRoot.
|
|
856 |
self updateMethodList.
|
|
857 |
|
|
858 |
"Created: / 09-10-2007 / 20:05:18 / janfrog"
|
|
859 |
"Modified: / 01-12-2007 / 23:39:34 / janfrog"
|
|
860 |
!
|
|
861 |
|
|
862 |
postBuildEditModeInfoLabel: view
|
|
863 |
|
|
864 |
"Created: / 09-10-2007 / 21:06:35 / janfrog"
|
|
865 |
!
|
|
866 |
|
|
867 |
postBuildEditorNoteBook: view
|
|
868 |
|
|
869 |
"Created: / 09-10-2007 / 21:05:39 / janfrog"
|
|
870 |
! !
|
|
871 |
|
|
872 |
!VisualProfilerCanvas methodsFor:'user actions'!
|
|
873 |
|
|
874 |
switchToMethod: aMethod
|
|
875 |
|
|
876 |
self selectedMethods value:(Array with: aMethod).
|
|
877 |
self methodsSelectionChanged
|
|
878 |
|
|
879 |
"Created: / 09-10-2007 / 21:36:35 / janfrog"
|
|
880 |
! !
|
|
881 |
|
|
882 |
!VisualProfilerCanvas methodsFor:'user actions-profiler'!
|
|
883 |
|
|
884 |
profilerTestAction
|
|
885 |
|
|
886 |
self switchToMethod:(Object >> #yourself).
|
|
887 |
|
|
888 |
"Created: / 09-10-2007 / 21:07:53 / janfrog"
|
|
889 |
!
|
|
890 |
|
|
891 |
saveProfilerAction
|
|
892 |
|
|
893 |
| file profiler |
|
|
894 |
file := Dialog requestFileName:'Select file' pattern:'*.profiler.boss'.
|
|
895 |
file isNilOrEmptyCollection ifTrue:[^self].
|
|
896 |
profiler := self profilerStatistics value.
|
|
897 |
profiler storeStatisticsOn: file asFilename writeStream
|
|
898 |
|
|
899 |
"Created: / 24-11-2007 / 09:16:38 / janfrog"
|
|
900 |
! !
|
|
901 |
|
|
902 |
!VisualProfilerCanvas::CallTreeItem class methodsFor:'documentation'!
|
|
903 |
|
|
904 |
version
|
10058
|
905 |
^'$Id: Tools__VisualProfilerCanvas.st,v 1.2 2011-07-03 17:46:38 cg Exp $'
|
9994
|
906 |
! !
|
|
907 |
|
|
908 |
!VisualProfilerCanvas::CallTreeItem class methodsFor:'instance creation'!
|
|
909 |
|
|
910 |
subject: subject parent: parent
|
|
911 |
|
|
912 |
^self new
|
|
913 |
subject: subject;
|
|
914 |
parent: parent;
|
|
915 |
yourself
|
|
916 |
|
|
917 |
"Created: / 10-10-2007 / 08:35:55 / janfrog"
|
|
918 |
! !
|
|
919 |
|
|
920 |
!VisualProfilerCanvas::CallTreeItem methodsFor:'accessing'!
|
|
921 |
|
|
922 |
children
|
|
923 |
|
|
924 |
children ifNil:[children := self createChildren].
|
|
925 |
^children
|
|
926 |
|
|
927 |
"Created: / 10-10-2007 / 08:38:28 / janfrog"
|
|
928 |
"Modified: / 10-10-2007 / 13:24:06 / janfrog"
|
|
929 |
!
|
|
930 |
|
|
931 |
createChildren
|
|
932 |
|childrenTmp childrenStream|
|
|
933 |
|
|
934 |
self subject ifNil:[ ^ children := #() ].
|
|
935 |
childrenStream := (OrderedCollection new:self subject called size)
|
|
936 |
writeStream.
|
|
937 |
self createChildrenOn:childrenStream.
|
|
938 |
childrenTmp := childrenStream contents.
|
|
939 |
childrenTmp := self mergeChildren: childrenTmp.
|
|
940 |
childrenTmp do:[:child | child parent:self].
|
|
941 |
^ childrenTmp
|
|
942 |
|
|
943 |
"Created: / 10-10-2007 / 13:17:04 / janfrog"
|
|
944 |
"Modified: / 24-11-2007 / 09:43:30 / janfrog"
|
|
945 |
!
|
|
946 |
|
|
947 |
createChildrenOn:aStream
|
|
948 |
self directChildren do:[:child |
|
|
949 |
child isFiltered ifTrue:[
|
|
950 |
child createChildrenOn:aStream
|
|
951 |
] ifFalse:[
|
|
952 |
aStream nextPut:child
|
|
953 |
]
|
|
954 |
]
|
|
955 |
|
|
956 |
"Created: / 10-10-2007 / 13:05:52 / janfrog"
|
|
957 |
!
|
|
958 |
|
|
959 |
directChildren
|
|
960 |
self subject called ifNil:[ ^ #() ].
|
|
961 |
^ self subject called
|
|
962 |
collect:[:childSubject | self class subject:childSubject parent:self ]
|
|
963 |
|
|
964 |
"Created: / 10-10-2007 / 13:07:24 / janfrog"
|
|
965 |
"Modified: / 24-11-2007 / 09:18:56 / janfrog"
|
|
966 |
!
|
|
967 |
|
|
968 |
label
|
|
969 |
^ self totalTally printString , '% in '
|
|
970 |
, (self subject isBlock ifTrue:[ '[] in ' ] ifFalse:[ '' ])
|
|
971 |
, (self subject selector ? '<no selector>') , ' '
|
|
972 |
, ('[' , (self subject methodClass
|
|
973 |
ifNil:[ 'nil class' ]
|
|
974 |
ifNotNil:[ self subject methodClass name ])
|
|
975 |
, ']') allBold
|
|
976 |
, ' [' , self methodPackage asString allItalic
|
|
977 |
, ']'
|
|
978 |
|
|
979 |
"Created: / 10-10-2007 / 08:40:44 / janfrog"
|
|
980 |
"Modified: / 24-11-2007 / 09:42:16 / janfrog"
|
|
981 |
"Modified: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
982 |
!
|
|
983 |
|
|
984 |
method
|
|
985 |
self subject methodClass ifNil:[ ^ nil ].
|
|
986 |
^ self subject methodClass >> self subject selector asSymbol
|
|
987 |
|
|
988 |
"Created: / 10-10-2007 / 08:49:58 / janfrog"
|
|
989 |
"Modified: / 24-11-2007 / 09:18:56 / janfrog"
|
|
990 |
!
|
|
991 |
|
|
992 |
methodPackage
|
|
993 |
|
|
994 |
| mth |
|
|
995 |
mth := self method.
|
|
996 |
mth ifNil:[^#__NoProject__].
|
|
997 |
^self method package
|
|
998 |
|
|
999 |
"Created: / 10-10-2007 / 13:03:21 / janfrog"
|
|
1000 |
!
|
|
1001 |
|
|
1002 |
subject
|
|
1003 |
^ subjects anyOne
|
|
1004 |
|
|
1005 |
"Created: / 10-10-2007 / 08:35:21 / janfrog"
|
|
1006 |
"Modified: / 24-11-2007 / 09:41:22 / janfrog"
|
|
1007 |
!
|
|
1008 |
|
|
1009 |
subject:anObject
|
|
1010 |
subjects := Array with: anObject
|
|
1011 |
|
|
1012 |
"Created: / 10-10-2007 / 08:35:21 / janfrog"
|
|
1013 |
"Modified: / 24-11-2007 / 09:41:33 / janfrog"
|
|
1014 |
!
|
|
1015 |
|
|
1016 |
subjects
|
|
1017 |
^ subjects
|
|
1018 |
|
|
1019 |
"Created: / 24-11-2007 / 09:41:14 / janfrog"
|
|
1020 |
!
|
|
1021 |
|
|
1022 |
subjects:something
|
|
1023 |
subjects := something.
|
|
1024 |
|
|
1025 |
"Created: / 24-11-2007 / 09:41:14 / janfrog"
|
|
1026 |
!
|
|
1027 |
|
|
1028 |
totalTally
|
|
1029 |
|
|
1030 |
^subjects inject:0 into:[:tally :subject| tally + subject totalTally]
|
|
1031 |
|
|
1032 |
"Created: / 24-11-2007 / 09:43:01 / janfrog"
|
|
1033 |
! !
|
|
1034 |
|
|
1035 |
!VisualProfilerCanvas::CallTreeItem methodsFor:'change & update'!
|
|
1036 |
|
|
1037 |
updateChildren
|
|
1038 |
|
|
1039 |
self removeAll.
|
|
1040 |
self addAll:self createChildren
|
|
1041 |
|
|
1042 |
"Created: / 10-10-2007 / 13:02:13 / janfrog"
|
|
1043 |
! !
|
|
1044 |
|
|
1045 |
!VisualProfilerCanvas::CallTreeItem methodsFor:'comparing'!
|
|
1046 |
|
|
1047 |
shouldBeMergedWith:anotherCallTreeItem
|
|
1048 |
^ self subject methodClass = anotherCallTreeItem subject methodClass
|
|
1049 |
and:[
|
|
1050 |
self subject selector = anotherCallTreeItem subject selector
|
|
1051 |
and:[ self subject isBlock not ]
|
|
1052 |
]
|
|
1053 |
|
|
1054 |
"Created: / 24-11-2007 / 09:50:34 / janfrog"
|
|
1055 |
! !
|
|
1056 |
|
|
1057 |
!VisualProfilerCanvas::CallTreeItem methodsFor:'private'!
|
|
1058 |
|
|
1059 |
mergeChildren: rawChildren
|
|
1060 |
|
|
1061 |
|mergedChildren|
|
|
1062 |
|
|
1063 |
mergedChildren := OrderedCollection new.
|
|
1064 |
[rawChildren isEmpty] whileFalse:
|
|
1065 |
[|childToMerge childrenToMerge|
|
|
1066 |
childToMerge := mergedChildren add:(rawChildren removeFirst).
|
|
1067 |
childrenToMerge := rawChildren select:[:e|e shouldBeMergedWith:childToMerge].
|
|
1068 |
rawChildren removeAll: childrenToMerge.
|
|
1069 |
childrenToMerge do:[:e|childToMerge subjects addAll:e subjects].
|
|
1070 |
].
|
|
1071 |
^mergedChildren
|
|
1072 |
|
|
1073 |
"Created: / 24-11-2007 / 09:20:07 / janfrog"
|
|
1074 |
! !
|
|
1075 |
|
|
1076 |
!VisualProfilerCanvas::CallTreeItem methodsFor:'testing'!
|
|
1077 |
|
|
1078 |
isFiltered
|
|
1079 |
|
|
1080 |
| isFiltered |
|
|
1081 |
isFiltered := false.
|
|
1082 |
self application packageFilter value
|
|
1083 |
ifNotNil:[isFiltered := (self application packageFilter value includes: self methodPackage) not].
|
|
1084 |
^isFiltered
|
|
1085 |
|
|
1086 |
"Created: / 10-10-2007 / 13:09:46 / janfrog"
|
|
1087 |
! !
|
|
1088 |
|
|
1089 |
!VisualProfilerCanvas class methodsFor:'documentation'!
|
|
1090 |
|
|
1091 |
version_CVS
|
10058
|
1092 |
^ '$Header: /cvs/stx/stx/libtool/Tools__VisualProfilerCanvas.st,v 1.2 2011-07-03 17:46:38 cg Exp $'
|
9994
|
1093 |
!
|
|
1094 |
|
|
1095 |
version_SVN
|
|
1096 |
^ '§Id: Tools__VisualProfilerCanvas.st 7486 2009-10-26 22:06:24Z vranyj1 §'
|
|
1097 |
! !
|