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