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