author | Claus Gittinger <cg@exept.de> |
Mon, 11 Sep 2017 09:07:18 +0200 | |
changeset 17684 | ad637949d97a |
parent 14820 | e4a7f24d860b |
child 15566 | 184cea584be5 |
child 19024 | 4338c98f1cfe |
permissions | -rw-r--r-- |
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 |
||
12027
4ad476b3ee83
comment/format in: #saveProfilerAction
Claus Gittinger <cg@exept.de>
parents:
10872
diff
changeset
|
490 |
|
9994 | 491 |
" |
492 |
MenuEditor new openOnClass:Tools::VisualProfilerCanvas andSelector:#sidebarMenu |
|
493 |
(Menu new fromLiteralArrayEncoding:(Tools::VisualProfilerCanvas sidebarMenu)) startUp |
|
494 |
" |
|
495 |
||
496 |
<resource: #menu> |
|
497 |
||
498 |
^ |
|
499 |
#(Menu |
|
500 |
( |
|
501 |
(MenuItem |
|
12027
4ad476b3ee83
comment/format in: #saveProfilerAction
Claus Gittinger <cg@exept.de>
parents:
10872
diff
changeset
|
502 |
label: 'Save Profile Data' |
9994 | 503 |
itemValue: saveProfilerAction |
12027
4ad476b3ee83
comment/format in: #saveProfilerAction
Claus Gittinger <cg@exept.de>
parents:
10872
diff
changeset
|
504 |
isButton: true |
10856 | 505 |
labelImage: (ResourceRetriever ToolbarIconLibrary saveToFileIcon) |
9994 | 506 |
) |
507 |
) |
|
508 |
nil |
|
509 |
nil |
|
510 |
) |
|
511 |
! ! |
|
512 |
||
513 |
!VisualProfilerCanvas class methodsFor:'plugIn spec'! |
|
514 |
||
515 |
aspectSelectors |
|
516 |
"This resource specification was automatically generated |
|
517 |
by the UIPainter of ST/X." |
|
518 |
||
519 |
"Do not manually edit this. If it is corrupted, |
|
520 |
the UIPainter may not be able to read the specification." |
|
521 |
||
522 |
"Return a description of exported aspects; |
|
523 |
these can be connected to aspects of an embedding application |
|
524 |
(if this app is embedded in a subCanvas)." |
|
525 |
||
526 |
^ #( |
|
14027
92b437417e1c
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12027
diff
changeset
|
527 |
environmentHolder |
9994 | 528 |
#packageFilter |
529 |
#profilerStatistics |
|
530 |
#selectedMethods |
|
531 |
). |
|
532 |
||
533 |
"Modified: / 01-12-2007 / 23:57:41 / janfrog" |
|
14027
92b437417e1c
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12027
diff
changeset
|
534 |
"Modified: / 24-02-2014 / 10:37:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9994 | 535 |
! ! |
536 |
||
537 |
!VisualProfilerCanvas class methodsFor:'tableColumns specs'! |
|
538 |
||
539 |
methodListColumns |
|
540 |
"This resource specification was automatically generated |
|
541 |
by the DataSetBuilder of ST/X." |
|
542 |
||
543 |
"Do not manually edit this!! If it is corrupted, |
|
544 |
the DataSetBuilder may not be able to read the specification." |
|
545 |
||
546 |
" |
|
547 |
DataSetBuilder new openOnClass:Tools::VisualProfilerCanvas andSelector:#methodListColumns |
|
548 |
" |
|
549 |
||
550 |
<resource: #tableColumns> |
|
551 |
||
552 |
^#( |
|
553 |
(DataSetColumnSpec |
|
554 |
labelButtonType: Button |
|
555 |
rendererType: rowSelector |
|
556 |
showRowSeparator: false |
|
557 |
showSelectionHighLighted: false |
|
558 |
showColSeparator: false |
|
559 |
) |
|
560 |
(DataSetColumnSpec |
|
561 |
label: 'Tally' |
|
562 |
labelButtonType: Button |
|
563 |
type: number |
|
564 |
model: tally |
|
565 |
canSelect: false |
|
566 |
showRowSeparator: false |
|
567 |
showSelectionHighLighted: false |
|
568 |
showColSeparator: false |
|
569 |
) |
|
570 |
(DataSetColumnSpec |
|
571 |
label: 'Method' |
|
572 |
labelButtonType: Button |
|
573 |
model: methodLabel |
|
574 |
canSelect: false |
|
575 |
showRowSeparator: false |
|
576 |
showSelectionHighLighted: false |
|
577 |
showColSeparator: false |
|
578 |
) |
|
579 |
(DataSetColumnSpec |
|
580 |
label: 'Package' |
|
581 |
labelButtonType: Button |
|
582 |
model: packageLabel |
|
583 |
canSelect: false |
|
584 |
showRowSeparator: false |
|
585 |
showSelectionHighLighted: false |
|
586 |
showColSeparator: false |
|
587 |
) |
|
588 |
) |
|
589 |
||
590 |
"Modified: / 01-12-2007 / 23:56:15 / janfrog" |
|
591 |
! ! |
|
592 |
||
593 |
!VisualProfilerCanvas methodsFor:'aspects'! |
|
594 |
||
595 |
callTreeHolder |
|
596 |
callTreeHolder isNil ifTrue:[ |
|
597 |
callTreeHolder := HierarchicalList new. |
|
598 |
callTreeHolder application: self. |
|
599 |
]. |
|
600 |
^ callTreeHolder. |
|
601 |
||
602 |
"Created: / 10-10-2007 / 08:34:26 / janfrog" |
|
603 |
"Modified: / 10-10-2007 / 12:48:20 / janfrog" |
|
604 |
! |
|
605 |
||
606 |
executionTimeAspect |
|
607 |
||
608 |
^(PluggableAdaptor on: profilerStatistics) |
|
609 |
getBlock:[:model| |
|
610 |
model value |
|
611 |
ifNil:['N/A'] |
|
612 |
ifNotNil:[model value computationTime printString |
|
613 |
, 'ms' |
|
614 |
,' (', (TimeDuration new setMilliseconds:model value computationTime) printString , ')']] |
|
615 |
putBlock:[:ign1 :ign2|self shouldNeverBeReached] |
|
616 |
updateBlock:[:ign1 :ign2 :ign3|true] |
|
617 |
||
618 |
"Created: / 24-11-2007 / 08:44:49 / janfrog" |
|
619 |
! |
|
620 |
||
621 |
methodListAspect |
|
622 |
||
10869 | 623 |
methodList isNil ifTrue:[methodList := List new]. |
9994 | 624 |
^methodList |
625 |
||
626 |
"Created: / 01-12-2007 / 23:38:16 / janfrog" |
|
10869 | 627 |
"Modified: / 18-11-2011 / 15:01:52 / cg" |
9994 | 628 |
! |
629 |
||
630 |
notesAspect |
|
631 |
||
632 |
^(AspectAdaptor forAspect:#notes) |
|
633 |
subjectChannel: self profilerStatistics |
|
634 |
||
635 |
"Created: / 24-11-2007 / 09:27:47 / janfrog" |
|
636 |
! |
|
637 |
||
638 |
packageFilter |
|
639 |
"return/create the 'packageFilter' value holder (automatically generated)" |
|
640 |
||
641 |
packageFilter isNil ifTrue:[ |
|
642 |
packageFilter := ValueHolder new. |
|
643 |
]. |
|
644 |
^ packageFilter |
|
645 |
||
646 |
"Created: / 09-10-2007 / 21:27:32 / janfrog" |
|
647 |
! |
|
648 |
||
649 |
packageFilter:something |
|
650 |
"set the 'packageFilter' value holder (automatically generated)" |
|
651 |
||
652 |
packageFilter ifNotNil:[packageFilter removeDependent: self]. |
|
653 |
packageFilter := something. |
|
654 |
packageFilter ifNotNil:[packageFilter addDependent: self]. |
|
655 |
||
656 |
"Created: / 09-10-2007 / 21:27:32 / janfrog" |
|
657 |
"Modified: / 10-10-2007 / 12:47:08 / janfrog" |
|
658 |
! |
|
659 |
||
660 |
perspectiveNotebookTabList |
|
661 |
"Generated by the TabListEditor" |
|
662 |
||
663 |
|list| |
|
664 |
||
665 |
(list := builder bindingAt:#perspectiveNotebookTabList) isNil ifTrue:[ |
|
666 |
builder aspectAt:#perspectiveNotebookTabList put:(list := self class perspectiveNotebookTabList). |
|
667 |
]. |
|
668 |
^ list |
|
669 |
||
670 |
"Created: / 10-10-2007 / 10:10:07 / janfrog" |
|
671 |
! |
|
672 |
||
673 |
perspectiveSpecHolder |
|
674 |
perspectiveSpecHolder isNil ifTrue:[ |
|
675 |
perspectiveSpecHolder := #callTreeSpec asValue. |
|
676 |
]. |
|
677 |
^ perspectiveSpecHolder. |
|
678 |
||
679 |
"Created: / 10-10-2007 / 08:31:35 / janfrog" |
|
680 |
! |
|
681 |
||
682 |
profilerStatistics |
|
683 |
"return/create the 'profilerStatistics' value holder (automatically generated)" |
|
684 |
||
685 |
profilerStatistics isNil ifTrue:[ |
|
686 |
profilerStatistics := ValueHolder new. |
|
687 |
]. |
|
688 |
^ profilerStatistics |
|
689 |
||
690 |
"Created: / 09-10-2007 / 21:53:38 / janfrog" |
|
691 |
! |
|
692 |
||
693 |
profilerStatistics:something |
|
694 |
"set the 'profilerStatistics' value holder (automatically generated)" |
|
695 |
||
696 |
profilerStatistics ifNotNil:[profilerStatistics removeDependent: self]. |
|
697 |
profilerStatistics := something. |
|
698 |
profilerStatistics ifNotNil:[profilerStatistics addDependent: self]. |
|
699 |
||
700 |
"Created: / 09-10-2007 / 21:53:38 / janfrog" |
|
701 |
"Modified: / 10-10-2007 / 08:46:46 / janfrog" |
|
702 |
! |
|
703 |
||
704 |
selectedCallTreeItemHolder |
|
705 |
selectedCallTreeItemHolder isNil ifTrue:[ |
|
706 |
selectedCallTreeItemHolder := ValueHolder new. |
|
707 |
selectedCallTreeItemHolder onChangeSend:#selectedCallTreeItemChanged to:self. |
|
708 |
]. |
|
709 |
^ selectedCallTreeItemHolder. |
|
710 |
||
711 |
"Created: / 10-10-2007 / 08:51:34 / janfrog" |
|
712 |
! |
|
713 |
||
714 |
selectedMethods |
|
715 |
"return/create the 'selectedMethods' value holder (automatically generated)" |
|
716 |
||
717 |
selectedMethods isNil ifTrue:[ |
|
718 |
selectedMethods := ValueHolder new. |
|
719 |
]. |
|
720 |
^ selectedMethods |
|
721 |
||
722 |
"Created: / 09-10-2007 / 21:18:18 / janfrog" |
|
723 |
! |
|
724 |
||
725 |
selectedMethods:something |
|
726 |
"set the 'selectedMethods' value holder (automatically generated)" |
|
727 |
||
728 |
selectedMethods := something. |
|
729 |
||
730 |
"Created: / 09-10-2007 / 21:18:18 / janfrog" |
|
731 |
! |
|
732 |
||
733 |
sidebarNotebookTabList |
|
734 |
"Generated by the TabListEditor" |
|
735 |
||
736 |
|list| |
|
737 |
||
738 |
(list := builder bindingAt:#sidebarNotebookTabList) isNil ifTrue:[ |
|
739 |
builder aspectAt:#sidebarNotebookTabList put:(list := self class sidebarNotebookTabList). |
|
740 |
]. |
|
741 |
^ list |
|
742 |
||
743 |
"Created: / 10-10-2007 / 10:10:35 / janfrog" |
|
744 |
! |
|
745 |
||
746 |
startTimestampAspect |
|
747 |
||
748 |
^(PluggableAdaptor on: profilerStatistics) |
|
749 |
getBlock:[:model| |
|
750 |
model value |
|
751 |
ifNil:['N/A'] |
|
752 |
ifNotNil:[model value startTimestamp printString]] |
|
753 |
putBlock:[:ign1 :ign2|self shouldNeverBeReached] |
|
754 |
updateBlock:[:ign1 :ign2 :ign3|true] |
|
755 |
||
756 |
"Created: / 24-11-2007 / 08:57:58 / janfrog" |
|
757 |
! ! |
|
758 |
||
759 |
!VisualProfilerCanvas methodsFor:'change & update'! |
|
760 |
||
761 |
methodsSelectionChanged |
|
762 |
||
763 |
self topApplication == self |
|
764 |
ifFalse:[self topApplication methodsSelectionChanged] |
|
765 |
||
766 |
"Created: / 09-10-2007 / 21:33:50 / janfrog" |
|
767 |
! |
|
768 |
||
769 |
selectedCallTreeItemChanged |
|
10869 | 770 |
|selectedCallTreeItem| |
9994 | 771 |
|
10869 | 772 |
(selectedCallTreeItem := self selectedCallTreeItemHolder value) isNil ifTrue:[^self]. |
773 |
self switchToMethod: selectedCallTreeItem method |
|
9994 | 774 |
|
775 |
"Created: / 10-10-2007 / 08:52:33 / janfrog" |
|
10869 | 776 |
"Modified: / 18-11-2011 / 15:02:20 / cg" |
9994 | 777 |
! |
778 |
||
779 |
update: aspect with: value from: sender |
|
780 |
||
781 |
sender == self profilerStatistics |
|
782 |
ifTrue:[^self updateCallTreeRoot; updateMethodList]. |
|
783 |
||
784 |
sender == self packageFilter |
|
785 |
ifTrue:[self updateCallTree; updateMethodList] |
|
786 |
||
787 |
"Created: / 10-10-2007 / 08:46:59 / janfrog" |
|
788 |
"Modified: / 01-12-2007 / 23:52:07 / janfrog" |
|
789 |
! |
|
790 |
||
791 |
updateCallTree |
|
792 |
||
793 |
self callTreeHolder root updateChildren |
|
794 |
||
795 |
"Created: / 10-10-2007 / 12:57:36 / janfrog" |
|
796 |
! |
|
797 |
||
798 |
updateCallTreeRoot |
|
799 |
||
800 |
| callTree callTreeRootItem | |
|
10869 | 801 |
|
9994 | 802 |
callTree := self callTreeHolder. |
10869 | 803 |
profilerStatistics value isNil ifTrue:[^callTree root: nil]. |
9994 | 804 |
callTreeRootItem := CallTreeItem |
805 |
subject: profilerStatistics value tree |
|
806 |
parent: callTree. |
|
807 |
callTree root: callTreeRootItem. |
|
808 |
callTree showRoot: true. |
|
809 |
||
810 |
"Created: / 10-10-2007 / 12:59:07 / janfrog" |
|
10869 | 811 |
"Modified (format): / 18-11-2011 / 15:02:32 / cg" |
9994 | 812 |
! |
813 |
||
814 |
updateMethodList |
|
10869 | 815 |
| items | |
9994 | 816 |
|
817 |
self methodListAspect removeAll. |
|
10869 | 818 |
self profilerStatistics value isNil ifTrue:[^self]. |
9994 | 819 |
items := ProfilerInfoBuilder::MethodList new |
820 |
packages: self packageFilter value; |
|
821 |
build: self profilerStatistics value tree; |
|
822 |
items. |
|
823 |
||
824 |
self methodListAspect addAll: items |
|
825 |
||
826 |
"Created: / 01-12-2007 / 23:39:15 / janfrog" |
|
10869 | 827 |
"Modified: / 18-11-2011 / 15:02:49 / cg" |
9994 | 828 |
! ! |
829 |
||
830 |
!VisualProfilerCanvas methodsFor:'hooks'! |
|
831 |
||
832 |
commonPostBuild |
|
833 |
||
834 |
super commonPostBuild. |
|
835 |
self updateCallTreeRoot. |
|
836 |
self updateMethodList. |
|
837 |
||
838 |
"Created: / 09-10-2007 / 20:05:18 / janfrog" |
|
839 |
"Modified: / 01-12-2007 / 23:39:34 / janfrog" |
|
840 |
! |
|
841 |
||
842 |
postBuildEditModeInfoLabel: view |
|
843 |
||
844 |
"Created: / 09-10-2007 / 21:06:35 / janfrog" |
|
845 |
! |
|
846 |
||
847 |
postBuildEditorNoteBook: view |
|
848 |
||
849 |
"Created: / 09-10-2007 / 21:05:39 / janfrog" |
|
850 |
! ! |
|
851 |
||
852 |
!VisualProfilerCanvas methodsFor:'user actions'! |
|
853 |
||
854 |
switchToMethod: aMethod |
|
855 |
||
856 |
self selectedMethods value:(Array with: aMethod). |
|
857 |
self methodsSelectionChanged |
|
858 |
||
859 |
"Created: / 09-10-2007 / 21:36:35 / janfrog" |
|
860 |
! ! |
|
861 |
||
862 |
!VisualProfilerCanvas methodsFor:'user actions-profiler'! |
|
863 |
||
864 |
profilerTestAction |
|
865 |
||
866 |
self switchToMethod:(Object >> #yourself). |
|
867 |
||
868 |
"Created: / 09-10-2007 / 21:07:53 / janfrog" |
|
869 |
! |
|
870 |
||
871 |
saveProfilerAction |
|
12027
4ad476b3ee83
comment/format in: #saveProfilerAction
Claus Gittinger <cg@exept.de>
parents:
10872
diff
changeset
|
872 |
| file profiler | |
9994 | 873 |
|
874 |
file := Dialog requestFileName:'Select file' pattern:'*.profiler.boss'. |
|
10461
8895184eb133
changed: #saveProfilerAction
Claus Gittinger <cg@exept.de>
parents:
10058
diff
changeset
|
875 |
file isEmptyOrNil ifTrue:[^self]. |
9994 | 876 |
profiler := self profilerStatistics value. |
877 |
profiler storeStatisticsOn: file asFilename writeStream |
|
878 |
||
879 |
"Created: / 24-11-2007 / 09:16:38 / janfrog" |
|
10461
8895184eb133
changed: #saveProfilerAction
Claus Gittinger <cg@exept.de>
parents:
10058
diff
changeset
|
880 |
"Modified: / 04-08-2011 / 19:06:07 / cg" |
9994 | 881 |
! ! |
882 |
||
883 |
!VisualProfilerCanvas::CallTreeItem class methodsFor:'documentation'! |
|
884 |
||
885 |
version |
|
14820
e4a7f24d860b
class: Tools::VisualProfilerCanvas
Claus Gittinger <cg@exept.de>
parents:
14383
diff
changeset
|
886 |
^'$Header: /cvs/stx/stx/libtool/Tools__VisualProfilerCanvas.st,v 1.10 2014-11-10 22:34:53 cg Exp $' |
9994 | 887 |
! ! |
888 |
||
889 |
!VisualProfilerCanvas::CallTreeItem class methodsFor:'instance creation'! |
|
890 |
||
891 |
subject: subject parent: parent |
|
892 |
||
893 |
^self new |
|
894 |
subject: subject; |
|
895 |
parent: parent; |
|
896 |
yourself |
|
897 |
||
898 |
"Created: / 10-10-2007 / 08:35:55 / janfrog" |
|
899 |
! ! |
|
900 |
||
901 |
!VisualProfilerCanvas::CallTreeItem methodsFor:'accessing'! |
|
902 |
||
903 |
children |
|
904 |
||
10869 | 905 |
children isNil ifTrue:[children := self createChildren]. |
9994 | 906 |
^children |
907 |
||
908 |
"Created: / 10-10-2007 / 08:38:28 / janfrog" |
|
909 |
"Modified: / 10-10-2007 / 13:24:06 / janfrog" |
|
10869 | 910 |
"Modified: / 18-11-2011 / 15:03:00 / cg" |
9994 | 911 |
! |
912 |
||
913 |
createChildren |
|
914 |
|childrenTmp childrenStream| |
|
915 |
||
10869 | 916 |
self subject isNil ifTrue:[ ^ children := #() ]. |
9994 | 917 |
childrenStream := (OrderedCollection new:self subject called size) |
918 |
writeStream. |
|
919 |
self createChildrenOn:childrenStream. |
|
920 |
childrenTmp := childrenStream contents. |
|
921 |
childrenTmp := self mergeChildren: childrenTmp. |
|
922 |
childrenTmp do:[:child | child parent:self]. |
|
923 |
^ childrenTmp |
|
924 |
||
925 |
"Created: / 10-10-2007 / 13:17:04 / janfrog" |
|
926 |
"Modified: / 24-11-2007 / 09:43:30 / janfrog" |
|
10869 | 927 |
"Modified: / 18-11-2011 / 15:03:03 / cg" |
9994 | 928 |
! |
929 |
||
930 |
createChildrenOn:aStream |
|
931 |
self directChildren do:[:child | |
|
932 |
child isFiltered ifTrue:[ |
|
933 |
child createChildrenOn:aStream |
|
934 |
] ifFalse:[ |
|
935 |
aStream nextPut:child |
|
936 |
] |
|
937 |
] |
|
938 |
||
939 |
"Created: / 10-10-2007 / 13:05:52 / janfrog" |
|
940 |
! |
|
941 |
||
942 |
directChildren |
|
10869 | 943 |
|called| |
944 |
||
945 |
(called := self subject called) isNil ifTrue:[ ^ #() ]. |
|
946 |
^ called |
|
9994 | 947 |
collect:[:childSubject | self class subject:childSubject parent:self ] |
948 |
||
949 |
"Created: / 10-10-2007 / 13:07:24 / janfrog" |
|
950 |
"Modified: / 24-11-2007 / 09:18:56 / janfrog" |
|
10869 | 951 |
"Modified: / 18-11-2011 / 15:03:31 / cg" |
9994 | 952 |
! |
953 |
||
954 |
label |
|
955 |
^ self totalTally printString , '% in ' |
|
956 |
, (self subject isBlock ifTrue:[ '[] in ' ] ifFalse:[ '' ]) |
|
957 |
, (self subject selector ? '<no selector>') , ' ' |
|
958 |
, ('[' , (self subject methodClass |
|
959 |
ifNil:[ 'nil class' ] |
|
960 |
ifNotNil:[ self subject methodClass name ]) |
|
961 |
, ']') allBold |
|
962 |
, ' [' , self methodPackage asString allItalic |
|
963 |
, ']' |
|
964 |
||
965 |
"Created: / 10-10-2007 / 08:40:44 / janfrog" |
|
966 |
"Modified: / 24-11-2007 / 09:42:16 / janfrog" |
|
967 |
"Modified: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
968 |
! |
|
969 |
||
970 |
method |
|
10869 | 971 |
|methodClass| |
972 |
||
973 |
(methodClass := self subject methodClass) isNil ifTrue:[ ^ nil ]. |
|
974 |
^ methodClass >> self subject selector asSymbol |
|
9994 | 975 |
|
976 |
"Created: / 10-10-2007 / 08:49:58 / janfrog" |
|
977 |
"Modified: / 24-11-2007 / 09:18:56 / janfrog" |
|
10869 | 978 |
"Modified: / 18-11-2011 / 15:03:56 / cg" |
9994 | 979 |
! |
980 |
||
981 |
methodPackage |
|
10869 | 982 |
| mth | |
9994 | 983 |
|
984 |
mth := self method. |
|
10869 | 985 |
mth isNil ifTrue:[^#__NoProject__]. |
986 |
^ mth package |
|
9994 | 987 |
|
988 |
"Created: / 10-10-2007 / 13:03:21 / janfrog" |
|
10869 | 989 |
"Modified (format): / 18-11-2011 / 15:04:15 / cg" |
9994 | 990 |
! |
991 |
||
992 |
subject |
|
993 |
^ subjects anyOne |
|
994 |
||
995 |
"Created: / 10-10-2007 / 08:35:21 / janfrog" |
|
996 |
"Modified: / 24-11-2007 / 09:41:22 / janfrog" |
|
997 |
! |
|
998 |
||
999 |
subject:anObject |
|
1000 |
subjects := Array with: anObject |
|
1001 |
||
1002 |
"Created: / 10-10-2007 / 08:35:21 / janfrog" |
|
1003 |
"Modified: / 24-11-2007 / 09:41:33 / janfrog" |
|
1004 |
! |
|
1005 |
||
1006 |
subjects |
|
1007 |
^ subjects |
|
1008 |
||
1009 |
"Created: / 24-11-2007 / 09:41:14 / janfrog" |
|
1010 |
! |
|
1011 |
||
1012 |
subjects:something |
|
1013 |
subjects := something. |
|
1014 |
||
1015 |
"Created: / 24-11-2007 / 09:41:14 / janfrog" |
|
1016 |
! |
|
1017 |
||
1018 |
totalTally |
|
1019 |
||
1020 |
^subjects inject:0 into:[:tally :subject| tally + subject totalTally] |
|
1021 |
||
1022 |
"Created: / 24-11-2007 / 09:43:01 / janfrog" |
|
1023 |
! ! |
|
1024 |
||
1025 |
!VisualProfilerCanvas::CallTreeItem methodsFor:'change & update'! |
|
1026 |
||
1027 |
updateChildren |
|
1028 |
||
1029 |
self removeAll. |
|
1030 |
self addAll:self createChildren |
|
1031 |
||
1032 |
"Created: / 10-10-2007 / 13:02:13 / janfrog" |
|
1033 |
! ! |
|
1034 |
||
1035 |
!VisualProfilerCanvas::CallTreeItem methodsFor:'comparing'! |
|
1036 |
||
1037 |
shouldBeMergedWith:anotherCallTreeItem |
|
1038 |
^ self subject methodClass = anotherCallTreeItem subject methodClass |
|
1039 |
and:[ |
|
1040 |
self subject selector = anotherCallTreeItem subject selector |
|
1041 |
and:[ self subject isBlock not ] |
|
1042 |
] |
|
1043 |
||
1044 |
"Created: / 24-11-2007 / 09:50:34 / janfrog" |
|
1045 |
! ! |
|
1046 |
||
1047 |
!VisualProfilerCanvas::CallTreeItem methodsFor:'private'! |
|
1048 |
||
1049 |
mergeChildren: rawChildren |
|
1050 |
||
1051 |
|mergedChildren| |
|
1052 |
||
1053 |
mergedChildren := OrderedCollection new. |
|
14383
4f852986915b
class: Tools::VisualProfilerCanvas - do not try to grow an array.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14027
diff
changeset
|
1054 |
[rawChildren isEmpty] whileFalse:[ |
4f852986915b
class: Tools::VisualProfilerCanvas - do not try to grow an array.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14027
diff
changeset
|
1055 |
| childToMerge childrenToMerge | |
4f852986915b
class: Tools::VisualProfilerCanvas - do not try to grow an array.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14027
diff
changeset
|
1056 |
|
9994 | 1057 |
childToMerge := mergedChildren add:(rawChildren removeFirst). |
14383
4f852986915b
class: Tools::VisualProfilerCanvas - do not try to grow an array.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14027
diff
changeset
|
1058 |
childrenToMerge := rawChildren select:[:e|e shouldBeMergedWith:childToMerge] as: OrderedCollection. |
9994 | 1059 |
rawChildren removeAll: childrenToMerge. |
1060 |
childrenToMerge do:[:e|childToMerge subjects addAll:e subjects]. |
|
14383
4f852986915b
class: Tools::VisualProfilerCanvas - do not try to grow an array.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14027
diff
changeset
|
1061 |
]. |
9994 | 1062 |
^mergedChildren |
1063 |
||
1064 |
"Created: / 24-11-2007 / 09:20:07 / janfrog" |
|
14383
4f852986915b
class: Tools::VisualProfilerCanvas - do not try to grow an array.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14027
diff
changeset
|
1065 |
"Modified: / 21-05-2014 / 15:49:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9994 | 1066 |
! ! |
1067 |
||
1068 |
!VisualProfilerCanvas::CallTreeItem methodsFor:'testing'! |
|
1069 |
||
1070 |
isFiltered |
|
1071 |
||
1072 |
| isFiltered | |
|
1073 |
isFiltered := false. |
|
1074 |
self application packageFilter value |
|
1075 |
ifNotNil:[isFiltered := (self application packageFilter value includes: self methodPackage) not]. |
|
1076 |
^isFiltered |
|
1077 |
||
1078 |
"Created: / 10-10-2007 / 13:09:46 / janfrog" |
|
1079 |
! ! |
|
1080 |
||
1081 |
!VisualProfilerCanvas class methodsFor:'documentation'! |
|
1082 |
||
10872 | 1083 |
version |
14820
e4a7f24d860b
class: Tools::VisualProfilerCanvas
Claus Gittinger <cg@exept.de>
parents:
14383
diff
changeset
|
1084 |
^ '$Header: /cvs/stx/stx/libtool/Tools__VisualProfilerCanvas.st,v 1.10 2014-11-10 22:34:53 cg Exp $' |
10872 | 1085 |
! |
1086 |
||
9994 | 1087 |
version_CVS |
14820
e4a7f24d860b
class: Tools::VisualProfilerCanvas
Claus Gittinger <cg@exept.de>
parents:
14383
diff
changeset
|
1088 |
^ '$Header: /cvs/stx/stx/libtool/Tools__VisualProfilerCanvas.st,v 1.10 2014-11-10 22:34:53 cg Exp $' |
9994 | 1089 |
! |
1090 |
||
1091 |
version_SVN |
|
14820
e4a7f24d860b
class: Tools::VisualProfilerCanvas
Claus Gittinger <cg@exept.de>
parents:
14383
diff
changeset
|
1092 |
^ '$Id: Tools__VisualProfilerCanvas.st,v 1.10 2014-11-10 22:34:53 cg Exp $' |
9994 | 1093 |
! ! |
14027
92b437417e1c
Refactoring of NavigatorModel's environment.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12027
diff
changeset
|
1094 |