author | Claus Gittinger <cg@exept.de> |
Fri, 18 Oct 1996 14:37:51 +0200 | |
changeset 775 | f741dc4afe19 |
parent 771 | 5cd10b4845f3 |
child 817 | a2c25d3e8186 |
permissions | -rw-r--r-- |
52 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
93 | 13 |
SimpleView subclass:#ProcessMonitor |
315
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
14 |
instanceVariableNames:'listView processes listUpdateDelay updateDelay updateBlock |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
15 |
listUpdateBlock updateProcess hideDead runColor suspendedColor |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
16 |
waitColor cpuUsages showDetail' |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
17 |
classVariableNames:'' |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
18 |
poolDictionaries:'' |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
19 |
category:'Interface-Tools' |
19 | 20 |
! |
21 |
||
771
5cd10b4845f3
oops - catching the terminateSignal is no good idea
Claus Gittinger <cg@exept.de>
parents:
682
diff
changeset
|
22 |
!ProcessMonitor class methodsFor:'documentation'! |
52 | 23 |
|
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
27 |
All Rights Reserved |
|
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
40 |
This view shows smalltalks (light-weight) processes, and also offers |
|
41 |
a popup menu for various useful operations on them. |
|
42 |
Especially 'debug' is useful, to see what a process is currently |
|
43 |
doing. |
|
85 | 44 |
|
52 | 45 |
The information shown is: |
90 | 46 |
id - the numeric id of the process |
47 |
name - the name (if any) of the process |
|
48 |
(the name has no semantic meaning; it exists for the processMonitor only) |
|
49 |
state - what is it doing; |
|
50 |
wait - waiting on a semaphore |
|
51 |
eventWait - waiting on a view-event semaphore |
|
52 |
ioWait - waiting on an io-semaphore |
|
53 |
timeWait - waiting for a time-semaphore |
|
54 |
run - run, but currently not scheduled |
|
55 |
active - really running (this info is useless, since at |
|
56 |
update time, its always the update process which is |
|
57 |
running) |
|
58 |
suspended - suspended; not waiting on a semaphore |
|
59 |
light - not yet started (i.e. has no stack yet) |
|
52 | 60 |
|
90 | 61 |
prio - the processes priority (1..30) |
62 |
usedStack - the current stack use |
|
63 |
totalStack - the stack currently allocated (i.e. the maximum ever needed) |
|
52 | 64 |
" |
65 |
! ! |
|
66 |
||
771
5cd10b4845f3
oops - catching the terminateSignal is no good idea
Claus Gittinger <cg@exept.de>
parents:
682
diff
changeset
|
67 |
!ProcessMonitor class methodsFor:'defaults'! |
19 | 68 |
|
56 | 69 |
defaultIcon |
70 |
|i| |
|
19 | 71 |
|
93 | 72 |
i := Image fromFile:'ProcMon.xbm'. |
56 | 73 |
i notNil ifTrue:[^ i]. |
85 | 74 |
^ StandardSystemView defaultIcon |
208 | 75 |
! |
76 |
||
77 |
defaultLabel |
|
78 |
^ 'Process Monitor' |
|
85 | 79 |
! ! |
80 |
||
771
5cd10b4845f3
oops - catching the terminateSignal is no good idea
Claus Gittinger <cg@exept.de>
parents:
682
diff
changeset
|
81 |
!ProcessMonitor class methodsFor:'startup'! |
85 | 82 |
|
83 |
open |
|
84 |
|top monitor| |
|
85 |
||
86 |
top := StandardSystemView new. |
|
87 |
monitor := self origin:0.0@0.0 corner:1.0@1.0 in:top. |
|
105 | 88 |
top extent:monitor preferredExtent. |
85 | 89 |
top label:self defaultLabel. |
90 |
top icon:self defaultIcon. |
|
91 |
top open |
|
92 |
||
93 |
" |
|
94 |
ProcessMonitor open |
|
95 |
" |
|
96 |
! ! |
|
97 |
||
143 | 98 |
!ProcessMonitor methodsFor:'destroying'! |
99 |
||
100 |
destroy |
|
101 |
updateBlock notNil ifTrue:[ |
|
102 |
Processor removeTimedBlock:updateBlock. |
|
103 |
Processor removeTimedBlock:listUpdateBlock. |
|
104 |
] ifFalse:[ |
|
105 |
updateProcess notNil ifTrue:[updateProcess terminate] |
|
106 |
]. |
|
107 |
super destroy |
|
108 |
! ! |
|
109 |
||
85 | 110 |
!ProcessMonitor methodsFor:'drawing'! |
111 |
||
112 |
titleLine |
|
109 | 113 |
showDetail ifTrue:[ |
682 | 114 |
^ 'id group name state prio usedStack totalStack current-segment switch where'. |
109 | 115 |
]. |
663
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
116 |
^ 'id group name state prio usedStack where'. |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
117 |
|
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
118 |
"Modified: 3.7.1996 / 13:57:38 / stefan" |
682 | 119 |
"Modified: 24.7.1996 / 17:21:15 / cg" |
85 | 120 |
! |
121 |
||
122 |
updateList |
|
123 |
"update list of processes" |
|
124 |
||
125 |
|newList| |
|
126 |
||
127 |
shown ifTrue:[ |
|
208 | 128 |
showDetail ifTrue:[ |
129 |
newList := Process allInstances asOrderedCollection. |
|
130 |
] ifFalse:[ |
|
131 |
newList := ProcessorScheduler knownProcesses asOrderedCollection. |
|
132 |
]. |
|
85 | 133 |
|
208 | 134 |
"sort by id - take care of nil ids of dead processes" |
135 |
newList sort:[:p1 :p2 | |
|
136 |
|id1 id2| |
|
85 | 137 |
|
208 | 138 |
(p1 isNil or:[(id1 := p1 id) isNil]) |
139 |
ifTrue:[true] |
|
140 |
ifFalse:[ |
|
141 |
(p2 isNil or:[(id2 := p2 id) isNil]) |
|
142 |
ifTrue:[false] |
|
143 |
ifFalse:[id1 < id2] |
|
144 |
] |
|
145 |
]. |
|
146 |
newList ~= processes ifTrue:[ |
|
147 |
processes := WeakArray withAll:newList. |
|
148 |
self updateStatus |
|
149 |
]. |
|
85 | 150 |
]. |
151 |
updateBlock notNil ifTrue:[ |
|
208 | 152 |
Processor removeTimedBlock:listUpdateBlock. |
153 |
Processor addTimedBlock:listUpdateBlock afterSeconds:listUpdateDelay |
|
85 | 154 |
]. |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
155 |
|
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
156 |
"Modified: 3.7.1996 / 13:37:29 / stefan" |
85 | 157 |
! |
158 |
||
159 |
updateStatus |
|
160 |
"update status display of processes" |
|
161 |
||
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
162 |
|oldList list line dIndex interrupted |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
163 |
aProcess nm st n found running sel space| |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
164 |
|
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
165 |
space := Character space. |
85 | 166 |
|
167 |
shown ifTrue:[ |
|
208 | 168 |
oldList := listView list. |
169 |
processes notNil ifTrue:[ |
|
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
170 |
list := OrderedCollection new:(processes size + 2). |
208 | 171 |
list add:self titleLine. |
172 |
list add:(String new:self titleLine size withAll:$-). |
|
85 | 173 |
|
208 | 174 |
interrupted := Processor interruptedProcess. |
85 | 175 |
|
208 | 176 |
dIndex := 1. |
177 |
1 to:processes size do:[:index | |
|
680 | 178 |
|con c totalStack sender id gId| |
85 | 179 |
|
208 | 180 |
aProcess := processes at:index. |
775
f741dc4afe19
changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents:
771
diff
changeset
|
181 |
(aProcess notNil |
f741dc4afe19
changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents:
771
diff
changeset
|
182 |
and:[aProcess ~~ 0]) ifTrue:[ |
680 | 183 |
((id := aProcess id) notNil or:[hideDead not]) ifTrue:[ |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
184 |
line := WriteStream on:(String new:200). |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
185 |
|
680 | 186 |
id printOn:line paddedTo:5. |
187 |
gId := aProcess processGroupId. |
|
188 |
gId == id ifTrue:[ |
|
189 |
"/ a group leader |
|
190 |
'- ' printOn:line. |
|
191 |
] ifFalse:[ |
|
192 |
gId printOn:line paddedTo:5. |
|
193 |
]. |
|
663
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
194 |
|
208 | 195 |
(nm := aProcess name) isNil ifFalse:[ |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
196 |
nm := nm printStringPaddedTo:28. |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
197 |
nm size >= 29 ifTrue:[ |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
198 |
nm := (nm contractTo:28). |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
199 |
]. |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
200 |
line nextPutAll:nm; nextPut:space. |
208 | 201 |
] ifTrue:[ |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
202 |
line next:29 put:space. |
208 | 203 |
]. |
680 | 204 |
"/ n := cpuUsages at:(id) ifAbsent:[0]. |
85 | 205 |
"/ n ~~ 0 ifTrue:[ |
206 |
"/ line := line , ((n * 4) printStringLeftPaddedTo:3) |
|
207 |
"/ ] ifFalse:[ |
|
208 |
"/ line := line , ' ' |
|
209 |
"/ ]. |
|
208 | 210 |
st := aProcess state. |
211 |
(st == #run |
|
212 |
and:[aProcess == interrupted]) ifTrue:[ |
|
213 |
c := ' *'. |
|
322
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
214 |
running := true. |
208 | 215 |
] ifFalse:[ |
216 |
c := ' '. |
|
322
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
217 |
running := false. |
208 | 218 |
]. |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
219 |
line nextPutAll:c; nextPutAll:(st printStringPaddedTo:9). |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
220 |
line nextPutAll:(aProcess priority printStringLeftPaddedTo:3). |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
221 |
line nextPutAll:(aProcess usedStackSize printStringLeftPaddedTo:11). |
143 | 222 |
|
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
223 |
con := aProcess suspendedContext. |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
224 |
con isNil ifTrue:[ |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
225 |
aProcess == Processor activeProcess ifTrue:[ |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
226 |
con := thisContext |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
227 |
] |
322
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
228 |
]. |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
229 |
|
208 | 230 |
showDetail ifTrue:[ |
680 | 231 |
id == 0 ifTrue:[ |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
232 |
line nextPutAll:('unlimited' leftPaddedTo:13). |
208 | 233 |
] ifFalse:[ |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
234 |
n := aProcess numberOfStackSegments. |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
235 |
line nextPutAll:(aProcess totalStackSize printStringLeftPaddedTo:10). |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
236 |
line nextPut:$( ; nextPutAll:n printString; nextPut:$). |
208 | 237 |
]. |
238 |
con notNil ifTrue:[ |
|
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
239 |
line nextPutAll:' '. |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
240 |
line nextPutAll:(((ObjectMemory addressOf:con) printStringRadix:16) leftPaddedTo:8 with:$0). |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
241 |
line nextPutAll:' .. '. |
208 | 242 |
c := con. |
243 |
[(sender := c sender) notNil] whileTrue:[ |
|
244 |
c := sender |
|
245 |
]. |
|
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
246 |
line nextPutAll:(((ObjectMemory addressOf:c) printStringRadix:16) leftPaddedTo:8 with:$0). |
208 | 247 |
] ifFalse:[ |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
248 |
line next:20 put:space. |
208 | 249 |
]. |
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
250 |
line nextPut:space. |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
251 |
line nextPutAll:(aProcess numberOfStackBoundaryHits printStringLeftPaddedTo:6). |
208 | 252 |
]. |
143 | 253 |
|
208 | 254 |
con notNil ifTrue:[ |
255 |
c := con. |
|
413
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
256 |
found := false. |
322
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
257 |
running ifFalse:[ |
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
258 |
"/ search for a semaphore-wait in the top 10 contexts |
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
259 |
|
208 | 260 |
1 to:10 do:[:n | |
261 |
found ifFalse:[ |
|
262 |
c notNil ifTrue:[ |
|
409
86125c414826
dont send #isMemberOf: to the receiver (could be nil-subclass)
Claus Gittinger <cg@exept.de>
parents:
322
diff
changeset
|
263 |
(c receiver class == Semaphore) ifTrue:[ |
322
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
264 |
c selector == #wait ifTrue:[ |
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
265 |
found := true. |
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
266 |
] |
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
267 |
]. |
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
268 |
c := c sender. |
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
269 |
] |
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
270 |
] |
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
271 |
]. |
413
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
272 |
]. |
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
273 |
found ifFalse:[ |
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
274 |
"/ search for a non-processor receiver in the top 10 contexts |
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
275 |
|
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
276 |
c := con. |
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
277 |
1 to:10 do:[:n | |
428
1c7406f57591
skip Process contexts in display
Claus Gittinger <cg@exept.de>
parents:
423
diff
changeset
|
278 |
|r| |
1c7406f57591
skip Process contexts in display
Claus Gittinger <cg@exept.de>
parents:
423
diff
changeset
|
279 |
|
413
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
280 |
found ifFalse:[ |
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
281 |
c notNil ifTrue:[ |
428
1c7406f57591
skip Process contexts in display
Claus Gittinger <cg@exept.de>
parents:
423
diff
changeset
|
282 |
((r := c receiver) ~~ Processor |
1c7406f57591
skip Process contexts in display
Claus Gittinger <cg@exept.de>
parents:
423
diff
changeset
|
283 |
and:[r class ~~ Process]) ifTrue:[ |
413
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
284 |
found := true. |
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
285 |
] ifFalse:[ |
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
286 |
c := c sender. |
208 | 287 |
] |
288 |
] |
|
289 |
] |
|
413
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
290 |
] |
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
291 |
]. |
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
292 |
found ifFalse:[ |
715a6a18f825
better display of running processes context
Claus Gittinger <cg@exept.de>
parents:
409
diff
changeset
|
293 |
c := con |
208 | 294 |
]. |
322
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
295 |
|
208 | 296 |
[c notNil and:[c isBlockContext]] whileTrue:[ |
297 |
c := c home |
|
298 |
]. |
|
299 |
c notNil ifTrue:[ |
|
517 | 300 |
sel := c selector. |
301 |
sel isNil ifTrue:[ |
|
302 |
sel := '* unknown *' |
|
303 |
]. |
|
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
304 |
line nextPutAll:' '. |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
305 |
line nextPutAll:c receiver class name. |
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
306 |
line nextPutAll:'>>'; nextPutAll:sel. |
208 | 307 |
] |
308 |
]. |
|
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
309 |
list add:line contents. |
208 | 310 |
processes at:dIndex put:aProcess. |
311 |
dIndex := dIndex + 1 |
|
312 |
] |
|
313 |
]. |
|
314 |
]. |
|
315 |
dIndex to:processes size do:[:index | |
|
316 |
processes at:index put:nil |
|
317 |
] |
|
318 |
]. |
|
319 |
"avoid flicker" |
|
320 |
(oldList notNil and:[oldList size == list size]) ifTrue:[ |
|
321 |
list keysAndValuesDo:[:idx :entry | |
|
322 |
(oldList at:idx) ~= entry ifTrue:[ |
|
323 |
listView at:idx put:entry |
|
324 |
] |
|
325 |
] |
|
326 |
] ifFalse:[ |
|
327 |
listView setList:list. |
|
328 |
"the first two entries cannot be selected" |
|
329 |
listView attributeAt:1 put:#disabled. |
|
330 |
listView attributeAt:2 put:#disabled. |
|
314
728eab568865
Flush output when updating display.
Stefan Vogel <sv@exept.de>
parents:
208
diff
changeset
|
331 |
]. |
322
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
332 |
listView flush |
85 | 333 |
]. |
334 |
updateBlock notNil ifTrue:[ |
|
208 | 335 |
Processor removeTimedBlock:updateBlock. |
336 |
Processor addTimedBlock:updateBlock afterSeconds:updateDelay |
|
85 | 337 |
] |
322
e3ccd5e431df
fixed context display (dont search for suspending context in running processes)
Claus Gittinger <cg@exept.de>
parents:
315
diff
changeset
|
338 |
|
656
3a625e4aa73f
Use a Stream to construct lines.
Stefan Vogel <sv@exept.de>
parents:
619
diff
changeset
|
339 |
"Modified: 3.7.1996 / 13:56:01 / stefan" |
680 | 340 |
"Modified: 18.7.1996 / 20:19:59 / cg" |
85 | 341 |
! |
342 |
||
343 |
updateView |
|
344 |
self updateList. |
|
345 |
self updateStatus |
|
19 | 346 |
! ! |
347 |
||
143 | 348 |
!ProcessMonitor methodsFor:'events'! |
349 |
||
208 | 350 |
canHandle:key |
351 |
^ key == #InspectIt |
|
352 |
! |
|
353 |
||
143 | 354 |
keyPress:key x:x y:y |
355 |
<resource: #keyboard ( #InspectIt ) > |
|
356 |
||
357 |
key == #InspectIt ifTrue:[ |
|
358 |
^ self inspectProcess. |
|
359 |
]. |
|
360 |
^ super keyPress:key x:x y:y |
|
361 |
! ! |
|
362 |
||
19 | 363 |
!ProcessMonitor methodsFor:'initialization'! |
364 |
||
365 |
initialize |
|
107 | 366 |
|v| |
19 | 367 |
|
368 |
super initialize. |
|
369 |
||
45 | 370 |
hideDead := true. |
109 | 371 |
showDetail := Smalltalk at:#SystemDebugging ifAbsent:false. |
45 | 372 |
|
110 | 373 |
v := HVScrollableView for:SelectionInListView miniScrollerH:true in:self. |
19 | 374 |
v origin:0.0@0.0 corner:1.0@1.0. |
85 | 375 |
|
376 |
"/ self extent:(font widthOf:self titleLine) + v scrollBar width @ 100. |
|
377 |
||
19 | 378 |
listView := v scrolledView. |
379 |
listView font:font. |
|
98 | 380 |
listView menuHolder:self; menuPerformer:self; menuMessage:#processMenu. |
45 | 381 |
|
19 | 382 |
listView multipleSelectOk:true. |
97 | 383 |
listView delegate:(KeyboardForwarder toView:self). |
423 | 384 |
listView doubleClickAction:[:line | self debugProcess]. |
19 | 385 |
|
386 |
updateDelay := 0.5. |
|
387 |
listUpdateDelay := 5. |
|
45 | 388 |
|
315
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
389 |
"/ event mode is no longer used; |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
390 |
"/ this event support may vanish |
478 | 391 |
Processor isPureEventDriven ifTrue:[ |
315
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
392 |
updateBlock := [self updateStatus]. |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
393 |
listUpdateBlock := [self updateList]. |
19 | 394 |
]. |
45 | 395 |
|
19 | 396 |
device hasColors ifTrue:[ |
315
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
397 |
runColor := Color green. |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
398 |
suspendedColor := Color yellow. |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
399 |
waitColor := Color red. |
19 | 400 |
] ifFalse:[ |
315
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
401 |
runColor := suspendedColor := waitColor := Color black |
19 | 402 |
] |
403 |
||
45 | 404 |
" |
405 |
ProcessMonitor open |
|
406 |
" |
|
315
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
407 |
|
478 | 408 |
"Modified: 13.4.1996 / 20:34:25 / cg" |
19 | 409 |
! |
410 |
||
85 | 411 |
mapped |
412 |
super mapped. |
|
413 |
self updateStatus. |
|
414 |
self updateList. |
|
415 |
! |
|
416 |
||
208 | 417 |
realize |
418 |
super realize. |
|
419 |
waitColor := waitColor on:device. |
|
420 |
runColor := runColor on:device. |
|
421 |
suspendedColor := suspendedColor on:device. |
|
422 |
||
423 |
self startUpdateProcess. |
|
424 |
! |
|
425 |
||
315
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
426 |
reinitialize |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
427 |
updateProcess := nil. |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
428 |
super reinitialize. |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
429 |
self startUpdateProcess. |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
430 |
|
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
431 |
"Created: 22.12.1995 / 22:48:37 / cg" |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
432 |
"Modified: 22.12.1995 / 22:51:14 / cg" |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
433 |
! |
8a86faf847d1
create a new updateProcess when restarted
Claus Gittinger <cg@exept.de>
parents:
314
diff
changeset
|
434 |
|
93 | 435 |
startUpdateProcess |
19 | 436 |
updateBlock notNil ifTrue:[ |
619 | 437 |
Processor addTimedBlock:updateBlock afterSeconds:updateDelay. |
438 |
Processor addTimedBlock:listUpdateBlock afterSeconds:listUpdateDelay. |
|
19 | 439 |
] ifFalse:[ |
619 | 440 |
updateProcess := [ |
771
5cd10b4845f3
oops - catching the terminateSignal is no good idea
Claus Gittinger <cg@exept.de>
parents:
682
diff
changeset
|
441 |
[ |
619 | 442 |
|id cnt| |
56 | 443 |
|
619 | 444 |
" |
445 |
every 20ms, we look which process runs; |
|
446 |
every half second, the status is updated. |
|
447 |
every 5 seconds, the list of processes is |
|
448 |
built up again |
|
449 |
" |
|
450 |
[true] whileTrue:[ |
|
451 |
1 to:9 do:[:i | |
|
85 | 452 |
"/ cpuUsages := IdentityDictionary new. |
453 |
"/ 1 to:25 do:[:i | |
|
454 |
"/ (Delay forSeconds:0.02) wait. |
|
455 |
"/ id := Processor interruptedProcess id. |
|
456 |
"/ cnt := cpuUsages at:id ifAbsent:[0]. |
|
457 |
"/ cpuUsages at:id put:cnt + 1. |
|
458 |
"/ ]. |
|
619 | 459 |
Delay waitForSeconds:0.5. |
460 |
self updateStatus. |
|
461 |
]. |
|
462 |
Delay waitForSeconds:0.5. |
|
463 |
self updateList. |
|
464 |
] |
|
771
5cd10b4845f3
oops - catching the terminateSignal is no good idea
Claus Gittinger <cg@exept.de>
parents:
682
diff
changeset
|
465 |
] valueOnUnwindDo:[ |
5cd10b4845f3
oops - catching the terminateSignal is no good idea
Claus Gittinger <cg@exept.de>
parents:
682
diff
changeset
|
466 |
updateProcess := nil |
619 | 467 |
] |
468 |
] forkAt:(Processor userSchedulingPriority + 1). |
|
469 |
updateProcess name:'monitor [' , |
|
470 |
Processor activeProcess id printString , |
|
471 |
'] update'. |
|
472 |
" |
|
473 |
raise my own priority |
|
474 |
" |
|
475 |
Processor activeProcess priority:(Processor userSchedulingPriority + 2) |
|
19 | 476 |
]. |
619 | 477 |
|
478 |
"Modified: 12.6.1996 / 19:53:13 / cg" |
|
19 | 479 |
! ! |
480 |
||
481 |
!ProcessMonitor methodsFor:'menu actions'! |
|
482 |
||
208 | 483 |
abortProcess |
484 |
"abort (raise AbortSignal in) the selected process" |
|
485 |
||
486 |
self selectedProcessesDo:[:p | |
|
487 |
p interruptWith:[AbortSignal raise] |
|
488 |
] |
|
489 |
! |
|
490 |
||
491 |
debugProcess |
|
492 |
"open a debugger on the selected process" |
|
493 |
||
494 |
self selectedProcessesDo:[:p | |
|
495 |
Debugger openOn:p |
|
496 |
] |
|
497 |
! |
|
498 |
||
499 |
detail |
|
500 |
showDetail := showDetail not. |
|
501 |
self updateView |
|
502 |
! |
|
503 |
||
504 |
hideDead:aBoolean |
|
505 |
hideDead := aBoolean |
|
506 |
! |
|
507 |
||
508 |
inspectProcess |
|
509 |
"open an inspector on the selected process" |
|
510 |
||
511 |
self selectedProcessesSend:#inspect |
|
512 |
! |
|
513 |
||
514 |
lowerPrio |
|
515 |
"lower the selected processes priority" |
|
516 |
||
517 |
self selectedProcessesDo:[:p | |
|
518 |
p priority:(p priority - 1) |
|
519 |
] |
|
520 |
! |
|
521 |
||
85 | 522 |
processMenu |
523 |
|labels selectors m| |
|
524 |
||
109 | 525 |
device ctrlDown ifTrue:[ |
663
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
526 |
labels := resources array:#( |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
527 |
'\c detail' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
528 |
). |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
529 |
selectors := #( |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
530 |
detail |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
531 |
). |
109 | 532 |
] ifFalse:[ |
663
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
533 |
labels := resources array:#( |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
534 |
'inspect' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
535 |
'debug' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
536 |
'-' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
537 |
'resume' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
538 |
'suspend' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
539 |
'stop' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
540 |
'abort' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
541 |
'terminate' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
542 |
'terminate group' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
543 |
'-' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
544 |
'raise prio' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
545 |
'lower prio' |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
546 |
). |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
547 |
selectors := #( |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
548 |
inspectProcess |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
549 |
debugProcess |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
550 |
nil |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
551 |
resumeProcess |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
552 |
suspendProcess |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
553 |
stopProcess |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
554 |
abortProcess |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
555 |
terminateProcess |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
556 |
terminateProcessGroup |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
557 |
nil |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
558 |
raisePrio |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
559 |
lowerPrio |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
560 |
). |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
561 |
updateProcess isNil ifTrue:[ |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
562 |
labels := (resources array:#('update' '-')) , labels. |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
563 |
selectors := #(updateView nil) , selectors |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
564 |
]. |
85 | 565 |
]. |
566 |
||
567 |
m := PopUpMenu labels:labels |
|
663
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
568 |
selectors:selectors. |
85 | 569 |
|
109 | 570 |
m checkToggleAt:#detail put:showDetail. |
85 | 571 |
^ m |
572 |
! |
|
19 | 573 |
|
208 | 574 |
raisePrio |
575 |
"raise the selected processes priority" |
|
143 | 576 |
|
577 |
self selectedProcessesDo:[:p | |
|
208 | 578 |
p priority:(p priority + 1) |
143 | 579 |
] |
580 |
! |
|
581 |
||
582 |
resumeProcess |
|
583 |
"resume the selected process (i.e. let it run) " |
|
584 |
||
585 |
self selectedProcessesSend:#resume |
|
586 |
! |
|
587 |
||
92 | 588 |
stopProcess |
589 |
"stop the selected process - not even interrupts will wake it up" |
|
590 |
||
591 |
self selectedProcessesSend:#stop |
|
592 |
! |
|
593 |
||
19 | 594 |
suspendProcess |
92 | 595 |
"suspend the selected process - interrupts will let it run again" |
596 |
||
58 | 597 |
self selectedProcessesSend:#suspend |
85 | 598 |
! |
45 | 599 |
|
208 | 600 |
terminateProcess |
601 |
"terminate the selected process" |
|
92 | 602 |
|
208 | 603 |
self selectedProcessesSend:#terminate |
663
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
604 |
! |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
605 |
|
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
606 |
terminateProcessGroup |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
607 |
"terminate the selected process" |
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
608 |
|
befe6a1d886f
show process group & added menu item to terminate a complete group
Claus Gittinger <cg@exept.de>
parents:
656
diff
changeset
|
609 |
self selectedProcessesSend:#terminateGroup |
19 | 610 |
! ! |
611 |
||
143 | 612 |
!ProcessMonitor methodsFor:'private'! |
613 |
||
614 |
selectedProcessesDo:aBlock |
|
615 |
|p nr sel| |
|
85 | 616 |
|
143 | 617 |
sel := listView selection. |
618 |
sel isNil ifTrue:[^ self]. |
|
619 |
(sel isKindOf:Collection) ifTrue:[ |
|
620 |
sel do:[:n | |
|
621 |
nr := n - 2. "for headlines" |
|
622 |
nr notNil ifTrue:[ |
|
623 |
nr > 0 ifTrue:[ |
|
624 |
p := processes at:nr. |
|
775
f741dc4afe19
changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents:
771
diff
changeset
|
625 |
(p notNil and:[p ~~ 0]) ifTrue:[ |
143 | 626 |
aBlock value:p |
627 |
] |
|
628 |
] |
|
629 |
] |
|
630 |
] |
|
85 | 631 |
] ifFalse:[ |
143 | 632 |
nr := sel - 2. "for headlines" |
633 |
nr notNil ifTrue:[ |
|
634 |
nr > 0 ifTrue:[ |
|
635 |
p := processes at:nr. |
|
775
f741dc4afe19
changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents:
771
diff
changeset
|
636 |
(p notNil and:[p ~~ 0]) ifTrue:[ |
143 | 637 |
aBlock value:p |
638 |
] |
|
639 |
] |
|
640 |
] |
|
85 | 641 |
]. |
143 | 642 |
! |
643 |
||
644 |
selectedProcessesSend:aSelector |
|
645 |
self selectedProcessesDo:[:p | |
|
646 |
p perform:aSelector |
|
647 |
]. |
|
648 |
self updateView. |
|
85 | 649 |
! ! |
650 |
||
651 |
!ProcessMonitor methodsFor:'queries'! |
|
652 |
||
105 | 653 |
preferredExtent |
85 | 654 |
^ (font widthOf:self titleLine) + 40 @ 100 |
655 |
! ! |
|
208 | 656 |
|
771
5cd10b4845f3
oops - catching the terminateSignal is no good idea
Claus Gittinger <cg@exept.de>
parents:
682
diff
changeset
|
657 |
!ProcessMonitor class methodsFor:'documentation'! |
208 | 658 |
|
659 |
version |
|
775
f741dc4afe19
changed WeakArray to set emptied slots to zero
Claus Gittinger <cg@exept.de>
parents:
771
diff
changeset
|
660 |
^ '$Header: /cvs/stx/stx/libtool/ProcessMonitor.st,v 1.42 1996-10-18 12:37:51 cg Exp $'! ! |