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