author | Claus Gittinger <cg@exept.de> |
Mon, 19 Mar 2007 11:17:57 +0100 | |
changeset 7757 | 935e3e45cca4 |
parent 7466 | d90082d8c817 |
child 7767 | 1547d2d2005c |
permissions | -rw-r--r-- |
6300 | 1 |
" |
2 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
4463 | 12 |
"{ Package: 'stx:libtool' }" |
13 |
||
4570
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
14 |
ApplicationModel subclass:#ProcessMonitorV2 |
4463 | 15 |
instanceVariableNames:'processList tableColumns selectedProcesses updateSema showDetail |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
16 |
hasSelection showProcessId showGroup showState showPrio |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
17 |
showUsedStack showTotalStack showCurrentSegment showSwitch |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
18 |
showWhere currentSortOrder processTable showDead sortBlock |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
19 |
selectionRestartable updateListDelayTime updateContentsDelayTime |
4498 | 20 |
enableDecreaseListDelayTime enableDecreaseContentsDelayTime |
4570
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
21 |
enableIncreaseListDelayTime enableIncreaseContentsDelayTime |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
22 |
listUpdateDelay updateDelay updateBlock listUpdateBlock |
4649
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
23 |
updateProcess visibleBlock allowModifications tableMenu' |
4463 | 24 |
classVariableNames:'' |
25 |
poolDictionaries:'' |
|
26 |
category:'Monitors-ST/X' |
|
27 |
! |
|
28 |
||
29 |
Object subclass:#ProcessItem |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
30 |
instanceVariableNames:'processId processGroup processName processActive processState |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
31 |
processPrio processUsedStack processTotalStack processWhere |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
32 |
processInstance weakArrayWithProcesses |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
33 |
processInstanceIndexInWeakArray processCurrentSegment |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
34 |
processSwitch prioVal idVal groupVal' |
4463 | 35 |
classVariableNames:'' |
36 |
poolDictionaries:'' |
|
37 |
privateIn:ProcessMonitorV2 |
|
38 |
! |
|
39 |
||
40 |
!ProcessMonitorV2 class methodsFor:'documentation'! |
|
41 |
||
6300 | 42 |
copyright |
43 |
" |
|
44 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
45 |
All Rights Reserved |
|
46 |
||
47 |
This software is furnished under a license and may be used |
|
48 |
only in accordance with the terms of that license and with the |
|
49 |
inclusion of the above copyright notice. This software may not |
|
50 |
be provided or otherwise made available to, or used by, any |
|
51 |
other person. No title to or ownership of the software is |
|
52 |
hereby transferred. |
|
53 |
" |
|
54 |
! |
|
55 |
||
4463 | 56 |
documentation |
57 |
" |
|
58 |
documentation to be added. |
|
59 |
||
60 |
[author:] |
|
61 |
Christian Penk (penk@bierfix) |
|
62 |
||
63 |
[instance variables:] |
|
64 |
||
65 |
[class variables:] |
|
66 |
||
67 |
[see also:] |
|
68 |
||
69 |
" |
|
70 |
! |
|
71 |
||
72 |
examples |
|
73 |
" |
|
74 |
Starting the application: |
|
75 |
[exBegin] |
|
76 |
ProcessMonitorV2 open |
|
77 |
||
78 |
[exEnd] |
|
79 |
||
4649
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
80 |
Starting the application withot any possibilities to change |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
81 |
the processes |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
82 |
[exBegin] |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
83 |
ProcessMonitorV2 openAllowNoModifications |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
84 |
|
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
85 |
[exEnd] |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
86 |
|
4463 | 87 |
more examples to be added: |
88 |
[exBegin] |
|
89 |
... add code fragment for |
|
90 |
... executable example here ... |
|
91 |
[exEnd] |
|
92 |
" |
|
93 |
! |
|
94 |
||
95 |
history |
|
96 |
"Created: / 14.1.2003 / 11:16:10 / penk" |
|
97 |
! ! |
|
98 |
||
4649
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
99 |
!ProcessMonitorV2 class methodsFor:'instance creation'! |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
100 |
|
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
101 |
openAllowNoModifications |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
102 |
|
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
103 |
|
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
104 |
|application| |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
105 |
|
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
106 |
application := self new. |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
107 |
application open. |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
108 |
application allowModifications value:false. |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
109 |
! ! |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
110 |
|
4463 | 111 |
!ProcessMonitorV2 class methodsFor:'defaults'! |
112 |
||
113 |
defaultIcon |
|
114 |
|i| |
|
115 |
||
116 |
i := Image fromFile:'ProcMon.xbm'. |
|
117 |
i notNil ifTrue:[^ i]. |
|
118 |
^ super defaultIcon |
|
119 |
||
120 |
"Modified: 23.1.1997 / 02:52:31 / cg" |
|
121 |
! |
|
122 |
||
123 |
defaultLabel |
|
124 |
^ 'Process Monitor' |
|
6239 | 125 |
! |
126 |
||
127 |
resourcePackName |
|
128 |
^ 'ProcessMonitor' |
|
4463 | 129 |
! ! |
130 |
||
6290 | 131 |
!ProcessMonitorV2 class methodsFor:'help'! |
132 |
||
133 |
aboutThisApplicationText |
|
134 |
^ super aboutThisApplicationText , |
|
135 |
'\\Written by Christian Penk, eXept Software AG.' withCRs |
|
136 |
! ! |
|
137 |
||
4463 | 138 |
!ProcessMonitorV2 class methodsFor:'help specs'! |
139 |
||
6239 | 140 |
flyByHelpSpec |
141 |
"This resource specification was automatically generated |
|
142 |
by the UIHelpTool of ST/X." |
|
143 |
||
144 |
"Do not manually edit this!! If it is corrupted, |
|
145 |
the UIHelpTool may not be able to read the specification." |
|
146 |
||
147 |
" |
|
148 |
UIHelpTool openOnClass:ProcessMonitorV2 |
|
149 |
" |
|
150 |
||
151 |
<resource: #help> |
|
152 |
||
153 |
^ super flyByHelpSpec addPairsFrom:#( |
|
154 |
||
155 |
#Debug |
|
156 |
'Debug' |
|
157 |
||
158 |
#Details |
|
159 |
'Details' |
|
160 |
||
161 |
#Inspect |
|
162 |
'Inspect' |
|
163 |
||
164 |
#'Lower Prio' |
|
165 |
'Lower Prio' |
|
166 |
||
167 |
#'Raise Prio' |
|
168 |
'Raise Prio' |
|
169 |
||
170 |
#Restart |
|
171 |
'Restart' |
|
172 |
||
173 |
#Resume |
|
174 |
'Resume' |
|
175 |
||
6290 | 176 |
#Abort |
177 |
'Abort' |
|
178 |
||
6239 | 179 |
#Stop |
180 |
'Stop' |
|
181 |
||
182 |
#Suspend |
|
183 |
'Suspend' |
|
184 |
||
185 |
#Terminate |
|
186 |
'Terminate' |
|
187 |
||
188 |
#'Terminate Group' |
|
189 |
'Terminate Group' |
|
190 |
||
191 |
#'Update Process List' |
|
192 |
'Update Process List' |
|
193 |
||
194 |
) |
|
4463 | 195 |
! ! |
196 |
||
197 |
!ProcessMonitorV2 class methodsFor:'image specs'! |
|
198 |
||
199 |
detailsMenuIconDown |
|
200 |
"This resource specification was automatically generated |
|
201 |
by the ImageEditor of ST/X." |
|
202 |
||
203 |
"Do not manually edit this!! If it is corrupted, |
|
204 |
the ImageEditor may not be able to read the specification." |
|
205 |
||
206 |
" |
|
207 |
self detailsMenuIconDown inspect |
|
208 |
ImageEditor openOnClass:self andSelector:#detailsMenuIconDown |
|
209 |
Icon flushCachedIcons |
|
210 |
" |
|
211 |
||
212 |
<resource: #image> |
|
213 |
||
214 |
^Icon |
|
215 |
constantNamed:#'ProcessMonitorV2 class detailsMenuIconDown' |
|
216 |
ifAbsentPut:[(Depth1Image new) width: 7; height: 5; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 7; height: 5; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@A@(UJ(b') ; yourself); yourself] |
|
217 |
! |
|
218 |
||
219 |
detailsMenuIconUp |
|
220 |
"This resource specification was automatically generated |
|
221 |
by the ImageEditor of ST/X." |
|
222 |
||
223 |
"Do not manually edit this!! If it is corrupted, |
|
224 |
the ImageEditor may not be able to read the specification." |
|
225 |
||
226 |
" |
|
227 |
self detailsMenuIconUp inspect |
|
228 |
ImageEditor openOnClass:self andSelector:#detailsMenuIconUp |
|
229 |
Icon flushCachedIcons |
|
230 |
" |
|
231 |
||
232 |
<resource: #image> |
|
233 |
||
234 |
^Icon |
|
235 |
constantNamed:#'ProcessMonitorV2 class detailsMenuIconUp' |
|
236 |
ifAbsentPut:[(Depth1Image new) width: 7; height: 5; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 7; height: 5; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'*%P(D@@b') ; yourself); yourself] |
|
237 |
! |
|
238 |
||
4468 | 239 |
process22x22Icon |
240 |
"This resource specification was automatically generated |
|
241 |
by the ImageEditor of ST/X." |
|
242 |
||
243 |
"Do not manually edit this!! If it is corrupted, |
|
244 |
the ImageEditor may not be able to read the specification." |
|
245 |
||
246 |
" |
|
247 |
self process22x22Icon inspect |
|
248 |
ImageEditor openOnClass:self andSelector:#process22x22Icon |
|
249 |
Icon flushCachedIcons |
|
250 |
" |
|
251 |
||
252 |
<resource: #image> |
|
253 |
||
254 |
^Icon |
|
255 |
constantNamed:#'ProcessMonitorV2 class process22x22Icon' |
|
256 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
257 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@EA0@@@@@@@@@@@@@@@@@@@@@@@@@@AP\@@@@@@@@@@@@@@@@@ |
|
258 |
@@@GAP@@APXFB@@@AP\@@@@@@@@@@@@@B@XEAPXFA XEAPXH@@@@@@@@@@@@@@@GA XFA XFA XH@@@@@@@@@@@@@@@@APXFA0 GA XFA0@@@@@@@@@@@@@@ |
|
259 |
APXFA0 @@@TFA XG@@@@@@@@@@@EAPXFA @@@@@APXFA TG@@@@@@@@B@ FA XG@@@@@@TFA XHB@@@@@@@@@@@A0\FA T@@@TFA XH@@@@@@@@@@@@@@@G |
|
260 |
A XFAPTFA XH@@@@@@@@@@@@@@@@APXFA XFA XFB@@@@@@@@@@@@@@@APXHA0XFA XFAPXH@@@@@@@@@@@@@@\H@@@EA XG@@@GB@@@@@@@@@@@@@@@@@@@ |
|
261 |
@@TH@@@@@@@@@@@@@@@@@@@@@@@@@@@EB@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
262 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 128 128 128 160 160 160 195 195 195 220 220 220 255 255 255 194 194 194 161 161 165 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?<@C?<@O??@_9? _9? O??@C?<@C?<@G?>@G?>@COL@@O@@@F@@@@@@@@@@@@@@') ; yourself); yourself] |
|
263 |
! |
|
264 |
||
6290 | 265 |
processAbort22x22Icon |
266 |
"This resource specification was automatically generated |
|
267 |
by the ImageEditor of ST/X." |
|
268 |
||
269 |
"Do not manually edit this!! If it is corrupted, |
|
270 |
the ImageEditor may not be able to read the specification." |
|
271 |
||
272 |
" |
|
273 |
self processAbort22x22Icon inspect |
|
274 |
ImageEditor openOnClass:self andSelector:#processAbort22x22Icon |
|
275 |
Icon flushCachedIcons |
|
276 |
" |
|
277 |
||
278 |
<resource: #image> |
|
279 |
||
280 |
^Icon |
|
281 |
constantNamed:#'ProcessMonitorV2 class processAbort22x22Icon' |
|
282 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#[8]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
283 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@E@ @@@@@@@@@@@@@@@@@@@@@@@@@@APH@@@@@@@@@@@@@@@@@ |
|
284 |
@@@BAP@@APLC@P@@APH@@@@@@@@@@@@@@PLEAPLC@0LEAPLA@@@@@@@@@@@@@@@B@0LC@0LC@0LA@@@@@@@@@@@@@@@@APLC@ DB@0LC@ @@@@@@@@@@@@@@ |
|
285 |
APLC@ D@@@TC@0LB@@@@@@@@@@@EAPLC@0D@@@@@APLC@0TB@@@@@@@@@PDC@0LB@@@@@@TC@0LA@P@@@@@@@@@@@ HC@0T@@@TC@0LA@@TE@@@@@@@@@@@B |
|
286 |
@0LCAPTC@0LA@@TFA TE@@@@@@@@APLC@0LC@0LC@PTFA@PFAP@@@@@@APLA@ LC@0LCAPTFA@PDA@XE@@@@@@HA@@@E@0LB@@TFA@PDA@PFA @@@@@@@@TE |
|
287 |
@@TA@@@EA XDA@PFAPT@@@@@@@@EA TE@P@@APTEA PDA @@@@@@@@@@@@TFAP@@@@TEA PDA T@@@@@@@@@@@@@A XEAPTFA PDA@X@@@@@@@@@@@@@@@TF |
|
288 |
A XFA@PDA XE@@@@@@@@@@@@@@@@APTFA XFA TE@@@@@@@a') ; colorMapFromArray:#[0 0 0 127 127 127 161 161 165 194 194 194 255 0 0 255 255 255 192 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?<@C?<@O??@_9? _9? O?? C??8C??8G??<G??<C?_<@?_0@^_0@O? @O? @G?@') ; yourself); yourself] |
|
289 |
! |
|
290 |
||
4468 | 291 |
processDebug22x22Icon |
292 |
"This resource specification was automatically generated |
|
293 |
by the ImageEditor of ST/X." |
|
294 |
||
295 |
"Do not manually edit this!! If it is corrupted, |
|
296 |
the ImageEditor may not be able to read the specification." |
|
297 |
||
298 |
" |
|
299 |
self processDebug22x22Icon inspect |
|
300 |
ImageEditor openOnClass:self andSelector:#processDebug22x22Icon |
|
301 |
Icon flushCachedIcons |
|
302 |
" |
|
303 |
||
304 |
<resource: #image> |
|
305 |
||
306 |
^Icon |
|
307 |
constantNamed:#'ProcessMonitorV2 class processDebug22x22Icon' |
|
308 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
309 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@F@0@@@@@@@@@@@@@@@@@@@@@@@@@@A L@@@@@@@@@@@@@@@@@ |
|
310 |
@@@CA @@A PD@P@@A L@@@@@@@@@@@@@@PPFA PDA@PFA PA@@@@@@@@@@@@@@@CA@PD@@@DA@PA@@@@@@@@@@@@@@@@A P@@0DC@@@D@0@@@@@@@@@@@@@@ |
|
311 |
A PD@0@@@@X@@@@@@@@@@@@@@@@FA PDA@D@@@@@@@HB@ HB@ @@@@@@@PDDA@@@@@@@@ HBAPTEAPTB@@@@@@@@@0@B@ @B@ HEAPTEAPTEAPH@@@@@@@HB |
|
312 |
APTE@@HEAPTEAPTEAPTE@ @@@@@B@ TEAP@BAPTEAPTEAPTEAPH@@@@@@@HEAPT@@@@@@@@@@@@@@@@@@@@@@@HBAPTE@@HBAPTEAPTEAPTE@ @@@@@@@ HE |
|
313 |
@ @B@ HEAPTEAPTE@ H@@@@@@@@@@@@@@@HB@ HB@ HB@ @@@@@@@@@@@@@@@@@@@@@B@ HB@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
314 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 127 127 127 128 0 0 161 161 165 194 194 194 255 0 0 255 255 255]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?= C??XO?? _=?0_??8O??<???<C??<G??<???<_??<@??8@G?0@L? @Q#X@FA ') ; yourself); yourself] |
|
315 |
! |
|
316 |
||
317 |
processInspect22x22Icon |
|
318 |
"This resource specification was automatically generated |
|
319 |
by the ImageEditor of ST/X." |
|
320 |
||
321 |
"Do not manually edit this!! If it is corrupted, |
|
322 |
the ImageEditor may not be able to read the specification." |
|
323 |
||
324 |
" |
|
325 |
self processInspect22x22Icon inspect |
|
326 |
ImageEditor openOnClass:self andSelector:#processInspect22x22Icon |
|
327 |
Icon flushCachedIcons |
|
328 |
" |
|
329 |
||
330 |
<resource: #image> |
|
331 |
||
332 |
^Icon |
|
333 |
constantNamed:#'ProcessMonitorV2 class processInspect22x22Icon' |
|
334 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
335 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@EA0@@@@@@@@@@@@@@@@@@@@@@@@@@AP\@@@@@@@@@@@@@@@@@ |
|
336 |
@@@GAP@@APXFB@@@AP\@@@@@@@@@@@@@B@XEAPXFA XEAPXH@@@@@@@@@@@@@@@GA XFA @@@@XH@@@@@@@@@@@@@@@@APXF@@@BCPH@@@@@@@@@@@@@@@@@ |
|
337 |
APXF@@0MCP4MCP0@@@@@@@@@@@@EAPXFA @MCPTEAP4M@@TG@@@@@@@@B@ FA @BCPTEAP4MCPH@B@@@@@@@@@@@A0\@CP4EAP4MCP4M@@@@@@@@@@@@@@@G |
|
338 |
@@HMAP4MCP4M@ @@@@@@@@@@@@@@APX@CP4MCP4MCP@@@@@@@@@@@@@@APXH@@0MCP4MCP0@BP@@@@@@@@@@@@\H@@@@@@HM@ @@@ @@@@@@@@@@@@@@@@@@ |
|
339 |
@@T@@@@@B @K@0@@@@@@@@@@@@@@@@@EB@@@@@@@C ,C@@@@@@@@@@@@@@@@@@@@@@@@@@@NB0L@@@@@@@@@@@@@@@@@@@@@@@@@@@8K@0@@@@@@@@@@@@@@ |
|
340 |
@@@@@@@@@@@@C ,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 128 128 128 160 160 160 195 195 195 220 220 220 255 255 255 194 194 194 161 161 165 127 127 127 120 120 120 0 64 64 88 88 88 80 80 80 200 200 200 48 48 48]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?<@C?<@O??@_?? _?? O??@C?>@C?<@G?>@G??@CO/ @OG0@FC8@@A<@@@<@@@X') ; yourself); yourself] |
|
341 |
! |
|
342 |
||
343 |
processLowerPrio22x22Icon |
|
344 |
"This resource specification was automatically generated |
|
345 |
by the ImageEditor of ST/X." |
|
346 |
||
347 |
"Do not manually edit this!! If it is corrupted, |
|
348 |
the ImageEditor may not be able to read the specification." |
|
349 |
||
350 |
" |
|
351 |
self processLowerPrio22x22Icon inspect |
|
352 |
ImageEditor openOnClass:self andSelector:#processLowerPrio22x22Icon |
|
353 |
Icon flushCachedIcons |
|
354 |
" |
|
355 |
||
356 |
<resource: #image> |
|
357 |
||
358 |
^Icon |
|
359 |
constantNamed:#'ProcessMonitorV2 class processLowerPrio22x22Icon' |
|
6290 | 360 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
4468 | 361 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@EA0@@@@@@@@@@@@@@@@@@@@@@@@@@AP\@@@@@@@@@@@@@@@@@ |
362 |
@@@GAP@@APXFB@@@AP\@@@@@@@@@@@@@B@XEAPXFA XEAPXH@@@@@@@@@@@@@@@GA XFA XFA XH@@@@@@@@@@@@@@@@APXFA0 GA XFA0@@@@@@@@@@@@@@ |
|
6290 | 363 |
APXFA0 @@@TFA XG@@@@@@@@@@@EAPXFA @@@@@APXFA TG@@@@@@@@B@ FA XG@@@@@@TEAPTEAPTE@@@@@@@@A0\FA T@@@TFAP@@@@@@AP@@@@@@@@@G |
364 |
A XFAPTFA T@@@@@@@T@@@@@@@@@APXFA XFA XE@@@@@@@E@@@@@@@@APXHA0XFA XFAP@@@@@@AP@@@@@@@@\H@@@EA XEAPT@@@@@@@TEAP@@@@@@@@@@ |
|
365 |
@@THAP@@@@@@@@@@@@T@@@@@@@@@@@@EB@@E@@@@@@@@@@T@@@@@@@@@@@@@@@@@@@T@@@@@@@T@@@@@@@@@@@@@@@@@@@@@AP@@@@T@@@@@@@@@@@@@@@@@ |
|
366 |
@@@@@@@E@@T@@@@@@@@@@@@@@@@@@@@@@@@@@@T@@@@@@@@a') ; colorMapFromArray:#[0 0 0 128 128 128 160 160 160 195 195 195 220 220 220 255 255 255 194 194 194 161 161 165 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?<@C?<@O??@_9? _9?0O??0C??0C??0G??0G??<CO?<@O?8@F_0@@O @@G@@@B@') ; yourself); yourself] |
|
4468 | 367 |
! |
368 |
||
369 |
processRaisePrio22x22Icon |
|
370 |
"This resource specification was automatically generated |
|
371 |
by the ImageEditor of ST/X." |
|
372 |
||
373 |
"Do not manually edit this!! If it is corrupted, |
|
374 |
the ImageEditor may not be able to read the specification." |
|
375 |
||
376 |
" |
|
377 |
self processRaisePrio22x22Icon inspect |
|
378 |
ImageEditor openOnClass:self andSelector:#processRaisePrio22x22Icon |
|
379 |
Icon flushCachedIcons |
|
380 |
" |
|
381 |
||
382 |
<resource: #image> |
|
383 |
||
384 |
^Icon |
|
385 |
constantNamed:#'ProcessMonitorV2 class processRaisePrio22x22Icon' |
|
6290 | 386 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
4468 | 387 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@EA0@@@@@@@@@@@@@@@@@@@@@@@@@@AP\@@@@@@@@@@@@@@@@@ |
388 |
@@@GAP@@APXFB@@@AP\@@@@@@@@@@@@@B@XEAPXFA XEAPXH@@@@@@@@@@@@@@@GA XFA XFA XH@@@@@@@@@@@@@@@@APXFA0 GA XFA0@@@@@@@@@@@@@@ |
|
6290 | 389 |
APXFA0 @@@TFA XG@@@@@@@@@@@EAPXFA @@@@@APXFA TG@@@@@@@@B@ FA XG@@@@@@TFA XEB@@@@@@@@@@@A0\FA T@@@TFA XE@@T@@@@@@@@@@@@G |
390 |
A XFAPTFA XE@@@@AP@@@@@@@@@@APXFA XFA XE@@@@@@@E@@@@@@@@APXHA0XFA XE@@@@@@@@@@T@@@@@@@\H@@@EA XE@@@@@@@@@@@@AP@@@@@@@@@@ |
|
391 |
@@THAPTE@@@@@@@EAPT@@@@@@@@@@@@EB@@@AP@@@@@@AP@@@@@@@@@@@@@@@@@@@@T@@@@@@@T@@@@@@@@@@@@@@@@@@@@E@@@@@@@E@@@@@@@@@@@@@@@@ |
|
392 |
@@@@AP@@@@@@AP@@@@@@@@@@@@@@@@@@@@TEAPTEAPT@@@@a') ; colorMapFromArray:#[0 0 0 128 128 128 160 160 160 195 195 195 220 220 220 255 255 255 194 194 194 161 161 165 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?<@C?<@O??@_9? _9? O??@C?? C??0G??8G??<CO?<@O_0@F_0@@_0@@_0@@_0') ; yourself); yourself] |
|
4468 | 393 |
! |
394 |
||
395 |
processRestart22x22Icon |
|
396 |
"This resource specification was automatically generated |
|
397 |
by the ImageEditor of ST/X." |
|
398 |
||
399 |
"Do not manually edit this!! If it is corrupted, |
|
400 |
the ImageEditor may not be able to read the specification." |
|
401 |
||
402 |
" |
|
403 |
self processRestart22x22Icon inspect |
|
404 |
ImageEditor openOnClass:self andSelector:#processRestart22x22Icon |
|
405 |
Icon flushCachedIcons |
|
406 |
" |
|
407 |
||
408 |
<resource: #image> |
|
409 |
||
410 |
^Icon |
|
411 |
constantNamed:#'ProcessMonitorV2 class processRestart22x22Icon' |
|
412 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
413 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@GAP@@@@@@@@@@@@@@@@@@@@@@@@@@A0T@@@@@@@@@@@@@@@@@ |
|
414 |
@@@EA0@@A0XFA@@@A0T@@@@@@@@@@@@@A@XGA0XFA XGA0XD@@@@@@@@@@@@@@@EA XFA XF@@@@@@@@@@@@@@@@@@@@A0XFAPP@@@LC@0@@@P@@@@@@@@@@ |
|
415 |
A0XFAPP@@0LC@0@E@@@@@@@@@@@GA0XFA P@@@LC@0@FA \@@@@@@@@@A@PFA XE@@LC@0@FA XD@@@@@@@@@@@@APTFA @C@0L@A XD@@@@@@@@@@@@@@@E |
|
416 |
@@LC@0LC@0L@@@@@@@@@@@@@@@@@A0X@@0LC@0L@@@@@@@@@@@@@@@@@A0XDAP@C@0L@@@@@@@@@@@@@@@@@@@TD@@@@@@L@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
417 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
418 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 0 64 0 0 128 0 0 192 0 127 127 127 161 161 165 194 194 194 255 255 255]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?>@C?? O??0_?>P_?>HO?<@C?= C?30G?''8G7/<CCO0@PC0@HG @L_ @G?@@A<@') ; yourself); yourself] |
|
419 |
! |
|
420 |
||
421 |
processResume22x22Icon |
|
422 |
"This resource specification was automatically generated |
|
423 |
by the ImageEditor of ST/X." |
|
424 |
||
425 |
"Do not manually edit this!! If it is corrupted, |
|
426 |
the ImageEditor may not be able to read the specification." |
|
427 |
||
428 |
" |
|
429 |
self processResume22x22Icon inspect |
|
430 |
ImageEditor openOnClass:self andSelector:#processResume22x22Icon |
|
431 |
Icon flushCachedIcons |
|
432 |
" |
|
433 |
||
434 |
<resource: #image> |
|
435 |
||
436 |
^Icon |
|
437 |
constantNamed:#'ProcessMonitorV2 class processResume22x22Icon' |
|
6290 | 438 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
4468 | 439 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@EA0@@@@@@@@@@@@@@@@@@@@@@@@@@AP\@@@@@@@@@@@@@@@@@ |
440 |
@@@GAP@@APXFB@@@AP\@@@@@@@@@@@@@B@XEAPXFA XEAPXH@@@@@@@@@@@@@@@GA XFA XFA XH@@@@@@@@@@@@@@@@APXFA0 GA XFA0@@@@@@@@@@@@@@ |
|
6290 | 441 |
APXFA0 @@@TFA XG@@@@@@@@@@@EAPXFA @@@@@APXFA TG@@@@@@@@B@ FA XG@@@@@@TE@@THB@@@@@@@@@@@A0\FA T@@@TFAP@@AP@@@@@@@@@@@@@G |
442 |
A XFAPTFA T@@@@E@@@@@@@@@@@@APXFA XFA XE@@@@@@T@@@@@@@@@APXHA0XFA XFAP@@@@@@AP@@@@@@@@\H@@@EA XG@@T@@@@@@@@E@@@@@@@@@@@@ |
|
443 |
@@TH@@@E@@@@@@@@AP@@@@@@@@@@@@@EB@@@AP@@@@@@AP@@@@@@@@@@@@@@@@@@@@T@@@@@AP@@@@@@@@@@@@@@@@@@@@@E@@@@AP@@@@@@@@@@@@@@@@@@ |
|
444 |
@@@@AP@@AP@@@@@@@@@@@@@@@@@@@@@@@@T@AP@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 128 128 128 160 160 160 195 195 195 220 220 220 255 255 255 194 194 194 161 161 165 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?<@C?<@O??@_9? _9? O??@C??@C?? G??0G??8CO_8@O_0@F_ @@_@@@^@@@\@') ; yourself); yourself] |
|
4468 | 445 |
! |
446 |
||
447 |
processStop22x22Icon |
|
448 |
"This resource specification was automatically generated |
|
449 |
by the ImageEditor of ST/X." |
|
450 |
||
451 |
"Do not manually edit this!! If it is corrupted, |
|
452 |
the ImageEditor may not be able to read the specification." |
|
453 |
||
454 |
" |
|
455 |
self processStop22x22Icon inspect |
|
456 |
ImageEditor openOnClass:self andSelector:#processStop22x22Icon |
|
457 |
Icon flushCachedIcons |
|
458 |
" |
|
459 |
||
460 |
<resource: #image> |
|
461 |
||
462 |
^Icon |
|
463 |
constantNamed:#'ProcessMonitorV2 class processStop22x22Icon' |
|
6290 | 464 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
4468 | 465 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@EA0@@@@@@@@@@@@@@@@@@@@@@@@@@AP\@@@@@@@@@@@@@@@@@ |
466 |
@@@GAP@@APXFB@@@AP\@@@@@@@@@@@@@B@XEAPXFA XEAPXH@@@@@@@@@@@@@@@GA XFA XFA XH@@@@@@@@@@@@@@@@APXFA0 GA XFA0@@@@@@@@@@@@@@ |
|
6290 | 467 |
APXFA0 @@@TFA XG@@@@@@@@@@@EAPXFA @@@@@APXFA TG@@@@@@@@B@ FA XG@@@@@@TFA XHB@@@@@@@@@@@A0\FA T@@@TFA XH@@@@@@@@@@@@@@@G |
468 |
A XFAPTFAPTEAPTEAPTEAP@@@@@@APXFA XFA T@@@@EAP@@@@T@@@@@APXHA0XFA XE@@@@APT@@@@E@@@@@@\H@@@EA XGAP@@@@TE@@@@AP@@@@@@@@@@ |
|
469 |
@@TH@@T@@@@EAP@@@@T@@@@@@@@@@@@EB@@E@@@@APT@@@@E@@@@@@@@@@@@@@@@AP@@@@TE@@@@AP@@@@@@@@@@@@@@@@T@@@@EAP@@@@T@@@@@@@@@@@@@ |
|
470 |
@@@E@@@@APT@@@@E@@@@@@@@@@@@@@@@APTEAPTEAPTEAP@a') ; colorMapFromArray:#[0 0 0 128 128 128 160 160 160 195 195 195 220 220 220 255 255 255 194 194 194 161 161 165 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1)); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?<@C?<@O??@_9? _9? O??@C??<C??<G??<G??<CO?<@O?<@F?<@@?<@@?<@@?<') ; yourself); yourself] |
|
4468 | 471 |
! |
472 |
||
473 |
processSuspend22x22Icon |
|
474 |
"This resource specification was automatically generated |
|
475 |
by the ImageEditor of ST/X." |
|
476 |
||
477 |
"Do not manually edit this!! If it is corrupted, |
|
478 |
the ImageEditor may not be able to read the specification." |
|
479 |
||
480 |
" |
|
481 |
self processSuspend22x22Icon inspect |
|
482 |
ImageEditor openOnClass:self andSelector:#processSuspend22x22Icon |
|
483 |
Icon flushCachedIcons |
|
484 |
" |
|
485 |
||
486 |
<resource: #image> |
|
487 |
||
488 |
^Icon |
|
489 |
constantNamed:#'ProcessMonitorV2 class processSuspend22x22Icon' |
|
490 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
4498 | 491 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@EA0@@@@@@@@@@@@@@@@@@@@@@@@@@AP\@@@@@@@@@@@@@@@@@ |
492 |
@@@GAP@@APXFB@@@AP\@@@@@@@@@@@@@B@XEAPXFA XEAPXH@@@@@@@@@@@@@@@GA XFA XFA XH@@@@@@@@@@@@@@@@APXFA0 GA XFA0@@@@@@@@@@@@@@ |
|
493 |
APXFA0 @@@TFA XG@@@@@@@@@@@EAPXFA @@@@@APXFA TG@@@@@@@@B@ FA XG@@TEAPTEAPTEAPTEAPT@@@@@A0\FA TEAPTEAPTEAPTEAPTE@@@@@@@G |
|
494 |
A XFAPTE@@@@@@@@@@@EAP@@@@@@APXFA TEAP@@@@@@@@@@APT@@@@@APXHA0XEAPT@@@@@@@@@@@TE@@@@@@\H@@@EAPTE@@@@@@@@@@@EAP@@@@@@@@@@ |
|
495 |
@@TEAP@@@@@@@@@@APT@@@@@@@@@@@@EAPT@@@@@@@@@@@TE@@@@@@@@@@@@APTE@@@@@@@@@@@EAP@@@@@@@@@@@@TEAP@@@@@@@@@@APT@@@@@@@@@@@@E |
|
496 |
APTEAPTEAPTEAPTE@@@@@@@@@@@@APTEAPTEAPTEAPTEAP@a') ; colorMapFromArray:#[0 0 0 128 128 128 160 160 160 195 195 195 220 220 220 255 255 255 194 194 194 161 161 165 127 127 127]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?<@C?<@O??@_9? _??<O??<C??<C??<G??<G??<CO?<@O?<@G?<@G?<@G?<@G?<') ; yourself); yourself] |
|
4468 | 497 |
! |
498 |
||
499 |
processTerminate22x22Icon |
|
500 |
"This resource specification was automatically generated |
|
501 |
by the ImageEditor of ST/X." |
|
502 |
||
503 |
"Do not manually edit this!! If it is corrupted, |
|
504 |
the ImageEditor may not be able to read the specification." |
|
505 |
||
506 |
" |
|
507 |
self processTerminate22x22Icon inspect |
|
508 |
ImageEditor openOnClass:self andSelector:#processTerminate22x22Icon |
|
509 |
Icon flushCachedIcons |
|
510 |
" |
|
511 |
||
512 |
<resource: #image> |
|
513 |
||
514 |
^Icon |
|
515 |
constantNamed:#'ProcessMonitorV2 class processTerminate22x22Icon' |
|
516 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
517 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@EA0@@@@@@@@@@@@@@@@@@@@@@@@@@AP\@@@@@@@@@@@@@@@@@ |
|
518 |
@@@GAP@@APXFB@@@AP\@@@@@@@@@@@@@B@XEAPXFA XEAPXH@@@@@@@@@@@@@@@GA XFA XFA XH@@@@@@@@@@@@@@@@APXFA0 GA XFA0@@@@@@@@@@@@@@ |
|
519 |
APXFA0 @@@TFA XG@@@@@@@@@@@EAPXFA @@@@@APXFA TGC@@@@@@@B@ FA XG@@@LC@TFA XHC@,K@@@@@@@@A0\FA TLB0,LC@XHC@,KBP@@@@@@@@@G |
|
520 |
A XFAPTJB0,LB0,KBP@@@@@@@@@@APXFA XFA (KB0,KBP@@@@@@@@@@APXHA0XFA XFC@,KC@@@@@@@@@@@@@\H@@@EA XGC@,KB00@@@@@@@@@@@@@@@@@ |
|
521 |
@@THC@,I@@(KC@@@@@@@@@@@@@@@@@@EB@0I@@@@B ,@@@@@@@@@@@@@@@@@@@0K@@@@@@@JB0@@@@@@@@@@@@@@@@@LBP@@@@@@@@,@@@@@@@@@@@@@@@@@ |
|
522 |
C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 128 128 128 160 160 160 195 195 195 220 220 220 255 255 255 194 194 194 161 161 165 127 127 127 64 0 0 128 0 0 192 0 0 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@F@@@O@@COL@G?>@G?>@C?<@C?<@O??@_9? _;?0O??0C?? C??@G?>@G?>@CO?@@O#@@GA @C@ @B@@@@@@') ; yourself); yourself] |
|
523 |
! |
|
524 |
||
525 |
processTerminateGroup22x22Icon |
|
526 |
"This resource specification was automatically generated |
|
527 |
by the ImageEditor of ST/X." |
|
528 |
||
529 |
"Do not manually edit this!! If it is corrupted, |
|
530 |
the ImageEditor may not be able to read the specification." |
|
531 |
||
532 |
" |
|
533 |
self processTerminateGroup22x22Icon inspect |
|
534 |
ImageEditor openOnClass:self andSelector:#processTerminateGroup22x22Icon |
|
535 |
Icon flushCachedIcons |
|
536 |
" |
|
537 |
||
538 |
<resource: #image> |
|
539 |
||
540 |
^Icon |
|
541 |
constantNamed:#'ProcessMonitorV2 class processTerminateGroup22x22Icon' |
|
542 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 22; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
543 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@AP\@@@@@@@@@@@@@@@@@@@@@@@@@@@TG@@@@@@@@@@@@@@@@@@@@A0T@@@TFA @@@TG@@@@@@@@@@@@ |
|
544 |
@@ FAPTF@@@FAPTFB@@@@@@@@@@@@@@@A0XF@@TG@@XFB@@@@@@@@@@@@@@@@@@FA @EA0@FA @@@@@@@@@@@@@@@@\E@@@EA XH@@@EA0@@@@@@@@@@AP@H |
|
545 |
A TEA XFA TEA @A0@@@@@@@@ H@@\FA XFA XFA @B@ @@@@@@@@@@@@EA XGB@\FA XG@@@@@@@L@@@@@@@EA XGB@@@AP0LA \@@@@LB0,@@@TEA XF |
|
546 |
B@@FA 0KB00LAP\LB0,I@@@HB@XFA \@A X@AP(KB00KB0,I@@@@@@@GA0XFAP@@APXFB ,KB0,I@@@@@@@@@@\FA XEAPXFA LB0,L@@@@@@@@@@@EA XF |
|
547 |
A XFA XLB0,KC@@@@@@@@@@EA GA XFA XLB0$@B ,L@@@@@@@@A0 @@@TFA \@C@$H@@@JB0@@@@@@@@@@@@@@AP @C@,@@@@@@@(K@@@@@@@@@@@@@@TH |
|
548 |
@@0I@@@@@@@@B0@@@@@@@@@@@@@@@@@L@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 128 128 128 160 160 160 195 195 195 220 220 220 255 255 255 194 194 194 161 161 165 127 127 127 64 0 0 128 0 0 192 0 0 255 0 0]; mask:((Depth1Image new) width: 22; height: 22; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@L@@@^@@F^X@O?<@O?<@G?8@G?8@_?>@???@???@_?>P_?>8???8???0_?? G??@G??@O?? O?= F_80@_ P@M@@') ; yourself); yourself] |
|
549 |
! |
|
550 |
||
551 |
terminateGroupIcon |
|
552 |
"This resource specification was automatically generated |
|
553 |
by the ImageEditor of ST/X." |
|
554 |
||
555 |
"Do not manually edit this!! If it is corrupted, |
|
556 |
the ImageEditor may not be able to read the specification." |
|
557 |
||
558 |
" |
|
559 |
self terminateGroupIcon inspect |
|
560 |
ImageEditor openOnClass:self andSelector:#terminateGroupIcon |
|
561 |
Icon flushCachedIcons |
|
562 |
" |
|
563 |
||
564 |
<resource: #image> |
|
565 |
||
566 |
^Icon |
|
567 |
constantNamed:#'ProcessMonitorV2 class terminateGroupIcon' |
|
568 |
ifAbsentPut:[(Depth8Image new) width: 22; height: 20; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
569 |
@PDA@PXJB (JB (JB (JB TE@PDA@PDA@PXJB (JB (JB (JB (JA0TA@PD@@PXJB (JB (JB (JB (JB (JA D@@@HDB (J@ HJB (JB PDA@(JB X@@@@@ |
|
570 |
@P\G@PDAA (JB XA@PDFA XA@@@@A DA@PDA@PXJB (F@PDA@PDA@PX@A \A@PD@@@@@@@@@A DJ@@@@@@@@@@XJB DA@@,KB0,K@@@A@@,KB0,KB0@AA XF |
|
571 |
B (@B0,KB0,@@@,KB0,KB0@A@PDA@PXJB @KB0,KB0,KB0,KB0@A@PDA@PXJB (J@@,KB0,KB0,KB0@A@PD@@PXJB (JB (@B0,KB0,KB0@JA D@@@HDB (J |
|
572 |
@ HJB @KB0,KB0@JB X@@@@@@P\G@PDAA @KB0,KB0,K@@XA@@@@@@DA@PDA@P@KB0,KB0,KB0,@@P@@@@@A@PDA@P@KB0,KB0@KB0,KB0@@@@@@@@DA@P@K |
|
573 |
B0,KB0@@@@,KB0,K@@@@@@@@@@@KB0,KB0@A@@@@B0,KB0,@@@@@@@@@@@@@@@@A@P@@@@@@@@@@@@@@@@@@@@@@@@DA@P@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 48 48 48 56 59 56 64 68 64 88 92 88 128 128 128 160 160 160 192 192 192 216 219 216 239 244 239 248 252 248 160 0 0]; mask:((Depth1Image new) width: 22; height: 20; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'???<???<_??8_??0O??0_??8???<???<???<???<???<_??8_??0O??0O??0O??0G?/8A?''<A?#<@G@@') ; yourself); yourself] |
|
574 |
! |
|
575 |
||
576 |
terminateIcon |
|
577 |
"This resource specification was automatically generated |
|
578 |
by the ImageEditor of ST/X." |
|
579 |
||
580 |
"Do not manually edit this!! If it is corrupted, |
|
581 |
the ImageEditor may not be able to read the specification." |
|
582 |
||
583 |
" |
|
584 |
self terminateIcon inspect |
|
585 |
ImageEditor openOnClass:self andSelector:#terminateIcon |
|
586 |
Icon flushCachedIcons |
|
587 |
" |
|
588 |
||
589 |
<resource: #image> |
|
590 |
||
591 |
^Icon |
|
592 |
constantNamed:#'ProcessMonitorV2 class terminateIcon' |
|
593 |
ifAbsentPut:[(Depth8Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(8 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
594 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C@@@@@@@@@@LC@@@@@@@C@ H@@@@@@@LB@ LC@@@C@ H@@@@@@@@@@@DB@ LB |
|
595 |
@ H@@@@@@@@@@@@@@PHB@ H@@@@@@@@@@@@@@@@C@ HC@@@@@@@@@@@@@@@C@ HB@0@@@@@@@@@@@@@C@ @@@PHC@@@@@@@@@@@@@0@@@@@A@ @@@@@@@@@@ |
|
596 |
@0H@@@@@@@DB@@@@@@@@@@L@@@@@@@@@@ @@@@@@@@@C@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[64 0 0 128 0 0 192 0 0 255 0 0]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@HCA0_O@_8@?@A8@O A7@FL@0XC@ H@@@@@@@b') ; yourself); yourself] |
|
597 |
! |
|
598 |
||
4463 | 599 |
viewDetailsIcon |
600 |
"This resource specification was automatically generated |
|
601 |
by the ImageEditor of ST/X." |
|
602 |
||
603 |
"Do not manually edit this!! If it is corrupted, |
|
604 |
the ImageEditor may not be able to read the specification." |
|
605 |
||
606 |
" |
|
607 |
self viewDetailsIcon inspect |
|
608 |
ImageEditor openOnClass:self andSelector:#viewDetailsIcon |
|
609 |
Icon flushCachedIcons |
|
610 |
" |
|
611 |
||
612 |
<resource: #image> |
|
613 |
||
614 |
^Icon |
|
615 |
constantNamed:#'ProcessMonitorV2 class viewDetailsIcon' |
|
616 |
ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@]+X@@@@@]+X@@@@@]+X@@@@@]+X@@@@@@@@b') ; yourself); yourself] |
|
617 |
! ! |
|
618 |
||
619 |
!ProcessMonitorV2 class methodsFor:'interface specs'! |
|
620 |
||
621 |
windowSpec |
|
622 |
"This resource specification was automatically generated |
|
623 |
by the UIPainter of ST/X." |
|
624 |
||
625 |
"Do not manually edit this!! If it is corrupted, |
|
626 |
the UIPainter may not be able to read the specification." |
|
627 |
||
628 |
" |
|
629 |
UIPainter new openOnClass:ProcessMonitorV2 andSelector:#windowSpec |
|
630 |
ProcessMonitorV2 new openInterface:#windowSpec |
|
631 |
ProcessMonitorV2 open |
|
632 |
" |
|
633 |
||
634 |
<resource: #canvas> |
|
635 |
||
636 |
^ |
|
5938
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
637 |
#(FullSpec |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
638 |
name: windowSpec |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
639 |
window: |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
640 |
(WindowSpec |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
641 |
label: 'ProcessMonitorV2' |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
642 |
name: 'ProcessMonitorV2' |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
643 |
min: (Point 10 10) |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
644 |
bounds: (Rectangle 0 0 791 358) |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
645 |
menu: mainMenu |
4463 | 646 |
) |
5938
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
647 |
component: |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
648 |
(SpecCollection |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
649 |
collection: ( |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
650 |
(MenuPanelSpec |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
651 |
name: 'ToolBar1' |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
652 |
layout: (LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
653 |
menu: toolBarMainMenu |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
654 |
textDefault: true |
4463 | 655 |
) |
5938
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
656 |
(DataSetSpec |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
657 |
name: 'ProcessTable' |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
658 |
layout: (LayoutFrame 0 0.0 32 0.0 0 1.0 -23 1) |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
659 |
model: selectedProcesses |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
660 |
menu: tableMenu |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
661 |
hasHorizontalScrollBar: true |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
662 |
hasVerticalScrollBar: true |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
663 |
dataList: processList |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
664 |
useIndex: false |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
665 |
doubleClickSelector: doubleClickedAt: |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
666 |
columnHolder: tableColumns |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
667 |
multipleSelectOk: true |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
668 |
verticalSpacing: 0 |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
669 |
postBuildCallback: postBuildProcessTable: |
4463 | 670 |
) |
5938
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
671 |
(LabelSpec |
6239 | 672 |
label: 'Update Contents Delay (s):' |
6240 | 673 |
name: 'ContentsUpdateLabel' |
6239 | 674 |
layout: (LayoutFrame -593 1 -20 1 -402 1 0 1) |
5938
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
675 |
translateLabel: true |
482ef199ebdb
Do not set maxExtent (to 1024x768).
Stefan Vogel <sv@exept.de>
parents:
5783
diff
changeset
|
676 |
adjust: right |
4498 | 677 |
) |
6010 | 678 |
(ViewSpec |
679 |
name: 'Box1' |
|
6239 | 680 |
layout: (LayoutFrame -396 1 -22 1 -306 1 0 1) |
6427 | 681 |
level: 0 |
6010 | 682 |
component: |
683 |
(SpecCollection |
|
684 |
collection: ( |
|
685 |
(ArrowButtonSpec |
|
686 |
name: 'ArrowButton3' |
|
6240 | 687 |
layout: (LayoutFrame 68 0 0 0 89 0 20 0) |
6010 | 688 |
model: increaseupdateContentsDelayTime |
689 |
enableChannel: enableIncreaseContentsDelayTime |
|
690 |
isTriggerOnDown: true |
|
691 |
autoRepeat: true |
|
692 |
actionValue: '' |
|
6240 | 693 |
direction: up |
6010 | 694 |
) |
695 |
(InputFieldSpec |
|
696 |
name: 'EntryField2' |
|
697 |
layout: (LayoutFrame 22 0 0 0 66 0 20 0) |
|
698 |
model: updateContentsDelayTime |
|
699 |
acceptOnReturn: true |
|
700 |
acceptOnTab: true |
|
701 |
acceptOnLostFocus: true |
|
702 |
acceptOnPointerLeave: false |
|
703 |
) |
|
704 |
(ArrowButtonSpec |
|
705 |
name: 'ArrowButton4' |
|
6240 | 706 |
layout: (LayoutFrame 0 0 0 0 20 0 20 0) |
6010 | 707 |
model: decreaseupdateContentsDelayTime |
708 |
enableChannel: enableDecreaseContentsDelayTime |
|
709 |
isTriggerOnDown: true |
|
710 |
autoRepeat: true |
|
711 |
actionValue: '' |
|
6240 | 712 |
direction: down |
6010 | 713 |
) |
714 |
) |
|
715 |
||
716 |
) |
|
4498 | 717 |
) |
6239 | 718 |
(LabelSpec |
719 |
label: 'Update List Delay (s):' |
|
6240 | 720 |
name: 'ListUpdateLabel' |
6239 | 721 |
layout: (LayoutFrame -301 1 -20 1 -93 1 0 1) |
722 |
translateLabel: true |
|
723 |
adjust: right |
|
724 |
) |
|
6010 | 725 |
(ViewSpec |
726 |
name: 'Box2' |
|
727 |
layout: (LayoutFrame -89 1 -21 1 1 1 1 1) |
|
6427 | 728 |
level: 0 |
6010 | 729 |
component: |
730 |
(SpecCollection |
|
731 |
collection: ( |
|
732 |
(ArrowButtonSpec |
|
733 |
name: 'ArrowButton5' |
|
6240 | 734 |
layout: (LayoutFrame 68 0 0 0 89 0 20 0) |
6010 | 735 |
model: increaseupdateListDelayTime |
736 |
enableChannel: enableIncreaseListDelayTime |
|
737 |
isTriggerOnDown: true |
|
738 |
autoRepeat: true |
|
739 |
actionValue: '' |
|
6240 | 740 |
direction: up |
6010 | 741 |
) |
742 |
(InputFieldSpec |
|
743 |
name: 'EntryField3' |
|
744 |
layout: (LayoutFrame 22 0 0 0 66 0 20 0) |
|
745 |
model: updateListDelayTime |
|
746 |
acceptOnReturn: true |
|
747 |
acceptOnTab: true |
|
748 |
acceptOnLostFocus: true |
|
749 |
acceptOnPointerLeave: false |
|
750 |
) |
|
751 |
(ArrowButtonSpec |
|
752 |
name: 'ArrowButton6' |
|
6240 | 753 |
layout: (LayoutFrame 0 0 0 0 20 0 20 0) |
6010 | 754 |
model: decreaseupdateListDelayTime |
755 |
enableChannel: enableDecreaseListDelayTime |
|
756 |
isTriggerOnDown: true |
|
757 |
autoRepeat: true |
|
758 |
actionValue: '' |
|
6240 | 759 |
direction: down |
6010 | 760 |
) |
761 |
) |
|
762 |
||
763 |
) |
|
4498 | 764 |
) |
4463 | 765 |
) |
766 |
||
767 |
) |
|
768 |
) |
|
769 |
! ! |
|
770 |
||
771 |
!ProcessMonitorV2 class methodsFor:'menu specs'! |
|
772 |
||
773 |
mainMenu |
|
774 |
"This resource specification was automatically generated |
|
775 |
by the MenuEditor of ST/X." |
|
776 |
||
777 |
"Do not manually edit this!! If it is corrupted, |
|
778 |
the MenuEditor may not be able to read the specification." |
|
779 |
||
780 |
" |
|
781 |
MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#mainMenu |
|
782 |
(Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 mainMenu)) startUp |
|
783 |
" |
|
784 |
||
785 |
<resource: #menu> |
|
786 |
||
787 |
^ |
|
7416 | 788 |
#(Menu |
789 |
( |
|
790 |
(MenuItem |
|
791 |
label: 'File' |
|
792 |
translateLabel: true |
|
793 |
submenu: |
|
794 |
(Menu |
|
795 |
( |
|
796 |
(MenuItem |
|
797 |
label: 'Exit' |
|
798 |
itemValue: closeRequest |
|
799 |
translateLabel: true |
|
4502 | 800 |
) |
801 |
) |
|
802 |
nil |
|
803 |
nil |
|
804 |
) |
|
805 |
) |
|
7416 | 806 |
(MenuItem |
807 |
label: 'Process' |
|
808 |
translateLabel: true |
|
809 |
isVisible: allowModifications |
|
810 |
submenuChannel: tableMenu |
|
4502 | 811 |
) |
7416 | 812 |
(MenuItem |
813 |
label: 'View' |
|
814 |
translateLabel: true |
|
815 |
submenuChannel: viewDetailsMenuSpec |
|
4463 | 816 |
) |
7416 | 817 |
(MenuItem |
818 |
label: 'Help' |
|
819 |
translateLabel: true |
|
820 |
startGroup: conditionalRight |
|
821 |
submenu: |
|
822 |
(Menu |
|
823 |
( |
|
824 |
(MenuItem |
|
825 |
label: 'Documentation' |
|
826 |
itemValue: openDocumentation |
|
827 |
translateLabel: true |
|
4463 | 828 |
) |
7416 | 829 |
(MenuItem |
830 |
label: '-' |
|
4463 | 831 |
) |
7416 | 832 |
(MenuItem |
833 |
label: 'About this Application...' |
|
834 |
itemValue: openAboutThisApplication |
|
835 |
translateLabel: true |
|
4463 | 836 |
) |
837 |
) |
|
838 |
nil |
|
839 |
nil |
|
840 |
) |
|
841 |
) |
|
842 |
) |
|
843 |
nil |
|
844 |
nil |
|
845 |
) |
|
846 |
! |
|
847 |
||
848 |
tableMenu |
|
849 |
"This resource specification was automatically generated |
|
850 |
by the MenuEditor of ST/X." |
|
851 |
||
852 |
"Do not manually edit this!! If it is corrupted, |
|
853 |
the MenuEditor may not be able to read the specification." |
|
854 |
||
855 |
" |
|
856 |
MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#tableMenu |
|
857 |
(Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 tableMenu)) startUp |
|
858 |
" |
|
859 |
||
860 |
<resource: #menu> |
|
861 |
||
862 |
^ |
|
863 |
#(#Menu |
|
864 |
#( |
|
865 |
#(#MenuItem |
|
866 |
#enabled: #hasSelection |
|
867 |
#label: 'Inspect' |
|
868 |
#itemValue: #inspectSelection |
|
869 |
#translateLabel: true |
|
870 |
) |
|
871 |
#(#MenuItem |
|
6609 | 872 |
#enabled: #hasSelectionAndProcessIsApplicationProcess |
873 |
#label: 'Inspect Application or TopView' |
|
874 |
#itemValue: #inspectApplication |
|
875 |
#translateLabel: true |
|
876 |
) |
|
877 |
#(#MenuItem |
|
4463 | 878 |
#enabled: #hasSelection |
879 |
#label: 'Debug' |
|
880 |
#itemValue: #debugProcess |
|
881 |
#translateLabel: true |
|
882 |
) |
|
883 |
#(#MenuItem |
|
884 |
#label: '-' |
|
885 |
) |
|
886 |
#(#MenuItem |
|
887 |
#enabled: #hasSelection |
|
888 |
#label: 'Resume' |
|
889 |
#itemValue: #resumeProcess |
|
890 |
#translateLabel: true |
|
891 |
) |
|
892 |
#(#MenuItem |
|
893 |
#enabled: #hasSelection |
|
894 |
#label: 'Suspend' |
|
895 |
#itemValue: #suspendProcess |
|
896 |
#translateLabel: true |
|
897 |
) |
|
898 |
#(#MenuItem |
|
899 |
#enabled: #hasSelection |
|
900 |
#label: 'Stop' |
|
901 |
#itemValue: #stopProcess |
|
902 |
#translateLabel: true |
|
903 |
) |
|
904 |
#(#MenuItem |
|
905 |
#label: '-' |
|
906 |
) |
|
907 |
#(#MenuItem |
|
908 |
#enabled: #hasSelection |
|
909 |
#label: 'Abort' |
|
910 |
#itemValue: #abortProcess |
|
911 |
#translateLabel: true |
|
912 |
) |
|
913 |
#(#MenuItem |
|
914 |
#enabled: #hasSelection |
|
915 |
#label: 'Terminate' |
|
916 |
#itemValue: #terminateProcess |
|
917 |
#translateLabel: true |
|
918 |
) |
|
919 |
#(#MenuItem |
|
920 |
#enabled: #hasSelection |
|
921 |
#label: 'Hard Terminate' |
|
922 |
#itemValue: #hardTerminateProcess |
|
923 |
#translateLabel: true |
|
924 |
) |
|
925 |
#(#MenuItem |
|
926 |
#enabled: #hasSelection |
|
927 |
#label: 'Terminate Group' |
|
928 |
#itemValue: #terminateProcessGroup |
|
929 |
#translateLabel: true |
|
930 |
) |
|
931 |
#(#MenuItem |
|
932 |
#enabled: #selectionRestartable |
|
933 |
#label: 'Restart' |
|
934 |
#itemValue: #restartProcess |
|
935 |
#translateLabel: true |
|
936 |
) |
|
937 |
#(#MenuItem |
|
938 |
#label: '-' |
|
939 |
) |
|
940 |
#(#MenuItem |
|
941 |
#enabled: #hasSelection |
|
942 |
#label: 'Raise Prio' |
|
943 |
#itemValue: #raisePrio |
|
944 |
#translateLabel: true |
|
945 |
) |
|
946 |
#(#MenuItem |
|
947 |
#enabled: #hasSelection |
|
948 |
#label: 'Lower Prio' |
|
949 |
#itemValue: #lowerPrio |
|
950 |
#translateLabel: true |
|
951 |
) |
|
952 |
) |
|
953 |
nil |
|
954 |
nil |
|
955 |
) |
|
956 |
! |
|
957 |
||
958 |
toolBarMainMenu |
|
959 |
"This resource specification was automatically generated |
|
960 |
by the MenuEditor of ST/X." |
|
961 |
||
962 |
"Do not manually edit this!! If it is corrupted, |
|
963 |
the MenuEditor may not be able to read the specification." |
|
964 |
||
965 |
" |
|
966 |
MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#toolBarMainMenu |
|
967 |
(Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 toolBarMainMenu)) startUp |
|
968 |
" |
|
969 |
||
970 |
<resource: #menu> |
|
971 |
||
972 |
^ |
|
6290 | 973 |
#(Menu |
974 |
( |
|
975 |
(MenuItem |
|
976 |
activeHelpKey: Inspect |
|
977 |
enabled: hasSelection |
|
978 |
label: 'Inspect' |
|
979 |
itemValue: inspectSelection |
|
980 |
translateLabel: true |
|
981 |
isButton: true |
|
982 |
isVisible: allowModifications |
|
983 |
labelImage: (ResourceRetriever ProcessMonitorV2 processInspect22x22Icon) |
|
4468 | 984 |
) |
6290 | 985 |
(MenuItem |
986 |
activeHelpKey: Debug |
|
987 |
enabled: hasSelection |
|
988 |
label: 'Debug' |
|
989 |
itemValue: debugProcess |
|
990 |
translateLabel: true |
|
991 |
isButton: true |
|
992 |
isVisible: allowModifications |
|
993 |
labelImage: (ResourceRetriever ProcessMonitorV2 processDebug22x22Icon) |
|
4468 | 994 |
) |
6290 | 995 |
(MenuItem |
996 |
label: '-' |
|
997 |
isVisible: allowModifications |
|
4468 | 998 |
) |
6290 | 999 |
(MenuItem |
1000 |
activeHelpKey: Resume |
|
1001 |
enabled: hasSelection |
|
1002 |
label: 'Resume' |
|
1003 |
itemValue: resumeProcess |
|
1004 |
translateLabel: true |
|
1005 |
isButton: true |
|
1006 |
isVisible: allowModifications |
|
1007 |
labelImage: (ResourceRetriever ProcessMonitorV2 processResume22x22Icon) |
|
4468 | 1008 |
) |
6290 | 1009 |
(MenuItem |
1010 |
activeHelpKey: Stop |
|
1011 |
enabled: hasSelection |
|
1012 |
label: 'Stop' |
|
1013 |
itemValue: stopProcess |
|
1014 |
translateLabel: true |
|
1015 |
isButton: true |
|
1016 |
isVisible: allowModifications |
|
1017 |
labelImage: (ResourceRetriever ProcessMonitorV2 processStop22x22Icon) |
|
4468 | 1018 |
) |
6290 | 1019 |
(MenuItem |
1020 |
activeHelpKey: Abort |
|
1021 |
enabled: hasSelection |
|
1022 |
label: 'Abort' |
|
1023 |
itemValue: abortProcess |
|
1024 |
translateLabel: true |
|
1025 |
isButton: true |
|
1026 |
isVisible: allowModifications |
|
1027 |
labelImage: (ResourceRetriever ProcessMonitorV2 processAbort22x22Icon) |
|
4468 | 1028 |
) |
6290 | 1029 |
(MenuItem |
1030 |
label: '-' |
|
1031 |
isVisible: allowModifications |
|
4463 | 1032 |
) |
6290 | 1033 |
(MenuItem |
1034 |
activeHelpKey: Terminate |
|
1035 |
enabled: hasSelection |
|
1036 |
label: 'Terminate' |
|
1037 |
itemValue: terminateProcess |
|
1038 |
translateLabel: true |
|
1039 |
isButton: true |
|
1040 |
isVisible: allowModifications |
|
1041 |
labelImage: (ResourceRetriever ProcessMonitorV2 processTerminate22x22Icon) |
|
4468 | 1042 |
) |
6290 | 1043 |
(MenuItem |
1044 |
activeHelpKey: #'Terminate Group' |
|
1045 |
enabled: hasSelection |
|
1046 |
label: 'Terminate Group' |
|
1047 |
itemValue: terminateProcessGroup |
|
1048 |
translateLabel: true |
|
1049 |
isButton: true |
|
1050 |
isVisible: allowModifications |
|
1051 |
labelImage: (ResourceRetriever ProcessMonitorV2 processTerminateGroup22x22Icon) |
|
4468 | 1052 |
) |
6290 | 1053 |
(MenuItem |
1054 |
activeHelpKey: Restart |
|
1055 |
enabled: selectionRestartable |
|
1056 |
label: 'Restart' |
|
1057 |
itemValue: restartProcess |
|
1058 |
translateLabel: true |
|
1059 |
isButton: true |
|
1060 |
isVisible: allowModifications |
|
1061 |
labelImage: (ResourceRetriever ProcessMonitorV2 processRestart22x22Icon) |
|
4468 | 1062 |
) |
6290 | 1063 |
(MenuItem |
1064 |
label: '-' |
|
1065 |
isVisible: allowModifications |
|
4468 | 1066 |
) |
6290 | 1067 |
(MenuItem |
1068 |
activeHelpKey: #'Raise Prio' |
|
1069 |
enabled: hasSelection |
|
1070 |
label: 'Raise Prio' |
|
1071 |
itemValue: raisePrio |
|
1072 |
translateLabel: true |
|
1073 |
isButton: true |
|
1074 |
isVisible: allowModifications |
|
1075 |
labelImage: (ResourceRetriever ProcessMonitorV2 processRaisePrio22x22Icon) |
|
4468 | 1076 |
) |
6290 | 1077 |
(MenuItem |
1078 |
activeHelpKey: #'Lower Prio' |
|
1079 |
enabled: hasSelection |
|
1080 |
label: 'Lower Prio' |
|
1081 |
itemValue: lowerPrio |
|
1082 |
translateLabel: true |
|
1083 |
isButton: true |
|
1084 |
isVisible: allowModifications |
|
1085 |
labelImage: (ResourceRetriever ProcessMonitorV2 processLowerPrio22x22Icon) |
|
4468 | 1086 |
) |
6290 | 1087 |
(MenuItem |
1088 |
label: '' |
|
1089 |
isVisible: allowModifications |
|
4468 | 1090 |
) |
6290 | 1091 |
(MenuItem |
1092 |
activeHelpKey: #'Update Process List' |
|
1093 |
label: 'Update' |
|
1094 |
itemValue: updateList |
|
1095 |
translateLabel: true |
|
1096 |
isButton: true |
|
1097 |
startGroup: right |
|
1098 |
labelImage: (ResourceRetriever ToolbarIconLibrary reloadIcon) |
|
4468 | 1099 |
) |
6290 | 1100 |
(MenuItem |
1101 |
activeHelpKey: Details |
|
1102 |
label: 'View Details' |
|
1103 |
translateLabel: true |
|
1104 |
isButton: true |
|
1105 |
startGroup: right |
|
1106 |
submenuChannel: viewDetailsMenuSpec |
|
1107 |
labelImage: (ResourceRetriever ToolbarIconLibrary viewDetailsIcon) |
|
4463 | 1108 |
) |
1109 |
) |
|
1110 |
nil |
|
1111 |
nil |
|
1112 |
) |
|
7466 | 1113 |
|
1114 |
"Modified: / 24-10-2006 / 00:01:58 / cg" |
|
4463 | 1115 |
! |
1116 |
||
1117 |
viewDetailsMenuSpec |
|
1118 |
"This resource specification was automatically generated |
|
1119 |
by the MenuEditor of ST/X." |
|
1120 |
||
1121 |
"Do not manually edit this!! If it is corrupted, |
|
1122 |
the MenuEditor may not be able to read the specification." |
|
1123 |
||
1124 |
" |
|
1125 |
MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#viewDetailsMenuSpec |
|
1126 |
(Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 viewDetailsMenuSpec)) startUp |
|
1127 |
" |
|
1128 |
||
1129 |
<resource: #menu> |
|
1130 |
||
1131 |
^ |
|
1132 |
#(#Menu |
|
1133 |
#( |
|
1134 |
#(#MenuItem |
|
1135 |
#label: 'Id' |
|
1136 |
#translateLabel: true |
|
1137 |
#hideMenuOnActivated: false |
|
1138 |
#indication: #showProcessId |
|
1139 |
) |
|
1140 |
#(#MenuItem |
|
1141 |
#label: 'Group' |
|
1142 |
#translateLabel: true |
|
1143 |
#hideMenuOnActivated: false |
|
1144 |
#indication: #showGroup |
|
1145 |
) |
|
1146 |
#(#MenuItem |
|
1147 |
#label: 'State' |
|
1148 |
#translateLabel: true |
|
1149 |
#hideMenuOnActivated: false |
|
1150 |
#indication: #showState |
|
1151 |
) |
|
1152 |
#(#MenuItem |
|
1153 |
#label: 'Prio' |
|
1154 |
#translateLabel: true |
|
1155 |
#hideMenuOnActivated: false |
|
1156 |
#indication: #showPrio |
|
1157 |
) |
|
1158 |
#(#MenuItem |
|
1159 |
#label: 'Used Stack' |
|
1160 |
#translateLabel: true |
|
1161 |
#hideMenuOnActivated: false |
|
1162 |
#indication: #showUsedStack |
|
1163 |
) |
|
1164 |
#(#MenuItem |
|
1165 |
#label: 'Total Stack' |
|
1166 |
#translateLabel: true |
|
1167 |
#hideMenuOnActivated: false |
|
1168 |
#indication: #showTotalStack |
|
1169 |
) |
|
1170 |
#(#MenuItem |
|
1171 |
#label: 'Current-Segment' |
|
1172 |
#translateLabel: true |
|
1173 |
#hideMenuOnActivated: false |
|
1174 |
#indication: #showCurrentSegment |
|
1175 |
) |
|
1176 |
#(#MenuItem |
|
1177 |
#label: 'Switch' |
|
1178 |
#translateLabel: true |
|
1179 |
#hideMenuOnActivated: false |
|
1180 |
#indication: #showSwitch |
|
1181 |
) |
|
1182 |
#(#MenuItem |
|
1183 |
#label: 'Where' |
|
1184 |
#translateLabel: true |
|
1185 |
#hideMenuOnActivated: false |
|
1186 |
#indication: #showWhere |
|
1187 |
) |
|
1188 |
#(#MenuItem |
|
1189 |
#label: '-' |
|
1190 |
) |
|
1191 |
#(#MenuItem |
|
6239 | 1192 |
#label: 'Show Dead Processes' |
4463 | 1193 |
#translateLabel: true |
1194 |
#indication: #showDead |
|
1195 |
) |
|
4502 | 1196 |
#(#MenuItem |
1197 |
#label: '-' |
|
1198 |
) |
|
1199 |
#(#MenuItem |
|
1200 |
#label: 'Update' |
|
1201 |
#itemValue: #updateView |
|
1202 |
#translateLabel: true |
|
1203 |
) |
|
4463 | 1204 |
) |
1205 |
nil |
|
1206 |
nil |
|
1207 |
) |
|
1208 |
! ! |
|
1209 |
||
1210 |
!ProcessMonitorV2 class methodsFor:'tableColumns specs'! |
|
1211 |
||
1212 |
tableColumns |
|
1213 |
"This resource specification was automatically generated |
|
1214 |
by the DataSetBuilder of ST/X." |
|
1215 |
||
1216 |
"Do not manually edit this!! If it is corrupted, |
|
1217 |
the DataSetBuilder may not be able to read the specification." |
|
1218 |
||
1219 |
" |
|
1220 |
DataSetBuilder new openOnClass:ProcessMonitorV2 andSelector:#tableColumns |
|
1221 |
" |
|
1222 |
||
1223 |
<resource: #tableColumns> |
|
1224 |
||
1225 |
^#( |
|
1226 |
#(#DataSetColumnSpec |
|
1227 |
#label: 'Id' |
|
1228 |
#id: #id |
|
1229 |
#labelAlignment: #left |
|
1230 |
#labelButtonType: #Button |
|
1231 |
#labelActionSelector: #sortProcessListBy: |
|
1232 |
#labelActionArgument: 'idVal' |
|
1233 |
#width: 45 |
|
1234 |
#type: #number |
|
1235 |
#model: #processId |
|
1236 |
#canSelect: false |
|
1237 |
#showRowSeparator: false |
|
1238 |
#showColSeparator: false |
|
1239 |
) |
|
1240 |
#(#DataSetColumnSpec |
|
1241 |
#label: 'Group' |
|
1242 |
#id: #group |
|
1243 |
#labelAlignment: #left |
|
1244 |
#labelButtonType: #Button |
|
1245 |
#labelActionSelector: #sortProcessListBy: |
|
1246 |
#labelActionArgument: 'groupVal' |
|
1247 |
#width: 45 |
|
1248 |
#model: #processGroup |
|
1249 |
#canSelect: false |
|
1250 |
#showRowSeparator: false |
|
1251 |
#showColSeparator: false |
|
1252 |
) |
|
1253 |
#(#DataSetColumnSpec |
|
1254 |
#label: 'Name' |
|
1255 |
#id: #name |
|
1256 |
#labelAlignment: #left |
|
1257 |
#labelButtonType: #Button |
|
1258 |
#labelActionSelector: #sortProcessListBy: |
|
1259 |
#labelActionArgument: 'processName' |
|
1260 |
#width: 200 |
|
1261 |
#model: #processName |
|
1262 |
#canSelect: false |
|
1263 |
#showRowSeparator: false |
|
1264 |
#showColSeparator: false |
|
1265 |
) |
|
1266 |
#(#DataSetColumnSpec |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1267 |
#label: '' |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1268 |
#id: #active |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1269 |
#labelButtonType: #Button |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1270 |
#labelActionSelector: #sortProcessListBy: |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1271 |
#labelActionArgument: 'processActive' |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1272 |
#width: 10 |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1273 |
#height: 5 |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1274 |
#model: #processActive |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1275 |
#canSelect: false |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1276 |
#showRowSeparator: false |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1277 |
#showColSeparator: false |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1278 |
) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1279 |
#(#DataSetColumnSpec |
4463 | 1280 |
#label: 'State' |
1281 |
#id: #state |
|
1282 |
#labelAlignment: #left |
|
1283 |
#labelButtonType: #Button |
|
1284 |
#labelActionSelector: #sortProcessListBy: |
|
1285 |
#labelActionArgument: 'processState' |
|
1286 |
#width: 100 |
|
1287 |
#model: #processState |
|
1288 |
#canSelect: false |
|
1289 |
#showRowSeparator: false |
|
1290 |
#showColSeparator: false |
|
1291 |
) |
|
1292 |
#(#DataSetColumnSpec |
|
1293 |
#label: 'Prio' |
|
1294 |
#id: #prio |
|
1295 |
#labelAlignment: #left |
|
1296 |
#labelButtonType: #Button |
|
1297 |
#labelActionSelector: #sortProcessListBy: |
|
1298 |
#labelActionArgument: 'prioVal' |
|
1299 |
#width: 40 |
|
1300 |
#model: #processPrio |
|
1301 |
#canSelect: false |
|
1302 |
#showRowSeparator: false |
|
1303 |
#showColSeparator: false |
|
1304 |
) |
|
1305 |
#(#DataSetColumnSpec |
|
1306 |
#label: 'Used Stack' |
|
1307 |
#id: #usedStack |
|
1308 |
#labelAlignment: #left |
|
1309 |
#labelButtonType: #Button |
|
1310 |
#labelActionSelector: #sortProcessListBy: |
|
1311 |
#labelActionArgument: 'processUsedStack' |
|
1312 |
#columnAlignment: #right |
|
1313 |
#width: 75 |
|
1314 |
#type: #number |
|
1315 |
#model: #processUsedStack |
|
1316 |
#canSelect: false |
|
1317 |
#showRowSeparator: false |
|
1318 |
#showColSeparator: false |
|
1319 |
) |
|
1320 |
#(#DataSetColumnSpec |
|
1321 |
#label: 'Total Stack' |
|
1322 |
#id: #totalStack |
|
1323 |
#labelAlignment: #left |
|
1324 |
#labelButtonType: #Button |
|
1325 |
#labelActionSelector: #sortProcessListBy: |
|
1326 |
#labelActionArgument: 'processTotalStack' |
|
1327 |
#columnAlignment: #right |
|
1328 |
#width: 75 |
|
1329 |
#model: #processTotalStack |
|
1330 |
#canSelect: false |
|
1331 |
#showRowSeparator: false |
|
1332 |
#showColSeparator: false |
|
1333 |
) |
|
1334 |
#(#DataSetColumnSpec |
|
1335 |
#label: 'Current-Segment' |
|
1336 |
#id: #currentSegment |
|
1337 |
#labelAlignment: #left |
|
1338 |
#labelButtonType: #Button |
|
1339 |
#labelActionSelector: #sortProcessListBy: |
|
1340 |
#labelActionArgument: 'processCurrentSegment' |
|
1341 |
#width: 110 |
|
1342 |
#model: #processCurrentSegment |
|
1343 |
#canSelect: false |
|
1344 |
#showRowSeparator: false |
|
1345 |
#showColSeparator: false |
|
1346 |
) |
|
1347 |
#(#DataSetColumnSpec |
|
1348 |
#label: 'Switch' |
|
1349 |
#id: #switch |
|
1350 |
#labelAlignment: #left |
|
1351 |
#labelButtonType: #Button |
|
1352 |
#labelActionSelector: #sortProcessListBy: |
|
1353 |
#labelActionArgument: 'processSwitch' |
|
1354 |
#columnAlignment: #right |
|
1355 |
#width: 55 |
|
1356 |
#type: #number |
|
1357 |
#model: #processSwitch |
|
1358 |
#canSelect: false |
|
1359 |
#showRowSeparator: false |
|
1360 |
#showColSeparator: false |
|
1361 |
) |
|
1362 |
#(#DataSetColumnSpec |
|
1363 |
#label: 'Where' |
|
1364 |
#id: #where |
|
1365 |
#labelAlignment: #left |
|
1366 |
#labelButtonType: #Button |
|
1367 |
#labelActionSelector: #sortProcessListBy: |
|
1368 |
#labelActionArgument: 'processWhere' |
|
1369 |
#model: #processWhere |
|
1370 |
#canSelect: false |
|
1371 |
#showRowSeparator: false |
|
1372 |
#showColSeparator: false |
|
1373 |
) |
|
1374 |
) |
|
1375 |
! ! |
|
1376 |
||
4570
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1377 |
!ProcessMonitorV2 methodsFor:'accessing'! |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1378 |
|
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1379 |
visibleBlock |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1380 |
"return the value of the instance variable 'visibleBlock' (automatically generated)" |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1381 |
|
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1382 |
^ visibleBlock |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1383 |
! |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1384 |
|
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1385 |
visibleBlock:something |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1386 |
"set the value of the instance variable 'visibleBlock' (automatically generated)" |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1387 |
|
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1388 |
visibleBlock := something. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1389 |
! ! |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1390 |
|
4463 | 1391 |
!ProcessMonitorV2 methodsFor:'actions'! |
1392 |
||
4498 | 1393 |
changeSelectionTo:aSelection |
1394 |
||
1395 |
aSelection notNil ifTrue:[ |
|
1396 |
| newSelection | |
|
1397 |
newSelection := OrderedCollection new. |
|
1398 |
aSelection do:[:processItem | |
|
1399 |
| index | |
|
1400 |
index := processList findFirst:[:anItem | (anItem processInstance == processItem processInstance)]. |
|
1401 |
index ~~ 0 ifTrue:[ |
|
1402 |
newSelection add:(processList at:index). |
|
1403 |
]. |
|
1404 |
]. |
|
1405 |
self selectedProcesses value:newSelection |
|
1406 |
]. |
|
1407 |
! |
|
1408 |
||
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1409 |
changeSelectionToProcesses:aProcessList |
4498 | 1410 |
|
1411 |
aProcessList notNil ifTrue:[ |
|
1412 |
| newSelection | |
|
1413 |
newSelection := OrderedCollection new. |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1414 |
aProcessList do:[:aProcess | |
4498 | 1415 |
| index | |
1416 |
index := processList findFirst:[:anItem | (anItem processInstance == aProcess)]. |
|
1417 |
index ~~ 0 ifTrue:[ |
|
1418 |
newSelection add:(processList at:index). |
|
1419 |
]. |
|
1420 |
]. |
|
1421 |
self selectedProcesses value:newSelection |
|
1422 |
]. |
|
1423 |
! |
|
1424 |
||
1425 |
decreaseupdateContentsDelayTime |
|
1426 |
||
1427 |
self updateContentsDelayTime value:(self scaledUpdateContentsDelayTime - 0.1). |
|
1428 |
self evaluateEnableInDecreaseButtons. |
|
1429 |
! |
|
1430 |
||
1431 |
decreaseupdateListDelayTime |
|
1432 |
||
1433 |
self updateListDelayTime value:(self scaledUpdateListDelayTime - 0.1). |
|
1434 |
self evaluateEnableInDecreaseButtons. |
|
1435 |
! |
|
1436 |
||
4463 | 1437 |
doubleClickedAt:anItemIndex |
1438 |
"open a debugger on the selected process" |
|
1439 |
||
1440 |
self debugProcess |
|
1441 |
! |
|
1442 |
||
4498 | 1443 |
evaluateEnableInDecreaseButtons |
1444 |
||
1445 |
| contDelaySmallerListDelay | |
|
1446 |
||
4570
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1447 |
contDelaySmallerListDelay := (self scaledUpdateContentsDelayTime < (self scaledUpdateListDelayTime)). |
4649
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1448 |
self enableDecreaseContentsDelayTime value:((self scaledUpdateContentsDelayTime <= 0.5) not). |
4498 | 1449 |
self enableDecreaseListDelayTime value:contDelaySmallerListDelay. |
1450 |
self enableIncreaseContentsDelayTime value:contDelaySmallerListDelay. |
|
1451 |
! |
|
1452 |
||
4463 | 1453 |
getProcessList |
1454 |
"select processes to display. |
|
1455 |
Subclasses may redefine this" |
|
1456 |
||
1457 |
|coll| |
|
1458 |
||
5690
024838c5f342
Fix bug 44: Process allSubInstances was called all the time causing
Stefan Vogel <sv@exept.de>
parents:
5538
diff
changeset
|
1459 |
self showDead value ifTrue:[ |
4463 | 1460 |
coll := Process allSubInstances asOrderedCollection. |
1461 |
] ifFalse:[ |
|
1462 |
coll := ProcessorScheduler knownProcesses asOrderedCollection. |
|
1463 |
]. |
|
1464 |
^ coll |
|
1465 |
! |
|
1466 |
||
4498 | 1467 |
increaseupdateContentsDelayTime |
1468 |
||
1469 |
self updateContentsDelayTime value:(self scaledUpdateContentsDelayTime + 0.1). |
|
1470 |
self evaluateEnableInDecreaseButtons. |
|
1471 |
! |
|
1472 |
||
1473 |
increaseupdateListDelayTime |
|
1474 |
||
1475 |
self updateListDelayTime value:(self scaledUpdateListDelayTime + 0.1). |
|
1476 |
self evaluateEnableInDecreaseButtons. |
|
1477 |
! |
|
1478 |
||
4463 | 1479 |
selectedProcessesDo:aBlock |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1480 |
| sel proc| |
4463 | 1481 |
|
1482 |
sel := self selectedProcesses value. |
|
1483 |
sel isNil ifTrue:[^ self]. |
|
1484 |
||
1485 |
sel do:[:processItem | |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1486 |
proc := processItem processInstance. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1487 |
proc notNil ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1488 |
aBlock value:proc. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1489 |
]. |
4463 | 1490 |
] |
1491 |
! |
|
1492 |
||
1493 |
selectedProcessesSend:aSelector |
|
1494 |
"send a message to all selected processes" |
|
1495 |
||
1496 |
self selectedProcessesDo:[:p | |
|
1497 |
p perform:aSelector |
|
1498 |
]. |
|
4570
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1499 |
self updateList. |
4463 | 1500 |
! ! |
1501 |
||
1502 |
!ProcessMonitorV2 methodsFor:'aspects'! |
|
1503 |
||
4649
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1504 |
allowModifications |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1505 |
|
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1506 |
allowModifications isNil ifTrue:[ |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1507 |
allowModifications := true asValue |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1508 |
]. |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1509 |
^ allowModifications |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1510 |
! |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1511 |
|
4463 | 1512 |
currentSortOrder |
1513 |
"return/create the 'currentSortOrder' value holder (automatically generated)" |
|
1514 |
||
1515 |
currentSortOrder isNil ifTrue:[ |
|
1516 |
currentSortOrder := Dictionary new asValue. |
|
1517 |
]. |
|
1518 |
^ currentSortOrder |
|
1519 |
! |
|
1520 |
||
4498 | 1521 |
enableDecreaseContentsDelayTime |
1522 |
||
1523 |
enableDecreaseContentsDelayTime isNil ifTrue:[ |
|
1524 |
enableDecreaseContentsDelayTime := true asValue. |
|
1525 |
]. |
|
1526 |
^ enableDecreaseContentsDelayTime. |
|
1527 |
! |
|
1528 |
||
1529 |
enableDecreaseListDelayTime |
|
1530 |
||
1531 |
enableDecreaseListDelayTime isNil ifTrue:[ |
|
1532 |
enableDecreaseListDelayTime := true asValue. |
|
1533 |
]. |
|
1534 |
^ enableDecreaseListDelayTime. |
|
1535 |
! |
|
1536 |
||
1537 |
enableIncreaseContentsDelayTime |
|
1538 |
||
1539 |
enableIncreaseContentsDelayTime isNil ifTrue:[ |
|
1540 |
enableIncreaseContentsDelayTime := true asValue. |
|
1541 |
]. |
|
1542 |
^ enableIncreaseContentsDelayTime. |
|
1543 |
! |
|
1544 |
||
1545 |
enableIncreaseListDelayTime |
|
1546 |
||
1547 |
enableIncreaseListDelayTime isNil ifTrue:[ |
|
1548 |
enableIncreaseListDelayTime := true asValue. |
|
1549 |
]. |
|
1550 |
^ enableIncreaseListDelayTime. |
|
1551 |
! |
|
1552 |
||
4463 | 1553 |
hasSelection |
1554 |
||
1555 |
hasSelection isNil ifTrue:[ |
|
1556 |
hasSelection := ValueHolder new. |
|
1557 |
]. |
|
1558 |
^ hasSelection |
|
1559 |
! |
|
1560 |
||
6609 | 1561 |
hasSelectionAndProcessIsApplicationProcess |
1562 |
^ [ hasSelection value |
|
1563 |
and:[ self selectedProcesses value contains:[:pItem | |
|
1564 |
|process| |
|
1565 |
||
1566 |
process := pItem processInstance. |
|
1567 |
process notNil and:[ self isApplicationProcess:process ]] ] ] |
|
1568 |
! |
|
1569 |
||
4463 | 1570 |
processList |
1571 |
||
1572 |
processList isNil ifTrue:[ |
|
1573 |
processList := List new. |
|
1574 |
]. |
|
1575 |
^ processList. |
|
1576 |
! |
|
1577 |
||
4498 | 1578 |
scaledUpdateContentsDelayTime |
1579 |
||
1580 |
^ self updateContentsDelayTime value asFloat asFixedPoint:1. |
|
1581 |
! |
|
1582 |
||
1583 |
scaledUpdateListDelayTime |
|
1584 |
||
1585 |
^ self updateListDelayTime value asFloat asFixedPoint:1. |
|
1586 |
! |
|
1587 |
||
4463 | 1588 |
selectedProcesses |
1589 |
||
1590 |
selectedProcesses isNil ifTrue:[ |
|
1591 |
selectedProcesses := ValueHolder new. |
|
1592 |
selectedProcesses addDependent:self. |
|
1593 |
]. |
|
1594 |
^ selectedProcesses. |
|
1595 |
! |
|
1596 |
||
1597 |
selectionRestartable |
|
1598 |
||
1599 |
selectionRestartable isNil ifTrue:[ |
|
1600 |
selectionRestartable := ValueHolder new. |
|
1601 |
]. |
|
1602 |
^ selectionRestartable |
|
1603 |
! |
|
1604 |
||
1605 |
showDead |
|
1606 |
"return/create the 'showDead' value holder (automatically generated)" |
|
1607 |
||
1608 |
showDead isNil ifTrue:[ |
|
1609 |
showDead := false asValue. |
|
1610 |
showDead addDependent:self. |
|
1611 |
]. |
|
1612 |
^ showDead |
|
1613 |
! |
|
1614 |
||
1615 |
sortBlock |
|
1616 |
||
1617 |
sortBlock isNil ifTrue:[ |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1618 |
| curSortOrder defaultSortInstance| |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1619 |
defaultSortInstance := #idVal. |
4463 | 1620 |
sortBlock := [:a :b | |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1621 |
((a perform:defaultSortInstance) < (b perform:defaultSortInstance)) |
4498 | 1622 |
]. |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1623 |
curSortOrder := self currentSortOrder value. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1624 |
curSortOrder at:#column put:defaultSortInstance. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1625 |
curSortOrder at:#reverse put:true. |
4463 | 1626 |
]. |
1627 |
^ sortBlock |
|
1628 |
! |
|
1629 |
||
1630 |
tableColumns |
|
1631 |
||
1632 |
tableColumns isNil ifTrue:[ |
|
1633 |
tableColumns := self class tableColumns asValue. |
|
1634 |
]. |
|
1635 |
^ tableColumns. |
|
4498 | 1636 |
! |
1637 |
||
1638 |
updateContentsDelayTime |
|
1639 |
||
1640 |
updateContentsDelayTime isNil ifTrue:[ |
|
1641 |
updateContentsDelayTime := updateDelay asValue. |
|
1642 |
updateContentsDelayTime onChangeSend:#evaluateEnableInDecreaseButtons to:self. |
|
1643 |
]. |
|
1644 |
^ updateContentsDelayTime. |
|
1645 |
! |
|
1646 |
||
1647 |
updateListDelayTime |
|
1648 |
||
1649 |
updateListDelayTime isNil ifTrue:[ |
|
1650 |
updateListDelayTime := listUpdateDelay asValue. |
|
1651 |
updateListDelayTime onChangeSend:#evaluateEnableInDecreaseButtons to:self. |
|
1652 |
]. |
|
1653 |
^ updateListDelayTime. |
|
4463 | 1654 |
! ! |
1655 |
||
1656 |
!ProcessMonitorV2 methodsFor:'aspects column'! |
|
1657 |
||
1658 |
showCurrentSegment |
|
1659 |
"return/create the 'showCurrentSegment' value holder (automatically generated)" |
|
1660 |
||
1661 |
showCurrentSegment isNil ifTrue:[ |
|
1662 |
showCurrentSegment := showDetail asValue. |
|
1663 |
showCurrentSegment onChangeSend:#viewedColumnsChanged to:self. |
|
1664 |
]. |
|
1665 |
^ showCurrentSegment |
|
1666 |
! |
|
1667 |
||
1668 |
showGroup |
|
1669 |
"return/create the 'showGroup' value holder (automatically generated)" |
|
1670 |
||
1671 |
showGroup isNil ifTrue:[ |
|
1672 |
showGroup := true asValue. |
|
1673 |
showGroup onChangeSend:#viewedColumnsChanged to:self. |
|
1674 |
]. |
|
1675 |
^ showGroup |
|
1676 |
! |
|
1677 |
||
1678 |
showPrio |
|
1679 |
"return/create the 'showPrio' value holder (automatically generated)" |
|
1680 |
||
1681 |
showPrio isNil ifTrue:[ |
|
1682 |
showPrio := true asValue. |
|
1683 |
showPrio onChangeSend:#viewedColumnsChanged to:self. |
|
1684 |
]. |
|
1685 |
^ showPrio |
|
1686 |
! |
|
1687 |
||
1688 |
showProcessId |
|
1689 |
||
1690 |
showProcessId isNil ifTrue:[ |
|
1691 |
showProcessId := true asValue. |
|
1692 |
showProcessId onChangeSend:#viewedColumnsChanged to:self |
|
1693 |
]. |
|
1694 |
^ showProcessId |
|
1695 |
! |
|
1696 |
||
1697 |
showState |
|
1698 |
"return/create the 'showState' value holder (automatically generated)" |
|
1699 |
||
1700 |
showState isNil ifTrue:[ |
|
1701 |
showState := true asValue. |
|
1702 |
showState onChangeSend:#viewedColumnsChanged to:self |
|
1703 |
]. |
|
1704 |
^ showState |
|
1705 |
! |
|
1706 |
||
1707 |
showSwitch |
|
1708 |
"return/create the 'showSwitch' value holder (automatically generated)" |
|
1709 |
||
1710 |
showSwitch isNil ifTrue:[ |
|
1711 |
showSwitch := showDetail asValue. |
|
1712 |
showSwitch onChangeSend:#viewedColumnsChanged to:self |
|
1713 |
]. |
|
1714 |
^ showSwitch |
|
1715 |
! |
|
1716 |
||
1717 |
showTotalStack |
|
1718 |
"return/create the 'showTotalStack' value holder (automatically generated)" |
|
1719 |
||
1720 |
showTotalStack isNil ifTrue:[ |
|
1721 |
showTotalStack := showDetail asValue. |
|
1722 |
showTotalStack onChangeSend:#viewedColumnsChanged to:self |
|
1723 |
]. |
|
1724 |
^ showTotalStack |
|
1725 |
! |
|
1726 |
||
1727 |
showUsedStack |
|
1728 |
"return/create the 'showUsedStack' value holder (automatically generated)" |
|
1729 |
||
1730 |
showUsedStack isNil ifTrue:[ |
|
1731 |
showUsedStack := showDetail asValue. |
|
1732 |
showUsedStack onChangeSend:#viewedColumnsChanged to:self |
|
1733 |
]. |
|
1734 |
^ showUsedStack |
|
1735 |
! |
|
1736 |
||
1737 |
showWhere |
|
1738 |
"return/create the 'showWhere' value holder (automatically generated)" |
|
1739 |
||
1740 |
showWhere isNil ifTrue:[ |
|
1741 |
showWhere := true asValue. |
|
1742 |
showWhere onChangeSend:#viewedColumnsChanged to:self |
|
1743 |
]. |
|
1744 |
^ showWhere |
|
1745 |
! ! |
|
1746 |
||
1747 |
!ProcessMonitorV2 methodsFor:'change & update'! |
|
1748 |
||
1749 |
selectionChanged |
|
1750 |
||
1751 |
|allRestartable| |
|
1752 |
||
1753 |
self hasSelection value:(self selectedProcesses value notEmptyOrNil). |
|
1754 |
self hasSelection value ifFalse:[ |
|
1755 |
self selectionRestartable value:false. |
|
1756 |
^ self |
|
1757 |
]. |
|
1758 |
allRestartable := true. |
|
1759 |
self selectedProcessesDo:[:p | |
|
1760 |
p isRestartable ifFalse:[ |
|
1761 |
allRestartable := false |
|
1762 |
]. |
|
1763 |
]. |
|
1764 |
self selectionRestartable value:allRestartable. |
|
1765 |
^ self. |
|
1766 |
! |
|
1767 |
||
1768 |
update:something with:aParameter from:changedObject |
|
1769 |
"Invoked when an object that I depend upon sends a change notification." |
|
1770 |
||
1771 |
"stub code automatically generated - please change as required" |
|
1772 |
||
4565 | 1773 |
changedObject == builder window ifTrue:[ |
1774 |
something == #visibility ifTrue:[ |
|
1775 |
self updateList. |
|
1776 |
]. |
|
1777 |
]. |
|
4463 | 1778 |
changedObject == self selectedProcesses ifTrue:[ |
1779 |
self selectionChanged. |
|
1780 |
^ self |
|
1781 |
]. |
|
1782 |
changedObject == self showDead ifTrue:[ |
|
4570
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1783 |
self updateList. |
4463 | 1784 |
^ self |
1785 |
]. |
|
1786 |
super update:something with:aParameter from:changedObject |
|
1787 |
! |
|
1788 |
||
1789 |
viewedColumnsChanged |
|
1790 |
||
4498 | 1791 |
| columns buffer locCurrentSortOrder currentSortOrderColumn currentSortOrderReverse oldSelection sel| |
1792 |
||
1793 |
sel := self selectedProcesses value. |
|
1794 |
sel notNil ifTrue:[ |
|
1795 |
oldSelection := OrderedCollection new. |
|
1796 |
sel do:[:proItem| |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1797 |
proItem processInstance notNil ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1798 |
oldSelection add:(proItem processInstance) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1799 |
]. |
4498 | 1800 |
]. |
1801 |
]. |
|
1802 |
"/ Transcript showCR:'oldSelection on catch in viewedColumnsChanged', (oldSelection isNil ifTrue:['nil'] ifFalse:[oldSelection first printString]). |
|
4463 | 1803 |
columns := OrderedCollection new. |
1804 |
self class tableColumns do:[:el| |
|
1805 |
columns add:(DataSetColumnSpec new fromLiteralArrayEncoding:el). |
|
1806 |
]. |
|
1807 |
buffer := columns copy. |
|
1808 |
locCurrentSortOrder := self currentSortOrder value. |
|
1809 |
currentSortOrderColumn := locCurrentSortOrder at:#column ifAbsent:nil. |
|
1810 |
currentSortOrderReverse := locCurrentSortOrder at:#reverse ifAbsent:nil. |
|
1811 |
buffer do:[:col | |
|
1812 |
| id | |
|
1813 |
id := col id. |
|
1814 |
id notNil ifTrue:[ |
|
1815 |
(col labelActionArgument notNil and:[col labelActionArgument asSymbol == currentSortOrderColumn]) ifTrue:[ |
|
1816 |
| label icon| |
|
1817 |
label := col label. |
|
1818 |
icon := currentSortOrderReverse ifTrue:[self class detailsMenuIconDown] ifFalse:[self class detailsMenuIconUp]. |
|
1819 |
col label:(LabelAndIcon label:label icon:icon). |
|
1820 |
]. |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1821 |
#( |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1822 |
( #id #showProcessId) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1823 |
( #group #showGroup) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1824 |
( #prio #showPrio) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1825 |
( #currentSegment #showCurrentSegment) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1826 |
( #state #showState) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1827 |
( #switch #showSwitch) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1828 |
( #totalStack #showTotalStack) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1829 |
( #usedStack #showUsedStack) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1830 |
( #where #showWhere) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1831 |
) pairsDo:[:colName :holderAccessorSelector | |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1832 |
(id == colName and:[(self perform:holderAccessorSelector) value not]) ifTrue:[ |
4463 | 1833 |
columns remove:col. |
1834 |
] |
|
1835 |
] |
|
1836 |
] |
|
1837 |
]. |
|
1838 |
updateSema critical:[ |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1839 |
self tableColumns value:columns. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1840 |
"/ self updateTable:nil. |
4498 | 1841 |
"/ Transcript showCR:'oldSelection on set in viewedColumnsChanged', (oldSelection isNil ifTrue:['nil'] ifFalse:[oldSelection first printString]). |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
1842 |
self changeSelectionToProcesses:oldSelection. |
4463 | 1843 |
]. |
1844 |
! ! |
|
1845 |
||
1846 |
!ProcessMonitorV2 methodsFor:'event handling'! |
|
1847 |
||
1848 |
processEvent:anEvent |
|
1849 |
"filter keyboard events. |
|
1850 |
Return true, if I have eaten the event" |
|
1851 |
||
1852 |
|focusView key rawKey| |
|
1853 |
||
1854 |
anEvent isKeyPressEvent ifTrue:[ |
|
1855 |
focusView := anEvent targetView. |
|
1856 |
key := anEvent key. |
|
1857 |
rawKey := anEvent rawKey. |
|
1858 |
||
1859 |
(focusView == processList) ifTrue:[ |
|
1860 |
key == #InspectIt ifTrue:[ |
|
1861 |
self inspectSelection. |
|
1862 |
^ true. |
|
1863 |
]. |
|
1864 |
] |
|
1865 |
]. |
|
1866 |
^ false |
|
1867 |
! ! |
|
1868 |
||
1869 |
!ProcessMonitorV2 methodsFor:'initialization & release'! |
|
1870 |
||
1871 |
initialize |
|
1872 |
||
1873 |
super initialize. |
|
1874 |
||
1875 |
showDetail := (Smalltalk at:#SystemDebugging ifAbsent:false). |
|
1876 |
updateSema := Semaphore forMutualExclusion. |
|
1877 |
updateDelay := 0.5. |
|
4570
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1878 |
listUpdateDelay := 5.0. |
4463 | 1879 |
|
1880 |
"/ event mode is no longer used; |
|
1881 |
"/ this event support may vanish |
|
1882 |
Processor isPureEventDriven ifTrue:[ |
|
1883 |
updateBlock := [self updateStatus:nil]. |
|
1884 |
listUpdateBlock := [self updateList]. |
|
1885 |
]. |
|
1886 |
! |
|
1887 |
||
1888 |
postBuildProcessTable:aWidget |
|
1889 |
||
1890 |
processTable := aWidget scrolledView. |
|
1891 |
processTable wantsFocusWithPointerEnter. |
|
1892 |
! |
|
1893 |
||
1894 |
postOpenWith:aBuilder |
|
1895 |
||
1896 |
super postOpenWith:aBuilder. |
|
6648 | 1897 |
|
4565 | 1898 |
aBuilder window addDependent:self. |
4463 | 1899 |
self viewedColumnsChanged. |
1900 |
self updateList. |
|
1901 |
self startUpdateProcess. |
|
1902 |
self selectionChanged. |
|
4498 | 1903 |
self sortProcessListBy:#idVal. |
4463 | 1904 |
self windowGroup addPreEventHook:self. |
4570
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1905 |
! |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1906 |
|
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1907 |
release |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1908 |
updateBlock notNil ifTrue:[ |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1909 |
Processor removeTimedBlock:updateBlock. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1910 |
updateBlock := nil. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1911 |
]. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1912 |
listUpdateBlock notNil ifTrue:[ |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1913 |
Processor removeTimedBlock:listUpdateBlock. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1914 |
listUpdateBlock := nil. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1915 |
]. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1916 |
updateProcess notNil ifTrue:[ |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1917 |
updateProcess terminate. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1918 |
updateProcess := nil. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1919 |
]. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
1920 |
super release |
6234
f4c3118ce840
Restart update process after snapshot restart
Stefan Vogel <sv@exept.de>
parents:
6042
diff
changeset
|
1921 |
! |
f4c3118ce840
Restart update process after snapshot restart
Stefan Vogel <sv@exept.de>
parents:
6042
diff
changeset
|
1922 |
|
f4c3118ce840
Restart update process after snapshot restart
Stefan Vogel <sv@exept.de>
parents:
6042
diff
changeset
|
1923 |
restarted |
f4c3118ce840
Restart update process after snapshot restart
Stefan Vogel <sv@exept.de>
parents:
6042
diff
changeset
|
1924 |
"restarted from snapshot" |
f4c3118ce840
Restart update process after snapshot restart
Stefan Vogel <sv@exept.de>
parents:
6042
diff
changeset
|
1925 |
|
f4c3118ce840
Restart update process after snapshot restart
Stefan Vogel <sv@exept.de>
parents:
6042
diff
changeset
|
1926 |
super restarted. |
f4c3118ce840
Restart update process after snapshot restart
Stefan Vogel <sv@exept.de>
parents:
6042
diff
changeset
|
1927 |
self startUpdateProcess. |
4463 | 1928 |
! ! |
1929 |
||
4649
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1930 |
!ProcessMonitorV2 methodsFor:'menu accessing'! |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1931 |
|
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1932 |
tableMenu |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1933 |
|
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1934 |
^[ |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1935 |
self tableMenuAccess |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1936 |
] |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1937 |
! |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1938 |
|
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1939 |
tableMenuAccess |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1940 |
self allowModifications value ifTrue:[ |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1941 |
tableMenu isNil ifTrue:[ |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1942 |
tableMenu := Menu new fromLiteralArrayEncoding:(self class tableMenu). |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1943 |
tableMenu receiver:self. |
6239 | 1944 |
tableMenu findGuiResourcesIn:self. |
4649
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1945 |
]. |
6239 | 1946 |
^ tableMenu |
4649
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1947 |
]. |
6239 | 1948 |
^ nil |
4649
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1949 |
! ! |
37f55d741468
allow task modifications in Process Monitor can be disabled now
penk
parents:
4576
diff
changeset
|
1950 |
|
4463 | 1951 |
!ProcessMonitorV2 methodsFor:'menu actions'! |
1952 |
||
1953 |
abortProcess |
|
1954 |
"abort (raise AbortSignal in) the selected process" |
|
1955 |
||
1956 |
self selectedProcessesDo:[:p | |
|
1957 |
p abort |
|
1958 |
] |
|
1959 |
! |
|
1960 |
||
1961 |
debugProcess |
|
1962 |
"open a debugger on the selected process" |
|
1963 |
||
1964 |
self selectedProcessesDo:[:p | |
|
1965 |
Debugger openOn:p |
|
1966 |
] |
|
1967 |
! |
|
1968 |
||
1969 |
debugWhenResumed |
|
1970 |
self selectedProcessesDo:[:p | |
|
1971 |
p addInterruptAction:[Debugger enter] |
|
1972 |
] |
|
1973 |
! |
|
1974 |
||
1975 |
hardTerminateProcess |
|
1976 |
"hard terminate the selected process" |
|
1977 |
||
1978 |
self selectedProcessesSend:#terminateNoSignal |
|
1979 |
! |
|
1980 |
||
6609 | 1981 |
inspectApplication |
1982 |
"open an inspector on the selected process' application or topView" |
|
1983 |
||
1984 |
self |
|
1985 |
selectedProcessesDo:[:eachProcess | |
|
1986 |
|wg app topView| |
|
1987 |
||
1988 |
wg := self windowGroupOfProcess:eachProcess. |
|
1989 |
wg notNil ifTrue:[ |
|
1990 |
(app := wg application) notNil ifTrue:[ |
|
1991 |
app inspect. |
|
1992 |
] ifFalse:[ |
|
1993 |
(topView := wg mainView) notNil ifTrue:[ |
|
1994 |
topView inspect. |
|
1995 |
] ifFalse:[ |
|
1996 |
wg inspect. |
|
1997 |
] |
|
1998 |
] |
|
1999 |
] |
|
2000 |
] |
|
2001 |
! |
|
2002 |
||
4463 | 2003 |
inspectSelection |
2004 |
"open an inspector on the selected process" |
|
2005 |
||
2006 |
self selectedProcessesSend:#inspect |
|
2007 |
! |
|
2008 |
||
2009 |
lowerPrio |
|
2010 |
"lower the selected processes priority" |
|
2011 |
||
2012 |
self selectedProcessesDo:[:p | |
|
2013 |
p priority:(p priority - 1) |
|
2014 |
] |
|
2015 |
! |
|
2016 |
||
2017 |
openDocumentation |
|
2018 |
"This method was generated by the Browser. |
|
2019 |
It will be invoked when the menu-item 'help-documentation' is selected." |
|
2020 |
||
2021 |
"/ change below as required ... |
|
2022 |
||
2023 |
"/ to open an HTML viewer on some document (under 'doc/online/<language>/' ): |
|
4561 | 2024 |
HTMLDocumentView openFullOnDocumentationFile:'tools/misc/TOP.html#PROCESSMONITOR'. |
4463 | 2025 |
|
2026 |
"/ add application-specific help files under the 'doc/online/<language>/help/appName' |
|
2027 |
"/ directory, and open a viewer with: |
|
2028 |
"/ HTMLDocumentView openFullOnDocumentationFile:'help/<MyApplication>/TOP.html'. |
|
2029 |
! |
|
2030 |
||
2031 |
raisePrio |
|
2032 |
"raise the selected processes priority" |
|
2033 |
||
2034 |
self selectedProcessesDo:[:p | |
|
2035 |
p priority:(p priority + 1) |
|
2036 |
] |
|
2037 |
! |
|
2038 |
||
2039 |
restartProcess |
|
2040 |
"abort (raise AbortSignal in) the selected process" |
|
2041 |
||
2042 |
self selectedProcessesDo:[:p | |
|
2043 |
p restart. |
|
2044 |
] |
|
2045 |
! |
|
2046 |
||
2047 |
resumeProcess |
|
2048 |
"resume the selected process (i.e. let it run) " |
|
2049 |
||
2050 |
self selectedProcessesSend:#resume |
|
2051 |
! |
|
2052 |
||
2053 |
stopProcess |
|
2054 |
"stop the selected process - not even interrupts will wake it up" |
|
2055 |
||
2056 |
self selectedProcessesSend:#stop |
|
2057 |
! |
|
2058 |
||
2059 |
suspendProcess |
|
2060 |
"suspend the selected process - interrupts will let it run again" |
|
2061 |
||
2062 |
self selectedProcessesSend:#suspend |
|
2063 |
! |
|
2064 |
||
2065 |
terminateProcess |
|
2066 |
"terminate the selected process" |
|
2067 |
||
2068 |
self selectedProcessesSend:#terminate. |
|
2069 |
self updateList. |
|
2070 |
! |
|
2071 |
||
2072 |
terminateProcessGroup |
|
2073 |
"terminate the selected process with all of its subprocesses" |
|
2074 |
||
2075 |
self selectedProcessesSend:#terminateGroup. |
|
2076 |
self updateList. |
|
2077 |
! ! |
|
2078 |
||
6609 | 2079 |
!ProcessMonitorV2 methodsFor:'private queries'! |
2080 |
||
2081 |
isApplicationProcess:aProcess |
|
2082 |
^ (self windowGroupOfProcess:aProcess) notNil. |
|
2083 |
! |
|
2084 |
||
2085 |
windowGroupOfProcess:aProcess |
|
2086 |
WindowGroup scheduledWindowGroups |
|
2087 |
do:[:eachGroup | |
|
2088 |
(eachGroup process == aProcess) ifTrue:[ |
|
2089 |
eachGroup isModal ifTrue:[ |
|
2090 |
^ eachGroup previousGroup |
|
2091 |
]. |
|
2092 |
^ eachGroup |
|
2093 |
] |
|
2094 |
]. |
|
2095 |
||
2096 |
^ nil |
|
2097 |
! ! |
|
2098 |
||
4463 | 2099 |
!ProcessMonitorV2 methodsFor:'queries - table string'! |
2100 |
||
5538 | 2101 |
getActiveStringFor:aProcess running:isRunning |
2102 |
|stateCharacter| |
|
2103 |
||
2104 |
isRunning ifTrue:[ |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2105 |
stateCharacter := '*'. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2106 |
] ifFalse:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2107 |
[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2108 |
(Processor scheduledProcesses includes:aProcess) ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2109 |
stateCharacter := '+' |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2110 |
] ifFalse:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2111 |
stateCharacter := ''. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2112 |
]. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2113 |
] valueUninterruptably. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2114 |
]. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2115 |
^ stateCharacter. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2116 |
! |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2117 |
|
4463 | 2118 |
getCurrentSegmentStringFor:con |
2119 |
||
2120 |
con notNil ifTrue:[ |
|
2121 |
| contextCount c sender| |
|
2122 |
contextCount := 1. |
|
2123 |
c := con. |
|
2124 |
[(sender := c sender) notNil] whileTrue:[ |
|
2125 |
c := sender. |
|
2126 |
contextCount := contextCount + 1. |
|
2127 |
]. |
|
2128 |
^ (((ObjectMemory addressOf:con) printStringRadix:16), |
|
2129 |
' .. ', |
|
2130 |
((ObjectMemory addressOf:c) printStringRadix:16)). |
|
2131 |
]. |
|
4504 | 2132 |
^ '' |
4463 | 2133 |
! |
2134 |
||
2135 |
getGroupStringFor:aProcess |
|
2136 |
||
2137 |
|gId| |
|
2138 |
||
2139 |
gId := aProcess processGroupId. |
|
2140 |
((gId == aProcess id) or:[gId isNil]) ifTrue:[ |
|
2141 |
"/ a group leader |
|
2142 |
^ '-'. |
|
2143 |
] ifFalse:[ |
|
2144 |
^ gId. |
|
2145 |
]. |
|
2146 |
! |
|
2147 |
||
2148 |
getPrioStringFor:aProcess |
|
2149 |
||
2150 |
|prioRange| |
|
2151 |
||
2152 |
Processor supportDynamicPriorities ifTrue:[ |
|
2153 |
(prioRange := aProcess priorityRange) isNil ifTrue:[ |
|
2154 |
^ aProcess priority asString. |
|
2155 |
] ifFalse:[ |
|
2156 |
^ (aProcess priority asString, |
|
2157 |
' [', |
|
2158 |
prioRange start printString, |
|
2159 |
'..', |
|
2160 |
prioRange stop printString, |
|
2161 |
']'). |
|
2162 |
]. |
|
2163 |
]. |
|
4504 | 2164 |
^ '' |
4463 | 2165 |
! |
2166 |
||
2167 |
getTotalStackStringFor:aProcess |
|
2168 |
||
2169 |
||
2170 |
aProcess id == 0 ifTrue:[ |
|
2171 |
^ 'unlimited'. |
|
2172 |
] ifFalse:[ |
|
2173 |
| tStackSize noOfSegs | |
|
2174 |
((tStackSize := aProcess totalStackSize) notNil and:[ |
|
2175 |
(noOfSegs := aProcess numberOfStackSegments) notNil |
|
2176 |
]) ifTrue:[ |
|
2177 |
^ ((tStackSize printString), |
|
2178 |
' (', |
|
2179 |
(noOfSegs printString), |
|
2180 |
')' ) |
|
2181 |
] |
|
2182 |
]. |
|
4504 | 2183 |
^ '' |
4463 | 2184 |
! |
2185 |
||
5538 | 2186 |
getWhereStringFor:con running:isRunning |
4463 | 2187 |
con notNil ifTrue:[ |
5538 | 2188 |
|c found skipping| |
2189 |
||
4463 | 2190 |
c := con. |
2191 |
found := false. |
|
2192 |
isRunning ifFalse:[ |
|
2193 |
"/ search for a semaphore-wait in the top 10 contexts |
|
5538 | 2194 |
1 to:10 do:[:n | |
4463 | 2195 |
found ifFalse:[ |
2196 |
c notNil ifTrue:[ |
|
2197 |
(c receiver class == Semaphore) ifTrue:[ |
|
2198 |
c selector == #wait ifTrue:[ |
|
2199 |
found := true. |
|
2200 |
] |
|
2201 |
]. |
|
2202 |
c := c sender. |
|
2203 |
] |
|
2204 |
] |
|
2205 |
]. |
|
5538 | 2206 |
]. |
4463 | 2207 |
found ifFalse:[ |
2208 |
"/ search for a non-processor, non-process |
|
2209 |
"/ receiver in the top 10 contexts |
|
2210 |
c := con. |
|
5538 | 2211 |
1 to:10 do:[:n | |
4463 | 2212 |
|r| |
2213 |
||
2214 |
found ifFalse:[ |
|
2215 |
c notNil ifTrue:[ |
|
5538 | 2216 |
((r := c receiver) ~~ Processor and:[ r class ~~ Process ]) ifTrue:[ |
4463 | 2217 |
found := true. |
2218 |
] ifFalse:[ |
|
2219 |
c := c sender. |
|
2220 |
] |
|
2221 |
] |
|
2222 |
] |
|
2223 |
] |
|
2224 |
]. |
|
5538 | 2225 |
|
4463 | 2226 |
"/ skip, until an interesting context is |
2227 |
"/ found. |
|
2228 |
"/ this skips intermediate contexts, which lead |
|
2229 |
"/ to the sema-wait (for example, unwind blocks, |
|
2230 |
"/ delay-stuff etc.) |
|
5538 | 2231 |
found ifFalse:[ |
2232 |
c := con |
|
2233 |
]. |
|
4463 | 2234 |
skipping := true. |
5538 | 2235 |
[ skipping ] whileTrue:[ |
4463 | 2236 |
skipping := false. |
5538 | 2237 |
(c notNil and:[ c receiver == Delay or:[ c receiver class == Delay ] ]) ifTrue:[ |
4463 | 2238 |
c := c sender. |
2239 |
skipping := true. |
|
2240 |
]. |
|
5538 | 2241 |
[ |
2242 |
c notNil and:[ c receiver isBlock and:[ c selector startsWith:'value' ] ] |
|
2243 |
] whileTrue:[ |
|
4463 | 2244 |
c := c sender. |
2245 |
skipping := true. |
|
2246 |
]. |
|
5538 | 2247 |
[ |
2248 |
c notNil and:[ c receiver isBlock and:[ c selector = 'ensure:' ] ] |
|
2249 |
] whileTrue:[ |
|
4463 | 2250 |
c := c sender. |
2251 |
skipping := true. |
|
2252 |
]. |
|
5538 | 2253 |
[ |
2254 |
c notNil |
|
2255 |
and:[ c receiver == OperatingSystem and:[ c selector == #unblockInterrupts ] ] |
|
2256 |
] whileTrue:[ |
|
4463 | 2257 |
c := c sender. |
2258 |
skipping := true. |
|
2259 |
]. |
|
5538 | 2260 |
[ |
2261 |
c notNil and:[ c isBlockContext ] |
|
2262 |
] whileTrue:[ |
|
4463 | 2263 |
c := c home. |
2264 |
skipping := true. |
|
2265 |
]. |
|
2266 |
]. |
|
2267 |
c notNil ifTrue:[ |
|
5538 | 2268 |
|sel| |
2269 |
||
4463 | 2270 |
sel := c selector. |
2271 |
sel isNil ifTrue:[ |
|
2272 |
sel := '* unknown *' |
|
2273 |
]. |
|
5538 | 2274 |
^ (c receiver class name , '>>' , sel). |
4463 | 2275 |
] |
2276 |
]. |
|
4504 | 2277 |
^ '' |
4463 | 2278 |
! ! |
2279 |
||
2280 |
!ProcessMonitorV2 methodsFor:'sorting'! |
|
2281 |
||
2282 |
sortProcessListBy:instanceName |
|
2283 |
"method to sort the list of BugReport" |
|
2284 |
||
2285 |
| aSymbol isReverse cmpOp currentSortOrder| |
|
2286 |
||
2287 |
aSymbol := instanceName asSymbol. |
|
2288 |
isReverse := false. |
|
2289 |
currentSortOrder := self currentSortOrder value. |
|
2290 |
currentSortOrder isEmpty ifTrue:[ |
|
2291 |
currentSortOrder at:#column put:aSymbol. |
|
2292 |
currentSortOrder at:#reverse put:false. |
|
2293 |
] ifFalse:[ |
|
2294 |
(currentSortOrder at:#column) = aSymbol ifTrue:[ |
|
2295 |
"/ same column like before - change sort order ifReverse is true |
|
2296 |
isReverse := currentSortOrder at:#reverse. |
|
2297 |
currentSortOrder at:#reverse put:(isReverse not). |
|
2298 |
] ifFalse:[ |
|
2299 |
"/ another column - remark column |
|
2300 |
currentSortOrder at:#column put:aSymbol. |
|
2301 |
] |
|
2302 |
]. |
|
2303 |
(currentSortOrder at:#reverse) ifTrue:[ |
|
2304 |
cmpOp := #'>' |
|
2305 |
] ifFalse:[ |
|
2306 |
cmpOp := #'<' |
|
2307 |
]. |
|
2308 |
sortBlock := [:a :b | |
|
2309 |
|entry1 entry2| |
|
2310 |
||
4568
9576c0894332
Take care for nil fields when sorting
Stefan Vogel <sv@exept.de>
parents:
4565
diff
changeset
|
2311 |
entry1 := (a perform:aSymbol) ? 0. |
9576c0894332
Take care for nil fields when sorting
Stefan Vogel <sv@exept.de>
parents:
4565
diff
changeset
|
2312 |
entry2 := (b perform:aSymbol) ? 0. |
4498 | 2313 |
entry1 = entry2 ifTrue:[ |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2314 |
(a idVal < 0 and:[b idVal < 0]) ifTrue:[ |
4501 | 2315 |
"/ two dead ones (take anything which remains constant) |
2316 |
a processName ~= b processName ifTrue:[ |
|
2317 |
a processName < b processName |
|
2318 |
] ifFalse:[ |
|
2319 |
a processInstance identityHash < b processInstance identityHash |
|
2320 |
] |
|
2321 |
] ifFalse:[ |
|
2322 |
a idVal < b idVal |
|
2323 |
] |
|
4498 | 2324 |
] ifFalse:[ |
4568
9576c0894332
Take care for nil fields when sorting
Stefan Vogel <sv@exept.de>
parents:
4565
diff
changeset
|
2325 |
entry1 perform:cmpOp with:entry2 |
4498 | 2326 |
] |
4463 | 2327 |
]. |
4498 | 2328 |
self viewedColumnsChanged. |
4463 | 2329 |
! ! |
2330 |
||
2331 |
!ProcessMonitorV2 methodsFor:'update process'! |
|
2332 |
||
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2333 |
fillItemInformationIn:processItem |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2334 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2335 |
| running con aProcess| |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2336 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2337 |
aProcess := processItem processInstance. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2338 |
aProcess isNil ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2339 |
^ self. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2340 |
]. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2341 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2342 |
processItem processId:aProcess id. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2343 |
processItem idVal:aProcess id ? -1. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2344 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2345 |
processItem processGroup:(self getGroupStringFor:aProcess). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2346 |
processItem groupVal:(processItem processGroup isNumber ifTrue:[processItem processGroup] ifFalse:[-1]). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2347 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2348 |
processItem processName:aProcess name ? ''. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2349 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2350 |
running := (aProcess state == #run and:[aProcess == Processor interruptedProcess]). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2351 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2352 |
processItem processState:(aProcess state asString). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2353 |
processItem processActive:(self getActiveStringFor:aProcess running:running). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2354 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2355 |
processItem prioVal:(aProcess priority). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2356 |
processItem processPrio:(self getPrioStringFor:aProcess). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2357 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2358 |
processItem processUsedStack:aProcess usedStackSize. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2359 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2360 |
processItem processTotalStack:(self getTotalStackStringFor:aProcess). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2361 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2362 |
con := aProcess suspendedContext. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2363 |
con isNil ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2364 |
aProcess == Processor activeProcess ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2365 |
con := thisContext |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2366 |
] |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2367 |
]. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2368 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2369 |
processItem processCurrentSegment:(self getCurrentSegmentStringFor:con). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2370 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2371 |
processItem processSwitch:(aProcess numberOfStackBoundaryHits). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2372 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2373 |
processItem processWhere:(self getWhereStringFor:con running:running). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2374 |
! |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2375 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2376 |
fillItemInformationIn:processItem with:aProcess inArray:weakArrayWithProcesses atIndex:processInstanceIndexInWeakArray |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2377 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2378 |
processItem weakArrayWithProcesses:weakArrayWithProcesses. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2379 |
processItem processInstanceIndexInWeakArray:processInstanceIndexInWeakArray. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2380 |
self fillItemInformationIn:processItem |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2381 |
! |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2382 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2383 |
startUpdateProcess |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2384 |
updateBlock notNil ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2385 |
Processor addTimedBlock:updateBlock afterSeconds:self scaledUpdateContentsDelayTime. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2386 |
Processor addTimedBlock:listUpdateBlock afterSeconds:self scaledUpdateListDelayTime. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2387 |
] ifFalse:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2388 |
updateProcess := [ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2389 |
[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2390 |
|id cnt myDelay| |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2391 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2392 |
myDelay := Delay forSeconds:self scaledUpdateContentsDelayTime. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2393 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2394 |
" |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2395 |
every updateDelay (0.5), we look which process runs; |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2396 |
every half second, the status is updated. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2397 |
every listUpdateDelay (5s), the list of processes is |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2398 |
built up again |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2399 |
" |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2400 |
[true] whileTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2401 |
((self scaledUpdateListDelayTime // self scaledUpdateContentsDelayTime) max:2) - 1 timesRepeat:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2402 |
myDelay wait. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2403 |
self updateStatus:nil. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2404 |
]. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2405 |
myDelay wait. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2406 |
self updateList. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2407 |
] |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2408 |
] valueOnUnwindDo:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2409 |
updateProcess := nil |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2410 |
] |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2411 |
] forkAt:(Processor userSchedulingPriority + 1). |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2412 |
updateProcess name:'monitor [' , |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2413 |
Processor activeProcess id printString , |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2414 |
'] update'. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2415 |
" |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2416 |
raise my own priority |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2417 |
" |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2418 |
Processor activeProcess priority:(Processor userSchedulingPriority + 2) |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2419 |
]. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2420 |
! |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2421 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2422 |
updateChangedItem:oldItem newItem:newItem atIndex:index |
4498 | 2423 |
|
2424 |
| colIdx | |
|
2425 |
colIdx := 1. |
|
2426 |
||
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2427 |
oldItem weakArrayWithProcesses:newItem weakArrayWithProcesses. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2428 |
oldItem processInstanceIndexInWeakArray:newItem processInstanceIndexInWeakArray. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2429 |
|
4498 | 2430 |
"/ ID |
2431 |
oldItem processId ~= newItem processId ifTrue:[ |
|
2432 |
oldItem processId:newItem processId. |
|
2433 |
processTable invalidateRowAt:index colAt:colIdx. |
|
2434 |
]. |
|
7757 | 2435 |
|
4498 | 2436 |
"/ GROUP |
2437 |
self showGroup value ifTrue:[ |
|
2438 |
colIdx := colIdx + 1. |
|
2439 |
oldItem processGroup ~= newItem processGroup ifTrue:[ |
|
2440 |
oldItem processGroup:newItem processGroup. |
|
2441 |
processTable invalidateRowAt:index colAt:colIdx. |
|
2442 |
]. |
|
2443 |
]. |
|
7757 | 2444 |
|
4498 | 2445 |
"/ NAME |
2446 |
colIdx := colIdx + 1. |
|
2447 |
oldItem processName ~= newItem processName ifTrue:[ |
|
2448 |
oldItem processName:newItem processName. |
|
2449 |
processTable invalidateRowAt:index colAt:colIdx. |
|
2450 |
]. |
|
7757 | 2451 |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2452 |
"/ ACTIVE |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2453 |
colIdx := colIdx + 1. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2454 |
oldItem processActive ~= newItem processActive ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2455 |
oldItem processActive:newItem processActive. |
7757 | 2456 |
"/ (processTable columnAt:colIdx). |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2457 |
processTable invalidateRowAt:index colAt:colIdx. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2458 |
]. |
7757 | 2459 |
|
4498 | 2460 |
"/ STATE |
2461 |
self showState value ifTrue:[ |
|
2462 |
colIdx := colIdx + 1. |
|
2463 |
oldItem processState ~= newItem processState ifTrue:[ |
|
2464 |
oldItem processState:newItem processState. |
|
7757 | 2465 |
"/ (processTable columnAt:colIdx). |
4498 | 2466 |
processTable invalidateRowAt:index colAt:colIdx. |
2467 |
]. |
|
2468 |
]. |
|
7757 | 2469 |
|
4498 | 2470 |
"/ PRIO |
2471 |
self showPrio value ifTrue:[ |
|
2472 |
colIdx := colIdx + 1. |
|
2473 |
oldItem processPrio ~= newItem processPrio ifTrue:[ |
|
2474 |
oldItem processPrio:newItem processPrio. |
|
2475 |
processTable invalidateRowAt:index colAt:colIdx. |
|
2476 |
]. |
|
2477 |
]. |
|
7757 | 2478 |
|
4498 | 2479 |
"/ USED STACK |
2480 |
self showUsedStack value ifTrue:[ |
|
2481 |
colIdx := colIdx + 1. |
|
2482 |
oldItem processUsedStack ~= newItem processUsedStack ifTrue:[ |
|
2483 |
oldItem processUsedStack:newItem processUsedStack. |
|
2484 |
processTable invalidateRowAt:index colAt:colIdx. |
|
2485 |
]. |
|
2486 |
]. |
|
7757 | 2487 |
|
4498 | 2488 |
"/ TOTAL STACK |
2489 |
self showTotalStack value ifTrue:[ |
|
2490 |
colIdx := colIdx + 1. |
|
2491 |
oldItem processTotalStack ~= newItem processTotalStack ifTrue:[ |
|
2492 |
oldItem processTotalStack:newItem processTotalStack. |
|
2493 |
processTable invalidateRowAt:index colAt:colIdx. |
|
2494 |
]. |
|
2495 |
]. |
|
7757 | 2496 |
|
4498 | 2497 |
"/ CURRENT SEGMENT |
2498 |
self showCurrentSegment value ifTrue:[ |
|
2499 |
colIdx := colIdx + 1. |
|
2500 |
oldItem processCurrentSegment ~= newItem processCurrentSegment ifTrue:[ |
|
2501 |
oldItem processCurrentSegment:newItem processCurrentSegment. |
|
2502 |
processTable invalidateRowAt:index colAt:colIdx. |
|
2503 |
]. |
|
2504 |
]. |
|
7757 | 2505 |
|
4498 | 2506 |
"/ Switch |
2507 |
self showSwitch value ifTrue:[ |
|
2508 |
colIdx := colIdx + 1. |
|
2509 |
oldItem processSwitch ~= newItem processSwitch ifTrue:[ |
|
2510 |
oldItem processSwitch:newItem processSwitch. |
|
2511 |
processTable invalidateRowAt:index colAt:colIdx. |
|
2512 |
]. |
|
2513 |
]. |
|
7757 | 2514 |
|
4498 | 2515 |
"/ WHERE |
2516 |
self showWhere value ifTrue:[ |
|
2517 |
colIdx := colIdx + 1. |
|
2518 |
oldItem processWhere ~= newItem processWhere ifTrue:[ |
|
2519 |
oldItem processWhere:newItem processWhere. |
|
2520 |
processTable invalidateRowAt:index colAt:colIdx. |
|
2521 |
]. |
|
2522 |
]. |
|
7757 | 2523 |
|
2524 |
"Modified: / 19-03-2007 / 10:28:27 / cg" |
|
4498 | 2525 |
! |
2526 |
||
2527 |
updateList |
|
2528 |
||
2529 |
|newList| |
|
2530 |
||
2531 |
processTable shown ifTrue:[ |
|
2532 |
newList := self getProcessList. |
|
4570
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
2533 |
visibleBlock notNil ifTrue:[ |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
2534 |
newList := newList select:[:aProc|visibleBlock value:aProc] |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
2535 |
]. |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2536 |
self updateStatus:newList. |
4498 | 2537 |
]. |
2538 |
updateBlock notNil ifTrue:[ |
|
2539 |
Processor removeTimedBlock:listUpdateBlock. |
|
2540 |
Processor addTimedBlock:listUpdateBlock afterSeconds:self scaledUpdateListDelayTime. |
|
2541 |
]. |
|
2542 |
! |
|
2543 |
||
2544 |
updateStatus:newProcessList |
|
2545 |
||
2546 |
|startTime endTime deltaT| |
|
2547 |
||
2548 |
||
5783
5ce97d85326d
Rename AbsoluteTime to Timestamp
Stefan Vogel <sv@exept.de>
parents:
5764
diff
changeset
|
2549 |
startTime := Timestamp now. |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2550 |
updateSema critical:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2551 |
self updateTable:newProcessList. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2552 |
]. |
4498 | 2553 |
|
5783
5ce97d85326d
Rename AbsoluteTime to Timestamp
Stefan Vogel <sv@exept.de>
parents:
5764
diff
changeset
|
2554 |
endTime := Timestamp now. |
4498 | 2555 |
deltaT := (endTime millisecondDeltaFrom:startTime) / 1000.0. |
2556 |
"/ Transcript show:deltaT; show:' ' ; showCR:(self scaledUpdateContentsDelayTime / 10.0). |
|
2557 |
deltaT > (self scaledUpdateContentsDelayTime / 5) ifTrue:[ |
|
2558 |
"/ the update took longer than 20% - make delay longer, to reduce cpu load. |
|
2559 |
self updateContentsDelayTime value:(self scaledUpdateContentsDelayTime * 2). |
|
2560 |
"/ Transcript show:'+++ '; showCR:self scaledUpdateContentsDelayTime. |
|
2561 |
] ifFalse:[ |
|
4570
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
2562 |
"/ self scaledUpdateContentsDelayTime > 0.5 ifTrue:[ |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
2563 |
"/ deltaT < (self scaledUpdateContentsDelayTime / 20) ifTrue:[ |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
2564 |
"/ "/ the update took less than 5% - make delay smaller for better animation. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
2565 |
"/ self updateContentsDelayTime value:((self scaledUpdateContentsDelayTime / 2) max:0.5). |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
2566 |
"/ "/ Transcript show:'--- ';showCR:self scaledUpdateContentsDelayTime. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
2567 |
"/ ]. |
3dc36c259ca1
show dead processes have to be enabled after fix remove dead processes
penk
parents:
4568
diff
changeset
|
2568 |
"/ ]. |
4498 | 2569 |
]. |
2570 |
updateBlock notNil ifTrue:[ |
|
2571 |
Processor removeTimedBlock:updateBlock. |
|
2572 |
Processor addTimedBlock:updateBlock afterSeconds:self scaledUpdateContentsDelayTime. |
|
2573 |
] |
|
2574 |
! |
|
2575 |
||
2576 |
updateTable:newProcessList |
|
6042 | 2577 |
|oldSelection newList sel diff weakProcessList| |
4498 | 2578 |
|
2579 |
processTable shown ifTrue:[ |
|
5783
5ce97d85326d
Rename AbsoluteTime to Timestamp
Stefan Vogel <sv@exept.de>
parents:
5764
diff
changeset
|
2580 |
"/ Transcript showCR:('update the table', Timestamp now printString, 'with new list:', newProcessList notNil asString). |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2581 |
sel := self selectedProcesses value. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2582 |
sel notNil ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2583 |
oldSelection := OrderedCollection new. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2584 |
sel do:[:proItem| |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2585 |
proItem processInstance notNil ifTrue:[ |
4498 | 2586 |
oldSelection add:(proItem processInstance) |
2587 |
]. |
|
2588 |
]. |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2589 |
]. |
4498 | 2590 |
"/ Transcript showCR:'oldSelection on catch in updateTable: ', (oldSelection isEmptyOrNil ifTrue:['nil'] ifFalse:[oldSelection first printString]). |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2591 |
newProcessList isNil ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2592 |
newList := OrderedCollection new. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2593 |
processList do:[:oldItem | |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2594 |
| newItem | |
6042 | 2595 |
(self showDead value |
2596 |
or:[oldItem processInstance notNil |
|
2597 |
and:[oldItem processInstance isDead not]]) ifTrue:[ |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2598 |
newItem := oldItem copy. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2599 |
self fillItemInformationIn:newItem. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2600 |
newList add:newItem. |
4498 | 2601 |
] |
2602 |
]. |
|
6042 | 2603 |
] ifFalse:[ |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2604 |
"/ remove dead processes if not shown |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2605 |
newList := OrderedCollection new. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2606 |
weakProcessList := WeakArray withAll:newProcessList. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2607 |
weakProcessList keysAndValuesDo:[:indexInWeakArray :procOrNilOrZero | |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2608 |
"/ in a weakarray, dead entries are 0 |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2609 |
(procOrNilOrZero notNil and:[procOrNilOrZero ~~ 0]) ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2610 |
(procOrNilOrZero isDead not or:[self showDead value]) ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2611 |
| processItem | |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2612 |
processItem := ProcessItem new. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2613 |
self fillItemInformationIn:processItem with:procOrNilOrZero inArray:weakProcessList atIndex:indexInWeakArray. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2614 |
newList add:processItem. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2615 |
] |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2616 |
] |
4505 | 2617 |
]. |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2618 |
]. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2619 |
newList sort:self sortBlock. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2620 |
newList doWithIndex:[:newItem :index| |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2621 |
| oldItem | |
6042 | 2622 |
oldItem := processList at:index ifAbsent:nil. |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2623 |
oldItem isNil ifTrue:[ |
6042 | 2624 |
processList add:newItem beforeIndex:index |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2625 |
] ifFalse:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2626 |
self updateChangedItem:oldItem newItem:newItem atIndex:index |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2627 |
] |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2628 |
]. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2629 |
diff := processList size - newList size. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2630 |
diff > 0 ifTrue:[ |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2631 |
processList removeLast:diff |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2632 |
]. |
4498 | 2633 |
"/ Transcript showCR:'oldSelection on set in updateTable: ', (oldSelection isEmptyOrNil ifTrue:['nil'] ifFalse:[oldSelection first printString]). |
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2634 |
self changeSelectionToProcesses:oldSelection. |
4498 | 2635 |
]. |
4463 | 2636 |
! ! |
2637 |
||
2638 |
!ProcessMonitorV2::ProcessItem methodsFor:'accessing'! |
|
2639 |
||
2640 |
groupVal |
|
2641 |
"return the value of the instance variable 'groupVal' (automatically generated)" |
|
2642 |
||
2643 |
^ groupVal |
|
2644 |
! |
|
2645 |
||
2646 |
groupVal:something |
|
2647 |
"set the value of the instance variable 'groupVal' (automatically generated)" |
|
2648 |
||
2649 |
groupVal := something. |
|
2650 |
! |
|
2651 |
||
2652 |
idVal |
|
2653 |
"return the value of the instance variable 'idVal' (automatically generated)" |
|
2654 |
||
2655 |
^ idVal |
|
2656 |
! |
|
2657 |
||
2658 |
idVal:something |
|
2659 |
"set the value of the instance variable 'idVal' (automatically generated)" |
|
2660 |
||
2661 |
idVal := something. |
|
2662 |
! |
|
2663 |
||
2664 |
prioVal |
|
2665 |
"return the value of the instance variable 'prioVal' (automatically generated)" |
|
2666 |
||
2667 |
^ prioVal |
|
2668 |
! |
|
2669 |
||
2670 |
prioVal:something |
|
2671 |
"set the value of the instance variable 'prioVal' (automatically generated)" |
|
2672 |
||
2673 |
prioVal := something. |
|
2674 |
! |
|
2675 |
||
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2676 |
processActive |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2677 |
"return the value of the instance variable 'processActive' (automatically generated)" |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2678 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2679 |
^ processActive |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2680 |
! |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2681 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2682 |
processActive:something |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2683 |
"set the value of the instance variable 'processActive' (automatically generated)" |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2684 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2685 |
processActive := something. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2686 |
! |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2687 |
|
4463 | 2688 |
processCurrentSegment |
2689 |
"return the value of the instance variable 'processCurrentSegment' (automatically generated)" |
|
2690 |
||
2691 |
^ processCurrentSegment |
|
2692 |
! |
|
2693 |
||
2694 |
processCurrentSegment:something |
|
2695 |
"set the value of the instance variable 'processCurrentSegment' (automatically generated)" |
|
2696 |
||
2697 |
processCurrentSegment := something. |
|
2698 |
! |
|
2699 |
||
2700 |
processGroup |
|
2701 |
"return the value of the instance variable 'processGroup' (automatically generated)" |
|
2702 |
||
2703 |
^ processGroup |
|
2704 |
! |
|
2705 |
||
2706 |
processGroup:something |
|
2707 |
"set the value of the instance variable 'processGroup' (automatically generated)" |
|
2708 |
||
2709 |
processGroup := something. |
|
2710 |
! |
|
2711 |
||
2712 |
processId |
|
2713 |
"return the value of the instance variable 'processId' (automatically generated)" |
|
2714 |
||
2715 |
^ processId |
|
2716 |
! |
|
2717 |
||
2718 |
processId:something |
|
2719 |
"set the value of the instance variable 'processId' (automatically generated)" |
|
2720 |
||
2721 |
processId := something. |
|
2722 |
! |
|
2723 |
||
2724 |
processInstance |
|
2725 |
"return the value of the instance variable 'processInstance' (automatically generated)" |
|
2726 |
||
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2727 |
|procOrNilOrZero| |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2728 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2729 |
procOrNilOrZero := weakArrayWithProcesses at:processInstanceIndexInWeakArray. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2730 |
procOrNilOrZero == 0 ifTrue:[^ nil]. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2731 |
^ procOrNilOrZero |
4463 | 2732 |
! |
2733 |
||
2734 |
processInstance:something |
|
2735 |
"set the value of the instance variable 'processInstance' (automatically generated)" |
|
2736 |
||
2737 |
processInstance := something. |
|
2738 |
! |
|
2739 |
||
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2740 |
processInstanceIndexInWeakArray |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2741 |
"return the value of the instance variable 'processInstanceIndexInWeakArray' (automatically generated)" |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2742 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2743 |
^ processInstanceIndexInWeakArray |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2744 |
! |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2745 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2746 |
processInstanceIndexInWeakArray:something |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2747 |
"set the value of the instance variable 'processInstanceIndexInWeakArray' (automatically generated)" |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2748 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2749 |
processInstanceIndexInWeakArray := something. |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2750 |
! |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2751 |
|
4463 | 2752 |
processName |
2753 |
"return the value of the instance variable 'processName' (automatically generated)" |
|
2754 |
||
2755 |
^ processName |
|
2756 |
! |
|
2757 |
||
2758 |
processName:something |
|
2759 |
"set the value of the instance variable 'processName' (automatically generated)" |
|
2760 |
||
2761 |
processName := something. |
|
2762 |
! |
|
2763 |
||
2764 |
processPrio |
|
2765 |
"return the value of the instance variable 'processPrio' (automatically generated)" |
|
2766 |
||
2767 |
^ processPrio |
|
2768 |
! |
|
2769 |
||
2770 |
processPrio:something |
|
2771 |
"set the value of the instance variable 'processPrio' (automatically generated)" |
|
2772 |
||
2773 |
processPrio := something. |
|
2774 |
! |
|
2775 |
||
2776 |
processState |
|
2777 |
"return the value of the instance variable 'processState' (automatically generated)" |
|
2778 |
||
2779 |
^ processState |
|
2780 |
! |
|
2781 |
||
2782 |
processState:something |
|
2783 |
"set the value of the instance variable 'processState' (automatically generated)" |
|
2784 |
||
2785 |
processState := something. |
|
2786 |
! |
|
2787 |
||
2788 |
processSwitch |
|
2789 |
"return the value of the instance variable 'processSwitch' (automatically generated)" |
|
2790 |
||
2791 |
^ processSwitch |
|
2792 |
! |
|
2793 |
||
2794 |
processSwitch:something |
|
2795 |
"set the value of the instance variable 'processSwitch' (automatically generated)" |
|
2796 |
||
2797 |
processSwitch := something. |
|
2798 |
! |
|
2799 |
||
2800 |
processTotalStack |
|
2801 |
"return the value of the instance variable 'processTotalStack' (automatically generated)" |
|
2802 |
||
2803 |
^ processTotalStack |
|
2804 |
! |
|
2805 |
||
2806 |
processTotalStack:something |
|
2807 |
"set the value of the instance variable 'processTotalStack' (automatically generated)" |
|
2808 |
||
2809 |
processTotalStack := something. |
|
2810 |
! |
|
2811 |
||
2812 |
processUsedStack |
|
2813 |
"return the value of the instance variable 'processUsedStack' (automatically generated)" |
|
2814 |
||
2815 |
^ processUsedStack |
|
2816 |
! |
|
2817 |
||
2818 |
processUsedStack:something |
|
2819 |
"set the value of the instance variable 'processUsedStack' (automatically generated)" |
|
2820 |
||
2821 |
processUsedStack := something. |
|
2822 |
! |
|
2823 |
||
2824 |
processWhere |
|
2825 |
"return the value of the instance variable 'processWhere' (automatically generated)" |
|
2826 |
||
2827 |
^ processWhere |
|
2828 |
! |
|
2829 |
||
2830 |
processWhere:something |
|
2831 |
"set the value of the instance variable 'processWhere' (automatically generated)" |
|
2832 |
||
2833 |
processWhere := something. |
|
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2834 |
! |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2835 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2836 |
weakArrayWithProcesses |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2837 |
"return the value of the instance variable 'weakArrayWithProcesses' (automatically generated)" |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2838 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2839 |
^ weakArrayWithProcesses |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2840 |
! |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2841 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2842 |
weakArrayWithProcesses:something |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2843 |
"set the value of the instance variable 'weakArrayWithProcesses' (automatically generated)" |
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2844 |
|
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2845 |
weakArrayWithProcesses := something. |
4463 | 2846 |
! ! |
2847 |
||
4498 | 2848 |
!ProcessMonitorV2::ProcessItem methodsFor:'printing'! |
2849 |
||
2850 |
displayString |
|
2851 |
||
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2852 |
^ self printString |
4498 | 2853 |
! |
2854 |
||
2855 |
printString |
|
2856 |
||
4576
4423626f9dfe
now the dead processes are gone if collect garbage will pressed in
penk
parents:
4570
diff
changeset
|
2857 |
^ self processName ? '' , '[', self processId ? '' asString, ']' |
4498 | 2858 |
! ! |
2859 |
||
4463 | 2860 |
!ProcessMonitorV2 class methodsFor:'documentation'! |
2861 |
||
2862 |
version |
|
7757 | 2863 |
^ '$Header: /cvs/stx/stx/libtool/ProcessMonitorV2.st,v 1.34 2007-03-19 10:17:57 cg Exp $' |
4463 | 2864 |
! ! |