4463
|
1 |
"{ Package: 'stx:libtool' }"
|
|
2 |
|
|
3 |
SystemStatusMonitorV2 subclass:#ProcessMonitorV2
|
|
4 |
instanceVariableNames:'processList tableColumns selectedProcesses updateSema showDetail
|
|
5 |
hasSelection selctionRestartable showProcessId showGroup
|
|
6 |
showState showPrio showUsedStack showTotalStack
|
|
7 |
showCurrentSegment showSwitch showWhere currentSortOrder
|
|
8 |
processTable processes showDead sortBlock selectionRestartable'
|
|
9 |
classVariableNames:''
|
|
10 |
poolDictionaries:''
|
|
11 |
category:'Monitors-ST/X'
|
|
12 |
!
|
|
13 |
|
|
14 |
Object subclass:#ProcessItem
|
|
15 |
instanceVariableNames:'processId processGroup processName processState processPrio
|
|
16 |
processUsedStack processTotalStack processWhere processInstance
|
|
17 |
processCurrentSegment processSwitch prioVal idVal groupVal'
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
privateIn:ProcessMonitorV2
|
|
21 |
!
|
|
22 |
|
|
23 |
!ProcessMonitorV2 class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
documentation
|
|
26 |
"
|
|
27 |
documentation to be added.
|
|
28 |
|
|
29 |
[author:]
|
|
30 |
Christian Penk (penk@bierfix)
|
|
31 |
|
|
32 |
[instance variables:]
|
|
33 |
|
|
34 |
[class variables:]
|
|
35 |
|
|
36 |
[see also:]
|
|
37 |
|
|
38 |
"
|
|
39 |
!
|
|
40 |
|
|
41 |
examples
|
|
42 |
"
|
|
43 |
Starting the application:
|
|
44 |
[exBegin]
|
|
45 |
ProcessMonitorV2 open
|
|
46 |
|
|
47 |
[exEnd]
|
|
48 |
|
|
49 |
more examples to be added:
|
|
50 |
[exBegin]
|
|
51 |
... add code fragment for
|
|
52 |
... executable example here ...
|
|
53 |
[exEnd]
|
|
54 |
"
|
|
55 |
!
|
|
56 |
|
|
57 |
history
|
|
58 |
"Created: / 14.1.2003 / 11:16:10 / penk"
|
|
59 |
! !
|
|
60 |
|
|
61 |
!ProcessMonitorV2 class methodsFor:'defaults'!
|
|
62 |
|
|
63 |
defaultIcon
|
|
64 |
|i|
|
|
65 |
|
|
66 |
i := Image fromFile:'ProcMon.xbm'.
|
|
67 |
i notNil ifTrue:[^ i].
|
|
68 |
^ super defaultIcon
|
|
69 |
|
|
70 |
"Modified: 23.1.1997 / 02:52:31 / cg"
|
|
71 |
!
|
|
72 |
|
|
73 |
defaultLabel
|
|
74 |
^ 'Process Monitor'
|
|
75 |
! !
|
|
76 |
|
|
77 |
!ProcessMonitorV2 class methodsFor:'help specs'!
|
|
78 |
|
|
79 |
helpSpec
|
|
80 |
"This resource specification was automatically generated
|
|
81 |
by the UIHelpTool of ST/X."
|
|
82 |
|
|
83 |
"Do not manually edit this!! If it is corrupted,
|
|
84 |
the UIHelpTool may not be able to read the specification."
|
|
85 |
|
|
86 |
"
|
|
87 |
UIHelpTool openOnClass:ProcessMonitorV2
|
|
88 |
"
|
|
89 |
|
|
90 |
<resource: #help>
|
|
91 |
|
|
92 |
^ super helpSpec addPairsFrom:#(
|
|
93 |
|
|
94 |
#toggleDetails
|
|
95 |
''
|
|
96 |
|
|
97 |
)
|
|
98 |
! !
|
|
99 |
|
|
100 |
!ProcessMonitorV2 class methodsFor:'image specs'!
|
|
101 |
|
|
102 |
detailsMenuIconDown
|
|
103 |
"This resource specification was automatically generated
|
|
104 |
by the ImageEditor of ST/X."
|
|
105 |
|
|
106 |
"Do not manually edit this!! If it is corrupted,
|
|
107 |
the ImageEditor may not be able to read the specification."
|
|
108 |
|
|
109 |
"
|
|
110 |
self detailsMenuIconDown inspect
|
|
111 |
ImageEditor openOnClass:self andSelector:#detailsMenuIconDown
|
|
112 |
Icon flushCachedIcons
|
|
113 |
"
|
|
114 |
|
|
115 |
<resource: #image>
|
|
116 |
|
|
117 |
^Icon
|
|
118 |
constantNamed:#'ProcessMonitorV2 class detailsMenuIconDown'
|
|
119 |
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]
|
|
120 |
!
|
|
121 |
|
|
122 |
detailsMenuIconUp
|
|
123 |
"This resource specification was automatically generated
|
|
124 |
by the ImageEditor of ST/X."
|
|
125 |
|
|
126 |
"Do not manually edit this!! If it is corrupted,
|
|
127 |
the ImageEditor may not be able to read the specification."
|
|
128 |
|
|
129 |
"
|
|
130 |
self detailsMenuIconUp inspect
|
|
131 |
ImageEditor openOnClass:self andSelector:#detailsMenuIconUp
|
|
132 |
Icon flushCachedIcons
|
|
133 |
"
|
|
134 |
|
|
135 |
<resource: #image>
|
|
136 |
|
|
137 |
^Icon
|
|
138 |
constantNamed:#'ProcessMonitorV2 class detailsMenuIconUp'
|
|
139 |
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]
|
|
140 |
!
|
|
141 |
|
|
142 |
viewDetailsIcon
|
|
143 |
"This resource specification was automatically generated
|
|
144 |
by the ImageEditor of ST/X."
|
|
145 |
|
|
146 |
"Do not manually edit this!! If it is corrupted,
|
|
147 |
the ImageEditor may not be able to read the specification."
|
|
148 |
|
|
149 |
"
|
|
150 |
self viewDetailsIcon inspect
|
|
151 |
ImageEditor openOnClass:self andSelector:#viewDetailsIcon
|
|
152 |
Icon flushCachedIcons
|
|
153 |
"
|
|
154 |
|
|
155 |
<resource: #image>
|
|
156 |
|
|
157 |
^Icon
|
|
158 |
constantNamed:#'ProcessMonitorV2 class viewDetailsIcon'
|
|
159 |
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]
|
|
160 |
! !
|
|
161 |
|
|
162 |
!ProcessMonitorV2 class methodsFor:'interface specs'!
|
|
163 |
|
|
164 |
windowSpec
|
|
165 |
"This resource specification was automatically generated
|
|
166 |
by the UIPainter of ST/X."
|
|
167 |
|
|
168 |
"Do not manually edit this!! If it is corrupted,
|
|
169 |
the UIPainter may not be able to read the specification."
|
|
170 |
|
|
171 |
"
|
|
172 |
UIPainter new openOnClass:ProcessMonitorV2 andSelector:#windowSpec
|
|
173 |
ProcessMonitorV2 new openInterface:#windowSpec
|
|
174 |
ProcessMonitorV2 open
|
|
175 |
"
|
|
176 |
|
|
177 |
<resource: #canvas>
|
|
178 |
|
|
179 |
^
|
|
180 |
#(#FullSpec
|
|
181 |
#name: #windowSpec
|
|
182 |
#window:
|
|
183 |
#(#WindowSpec
|
|
184 |
#label: 'ProcessMonitorV2'
|
|
185 |
#name: 'ProcessMonitorV2'
|
|
186 |
#min: #(#Point 10 10)
|
|
187 |
#max: #(#Point 1024 768)
|
|
188 |
#bounds: #(#Rectangle 16 42 781 379)
|
|
189 |
#menu: #mainMenu
|
|
190 |
)
|
|
191 |
#component:
|
|
192 |
#(#SpecCollection
|
|
193 |
#collection: #(
|
|
194 |
#(#MenuPanelSpec
|
|
195 |
#name: 'ToolBar1'
|
|
196 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
|
|
197 |
#menu: #toolBarMainMenu
|
|
198 |
#textDefault: true
|
|
199 |
)
|
|
200 |
#(#DataSetSpec
|
|
201 |
#name: 'Process Table'
|
|
202 |
#layout: #(#LayoutFrame 0 0.0 32 0.0 0 1.0 0 1.0)
|
|
203 |
#model: #selectedProcesses
|
|
204 |
#menu: #tableMenu
|
|
205 |
#hasHorizontalScrollBar: true
|
|
206 |
#hasVerticalScrollBar: true
|
|
207 |
#dataList: #processList
|
|
208 |
#useIndex: false
|
|
209 |
#has3Dsepartors: false
|
|
210 |
#doubleClickSelector: #doubleClickedAt:
|
|
211 |
#columnHolder: #tableColumns
|
|
212 |
#multipleSelectOk: true
|
|
213 |
#verticalSpacing: 0
|
|
214 |
#postBuildCallback: #postBuildProcessTable:
|
|
215 |
)
|
|
216 |
)
|
|
217 |
|
|
218 |
)
|
|
219 |
)
|
|
220 |
! !
|
|
221 |
|
|
222 |
!ProcessMonitorV2 class methodsFor:'menu specs'!
|
|
223 |
|
|
224 |
mainMenu
|
|
225 |
"This resource specification was automatically generated
|
|
226 |
by the MenuEditor of ST/X."
|
|
227 |
|
|
228 |
"Do not manually edit this!! If it is corrupted,
|
|
229 |
the MenuEditor may not be able to read the specification."
|
|
230 |
|
|
231 |
"
|
|
232 |
MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#mainMenu
|
|
233 |
(Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 mainMenu)) startUp
|
|
234 |
"
|
|
235 |
|
|
236 |
<resource: #menu>
|
|
237 |
|
|
238 |
^
|
|
239 |
#(#Menu
|
|
240 |
#(
|
|
241 |
#(#MenuItem
|
|
242 |
#label: 'Exit'
|
|
243 |
#itemValue: #closeRequest
|
|
244 |
#translateLabel: true
|
|
245 |
)
|
|
246 |
#(#MenuItem
|
|
247 |
#label: 'Help'
|
|
248 |
#translateLabel: true
|
|
249 |
#startGroup: #right
|
|
250 |
#submenu:
|
|
251 |
#(#Menu
|
|
252 |
#(
|
|
253 |
#(#MenuItem
|
|
254 |
#label: 'Documentation'
|
|
255 |
#itemValue: #openDocumentation
|
|
256 |
#translateLabel: true
|
|
257 |
)
|
|
258 |
#(#MenuItem
|
|
259 |
#label: '-'
|
|
260 |
)
|
|
261 |
#(#MenuItem
|
|
262 |
#label: 'About this Application'
|
|
263 |
#itemValue: #openAboutThisApplication
|
|
264 |
#translateLabel: true
|
|
265 |
)
|
|
266 |
)
|
|
267 |
nil
|
|
268 |
nil
|
|
269 |
)
|
|
270 |
)
|
|
271 |
)
|
|
272 |
nil
|
|
273 |
nil
|
|
274 |
)
|
|
275 |
!
|
|
276 |
|
|
277 |
tableMenu
|
|
278 |
"This resource specification was automatically generated
|
|
279 |
by the MenuEditor of ST/X."
|
|
280 |
|
|
281 |
"Do not manually edit this!! If it is corrupted,
|
|
282 |
the MenuEditor may not be able to read the specification."
|
|
283 |
|
|
284 |
"
|
|
285 |
MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#tableMenu
|
|
286 |
(Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 tableMenu)) startUp
|
|
287 |
"
|
|
288 |
|
|
289 |
<resource: #menu>
|
|
290 |
|
|
291 |
^
|
|
292 |
#(#Menu
|
|
293 |
#(
|
|
294 |
#(#MenuItem
|
|
295 |
#enabled: #hasSelection
|
|
296 |
#label: 'Inspect'
|
|
297 |
#itemValue: #inspectSelection
|
|
298 |
#translateLabel: true
|
|
299 |
)
|
|
300 |
#(#MenuItem
|
|
301 |
#enabled: #hasSelection
|
|
302 |
#label: 'Debug'
|
|
303 |
#itemValue: #debugProcess
|
|
304 |
#translateLabel: true
|
|
305 |
)
|
|
306 |
#(#MenuItem
|
|
307 |
#label: '-'
|
|
308 |
)
|
|
309 |
#(#MenuItem
|
|
310 |
#enabled: #hasSelection
|
|
311 |
#label: 'Resume'
|
|
312 |
#itemValue: #resumeProcess
|
|
313 |
#translateLabel: true
|
|
314 |
)
|
|
315 |
#(#MenuItem
|
|
316 |
#enabled: #hasSelection
|
|
317 |
#label: 'Suspend'
|
|
318 |
#itemValue: #suspendProcess
|
|
319 |
#translateLabel: true
|
|
320 |
)
|
|
321 |
#(#MenuItem
|
|
322 |
#enabled: #hasSelection
|
|
323 |
#label: 'Stop'
|
|
324 |
#itemValue: #stopProcess
|
|
325 |
#translateLabel: true
|
|
326 |
)
|
|
327 |
#(#MenuItem
|
|
328 |
#label: '-'
|
|
329 |
)
|
|
330 |
#(#MenuItem
|
|
331 |
#enabled: #hasSelection
|
|
332 |
#label: 'Abort'
|
|
333 |
#itemValue: #abortProcess
|
|
334 |
#translateLabel: true
|
|
335 |
)
|
|
336 |
#(#MenuItem
|
|
337 |
#enabled: #hasSelection
|
|
338 |
#label: 'Terminate'
|
|
339 |
#itemValue: #terminateProcess
|
|
340 |
#translateLabel: true
|
|
341 |
)
|
|
342 |
#(#MenuItem
|
|
343 |
#enabled: #hasSelection
|
|
344 |
#label: 'Hard Terminate'
|
|
345 |
#itemValue: #hardTerminateProcess
|
|
346 |
#translateLabel: true
|
|
347 |
)
|
|
348 |
#(#MenuItem
|
|
349 |
#enabled: #hasSelection
|
|
350 |
#label: 'Terminate Group'
|
|
351 |
#itemValue: #terminateProcessGroup
|
|
352 |
#translateLabel: true
|
|
353 |
)
|
|
354 |
#(#MenuItem
|
|
355 |
#enabled: #selectionRestartable
|
|
356 |
#label: 'Restart'
|
|
357 |
#itemValue: #restartProcess
|
|
358 |
#translateLabel: true
|
|
359 |
)
|
|
360 |
#(#MenuItem
|
|
361 |
#label: '-'
|
|
362 |
)
|
|
363 |
#(#MenuItem
|
|
364 |
#enabled: #hasSelection
|
|
365 |
#label: 'Raise Prio'
|
|
366 |
#itemValue: #raisePrio
|
|
367 |
#translateLabel: true
|
|
368 |
)
|
|
369 |
#(#MenuItem
|
|
370 |
#enabled: #hasSelection
|
|
371 |
#label: 'Lower Prio'
|
|
372 |
#itemValue: #lowerPrio
|
|
373 |
#translateLabel: true
|
|
374 |
)
|
|
375 |
#(#MenuItem
|
|
376 |
#label: '-'
|
|
377 |
)
|
|
378 |
#(#MenuItem
|
|
379 |
#label: 'Update'
|
|
380 |
#itemValue: #updateView
|
|
381 |
#translateLabel: true
|
|
382 |
)
|
|
383 |
)
|
|
384 |
nil
|
|
385 |
nil
|
|
386 |
)
|
|
387 |
!
|
|
388 |
|
|
389 |
toolBarMainMenu
|
|
390 |
"This resource specification was automatically generated
|
|
391 |
by the MenuEditor of ST/X."
|
|
392 |
|
|
393 |
"Do not manually edit this!! If it is corrupted,
|
|
394 |
the MenuEditor may not be able to read the specification."
|
|
395 |
|
|
396 |
"
|
|
397 |
MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#toolBarMainMenu
|
|
398 |
(Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 toolBarMainMenu)) startUp
|
|
399 |
"
|
|
400 |
|
|
401 |
<resource: #menu>
|
|
402 |
|
|
403 |
^
|
|
404 |
#(#Menu
|
|
405 |
#(
|
|
406 |
#(#MenuItem
|
|
407 |
#enabled: #hasSelection
|
|
408 |
#label: 'Inspect'
|
|
409 |
#itemValue: #inspectSelection
|
|
410 |
#translateLabel: true
|
|
411 |
#isButton: true
|
|
412 |
#labelImage: #(#ResourceRetriever #SystemBrowser #watchIcon)
|
|
413 |
)
|
|
414 |
#(#MenuItem
|
|
415 |
#activeHelpKey: #toggleDetails
|
|
416 |
#label: 'View Details'
|
|
417 |
#translateLabel: true
|
|
418 |
#isButton: true
|
|
419 |
#startGroup: #right
|
|
420 |
#submenuChannel: #viewDetailsMenuSpec
|
|
421 |
#labelImage: #(#ResourceRetriever #ProcessMonitorV2 #viewDetailsIcon)
|
|
422 |
)
|
|
423 |
)
|
|
424 |
nil
|
|
425 |
nil
|
|
426 |
)
|
|
427 |
!
|
|
428 |
|
|
429 |
viewDetailsMenuSpec
|
|
430 |
"This resource specification was automatically generated
|
|
431 |
by the MenuEditor of ST/X."
|
|
432 |
|
|
433 |
"Do not manually edit this!! If it is corrupted,
|
|
434 |
the MenuEditor may not be able to read the specification."
|
|
435 |
|
|
436 |
"
|
|
437 |
MenuEditor new openOnClass:ProcessMonitorV2 andSelector:#viewDetailsMenuSpec
|
|
438 |
(Menu new fromLiteralArrayEncoding:(ProcessMonitorV2 viewDetailsMenuSpec)) startUp
|
|
439 |
"
|
|
440 |
|
|
441 |
<resource: #menu>
|
|
442 |
|
|
443 |
^
|
|
444 |
#(#Menu
|
|
445 |
#(
|
|
446 |
#(#MenuItem
|
|
447 |
#label: 'Id'
|
|
448 |
#translateLabel: true
|
|
449 |
#hideMenuOnActivated: false
|
|
450 |
#indication: #showProcessId
|
|
451 |
)
|
|
452 |
#(#MenuItem
|
|
453 |
#label: 'Group'
|
|
454 |
#translateLabel: true
|
|
455 |
#hideMenuOnActivated: false
|
|
456 |
#indication: #showGroup
|
|
457 |
)
|
|
458 |
#(#MenuItem
|
|
459 |
#label: 'State'
|
|
460 |
#translateLabel: true
|
|
461 |
#hideMenuOnActivated: false
|
|
462 |
#indication: #showState
|
|
463 |
)
|
|
464 |
#(#MenuItem
|
|
465 |
#label: 'Prio'
|
|
466 |
#translateLabel: true
|
|
467 |
#hideMenuOnActivated: false
|
|
468 |
#indication: #showPrio
|
|
469 |
)
|
|
470 |
#(#MenuItem
|
|
471 |
#label: 'Used Stack'
|
|
472 |
#translateLabel: true
|
|
473 |
#hideMenuOnActivated: false
|
|
474 |
#indication: #showUsedStack
|
|
475 |
)
|
|
476 |
#(#MenuItem
|
|
477 |
#label: 'Total Stack'
|
|
478 |
#translateLabel: true
|
|
479 |
#hideMenuOnActivated: false
|
|
480 |
#indication: #showTotalStack
|
|
481 |
)
|
|
482 |
#(#MenuItem
|
|
483 |
#label: 'Current-Segment'
|
|
484 |
#translateLabel: true
|
|
485 |
#hideMenuOnActivated: false
|
|
486 |
#indication: #showCurrentSegment
|
|
487 |
)
|
|
488 |
#(#MenuItem
|
|
489 |
#label: 'Switch'
|
|
490 |
#translateLabel: true
|
|
491 |
#hideMenuOnActivated: false
|
|
492 |
#indication: #showSwitch
|
|
493 |
)
|
|
494 |
#(#MenuItem
|
|
495 |
#label: 'Where'
|
|
496 |
#translateLabel: true
|
|
497 |
#hideMenuOnActivated: false
|
|
498 |
#indication: #showWhere
|
|
499 |
)
|
|
500 |
#(#MenuItem
|
|
501 |
#label: '-'
|
|
502 |
)
|
|
503 |
#(#MenuItem
|
|
504 |
#label: 'Show dead Processes'
|
|
505 |
#translateLabel: true
|
|
506 |
#indication: #showDead
|
|
507 |
)
|
|
508 |
)
|
|
509 |
nil
|
|
510 |
nil
|
|
511 |
)
|
|
512 |
! !
|
|
513 |
|
|
514 |
!ProcessMonitorV2 class methodsFor:'tableColumns specs'!
|
|
515 |
|
|
516 |
tableColumns
|
|
517 |
"This resource specification was automatically generated
|
|
518 |
by the DataSetBuilder of ST/X."
|
|
519 |
|
|
520 |
"Do not manually edit this!! If it is corrupted,
|
|
521 |
the DataSetBuilder may not be able to read the specification."
|
|
522 |
|
|
523 |
"
|
|
524 |
DataSetBuilder new openOnClass:ProcessMonitorV2 andSelector:#tableColumns
|
|
525 |
"
|
|
526 |
|
|
527 |
<resource: #tableColumns>
|
|
528 |
|
|
529 |
^#(
|
|
530 |
#(#DataSetColumnSpec
|
|
531 |
#label: 'Id'
|
|
532 |
#id: #id
|
|
533 |
#labelAlignment: #left
|
|
534 |
#labelButtonType: #Button
|
|
535 |
#labelActionSelector: #sortProcessListBy:
|
|
536 |
#labelActionArgument: 'idVal'
|
|
537 |
#width: 45
|
|
538 |
#type: #number
|
|
539 |
#model: #processId
|
|
540 |
#canSelect: false
|
|
541 |
#showRowSeparator: false
|
|
542 |
#showColSeparator: false
|
|
543 |
)
|
|
544 |
#(#DataSetColumnSpec
|
|
545 |
#label: 'Group'
|
|
546 |
#id: #group
|
|
547 |
#labelAlignment: #left
|
|
548 |
#labelButtonType: #Button
|
|
549 |
#labelActionSelector: #sortProcessListBy:
|
|
550 |
#labelActionArgument: 'groupVal'
|
|
551 |
#width: 45
|
|
552 |
#model: #processGroup
|
|
553 |
#canSelect: false
|
|
554 |
#showRowSeparator: false
|
|
555 |
#showColSeparator: false
|
|
556 |
)
|
|
557 |
#(#DataSetColumnSpec
|
|
558 |
#label: 'Name'
|
|
559 |
#id: #name
|
|
560 |
#labelAlignment: #left
|
|
561 |
#labelButtonType: #Button
|
|
562 |
#labelActionSelector: #sortProcessListBy:
|
|
563 |
#labelActionArgument: 'processName'
|
|
564 |
#width: 200
|
|
565 |
#model: #processName
|
|
566 |
#canSelect: false
|
|
567 |
#showRowSeparator: false
|
|
568 |
#showColSeparator: false
|
|
569 |
)
|
|
570 |
#(#DataSetColumnSpec
|
|
571 |
#label: 'State'
|
|
572 |
#id: #state
|
|
573 |
#labelAlignment: #left
|
|
574 |
#labelButtonType: #Button
|
|
575 |
#labelActionSelector: #sortProcessListBy:
|
|
576 |
#labelActionArgument: 'processState'
|
|
577 |
#width: 100
|
|
578 |
#model: #processState
|
|
579 |
#canSelect: false
|
|
580 |
#showRowSeparator: false
|
|
581 |
#showColSeparator: false
|
|
582 |
)
|
|
583 |
#(#DataSetColumnSpec
|
|
584 |
#label: 'Prio'
|
|
585 |
#id: #prio
|
|
586 |
#labelAlignment: #left
|
|
587 |
#labelButtonType: #Button
|
|
588 |
#labelActionSelector: #sortProcessListBy:
|
|
589 |
#labelActionArgument: 'prioVal'
|
|
590 |
#width: 40
|
|
591 |
#model: #processPrio
|
|
592 |
#canSelect: false
|
|
593 |
#showRowSeparator: false
|
|
594 |
#showColSeparator: false
|
|
595 |
)
|
|
596 |
#(#DataSetColumnSpec
|
|
597 |
#label: 'Used Stack'
|
|
598 |
#id: #usedStack
|
|
599 |
#labelAlignment: #left
|
|
600 |
#labelButtonType: #Button
|
|
601 |
#labelActionSelector: #sortProcessListBy:
|
|
602 |
#labelActionArgument: 'processUsedStack'
|
|
603 |
#columnAlignment: #right
|
|
604 |
#width: 75
|
|
605 |
#type: #number
|
|
606 |
#model: #processUsedStack
|
|
607 |
#canSelect: false
|
|
608 |
#showRowSeparator: false
|
|
609 |
#showColSeparator: false
|
|
610 |
)
|
|
611 |
#(#DataSetColumnSpec
|
|
612 |
#label: 'Total Stack'
|
|
613 |
#id: #totalStack
|
|
614 |
#labelAlignment: #left
|
|
615 |
#labelButtonType: #Button
|
|
616 |
#labelActionSelector: #sortProcessListBy:
|
|
617 |
#labelActionArgument: 'processTotalStack'
|
|
618 |
#columnAlignment: #right
|
|
619 |
#width: 75
|
|
620 |
#model: #processTotalStack
|
|
621 |
#canSelect: false
|
|
622 |
#showRowSeparator: false
|
|
623 |
#showColSeparator: false
|
|
624 |
)
|
|
625 |
#(#DataSetColumnSpec
|
|
626 |
#label: 'Current-Segment'
|
|
627 |
#id: #currentSegment
|
|
628 |
#labelAlignment: #left
|
|
629 |
#labelButtonType: #Button
|
|
630 |
#labelActionSelector: #sortProcessListBy:
|
|
631 |
#labelActionArgument: 'processCurrentSegment'
|
|
632 |
#width: 110
|
|
633 |
#model: #processCurrentSegment
|
|
634 |
#canSelect: false
|
|
635 |
#showRowSeparator: false
|
|
636 |
#showColSeparator: false
|
|
637 |
)
|
|
638 |
#(#DataSetColumnSpec
|
|
639 |
#label: 'Switch'
|
|
640 |
#id: #switch
|
|
641 |
#labelAlignment: #left
|
|
642 |
#labelButtonType: #Button
|
|
643 |
#labelActionSelector: #sortProcessListBy:
|
|
644 |
#labelActionArgument: 'processSwitch'
|
|
645 |
#columnAlignment: #right
|
|
646 |
#width: 55
|
|
647 |
#type: #number
|
|
648 |
#model: #processSwitch
|
|
649 |
#canSelect: false
|
|
650 |
#showRowSeparator: false
|
|
651 |
#showColSeparator: false
|
|
652 |
)
|
|
653 |
#(#DataSetColumnSpec
|
|
654 |
#label: 'Where'
|
|
655 |
#id: #where
|
|
656 |
#labelAlignment: #left
|
|
657 |
#labelButtonType: #Button
|
|
658 |
#labelActionSelector: #sortProcessListBy:
|
|
659 |
#labelActionArgument: 'processWhere'
|
|
660 |
#model: #processWhere
|
|
661 |
#canSelect: false
|
|
662 |
#showRowSeparator: false
|
|
663 |
#showColSeparator: false
|
|
664 |
)
|
|
665 |
)
|
|
666 |
|
|
667 |
! !
|
|
668 |
|
|
669 |
!ProcessMonitorV2 methodsFor:'actions'!
|
|
670 |
|
|
671 |
doubleClickedAt:anItemIndex
|
|
672 |
"open a debugger on the selected process"
|
|
673 |
|
|
674 |
self debugProcess
|
|
675 |
!
|
|
676 |
|
|
677 |
getProcessList
|
|
678 |
"select processes to display.
|
|
679 |
Subclasses may redefine this"
|
|
680 |
|
|
681 |
|coll|
|
|
682 |
|
|
683 |
self needFullInformation ifTrue:[
|
|
684 |
coll := Process allSubInstances asOrderedCollection.
|
|
685 |
] ifFalse:[
|
|
686 |
coll := ProcessorScheduler knownProcesses asOrderedCollection.
|
|
687 |
].
|
|
688 |
^ coll
|
|
689 |
!
|
|
690 |
|
|
691 |
selectedProcessesDo:aBlock
|
|
692 |
| sel|
|
|
693 |
|
|
694 |
sel := self selectedProcesses value.
|
|
695 |
sel isNil ifTrue:[^ self].
|
|
696 |
|
|
697 |
sel do:[:processItem |
|
|
698 |
aBlock value:(processItem processInstance).
|
|
699 |
]
|
|
700 |
!
|
|
701 |
|
|
702 |
selectedProcessesSend:aSelector
|
|
703 |
"send a message to all selected processes"
|
|
704 |
|
|
705 |
self selectedProcessesDo:[:p |
|
|
706 |
p perform:aSelector
|
|
707 |
].
|
|
708 |
self updateView.
|
|
709 |
! !
|
|
710 |
|
|
711 |
!ProcessMonitorV2 methodsFor:'aspects'!
|
|
712 |
|
|
713 |
currentSortOrder
|
|
714 |
"return/create the 'currentSortOrder' value holder (automatically generated)"
|
|
715 |
|
|
716 |
currentSortOrder isNil ifTrue:[
|
|
717 |
currentSortOrder := Dictionary new asValue.
|
|
718 |
].
|
|
719 |
^ currentSortOrder
|
|
720 |
!
|
|
721 |
|
|
722 |
hasSelection
|
|
723 |
|
|
724 |
hasSelection isNil ifTrue:[
|
|
725 |
hasSelection := ValueHolder new.
|
|
726 |
].
|
|
727 |
^ hasSelection
|
|
728 |
!
|
|
729 |
|
|
730 |
processList
|
|
731 |
|
|
732 |
processList isNil ifTrue:[
|
|
733 |
processList := List new.
|
|
734 |
].
|
|
735 |
^ processList.
|
|
736 |
!
|
|
737 |
|
|
738 |
selectedProcesses
|
|
739 |
|
|
740 |
selectedProcesses isNil ifTrue:[
|
|
741 |
selectedProcesses := ValueHolder new.
|
|
742 |
selectedProcesses addDependent:self.
|
|
743 |
].
|
|
744 |
^ selectedProcesses.
|
|
745 |
!
|
|
746 |
|
|
747 |
selectionRestartable
|
|
748 |
|
|
749 |
selectionRestartable isNil ifTrue:[
|
|
750 |
selectionRestartable := ValueHolder new.
|
|
751 |
].
|
|
752 |
^ selectionRestartable
|
|
753 |
!
|
|
754 |
|
|
755 |
showDead
|
|
756 |
"return/create the 'showDead' value holder (automatically generated)"
|
|
757 |
|
|
758 |
showDead isNil ifTrue:[
|
|
759 |
showDead := false asValue.
|
|
760 |
showDead addDependent:self.
|
|
761 |
].
|
|
762 |
^ showDead
|
|
763 |
!
|
|
764 |
|
|
765 |
sortBlock
|
|
766 |
|
|
767 |
sortBlock isNil ifTrue:[
|
|
768 |
sortBlock := [:a :b |
|
|
769 |
a idVal < b idVal
|
|
770 |
]
|
|
771 |
].
|
|
772 |
^ sortBlock
|
|
773 |
!
|
|
774 |
|
|
775 |
tableColumns
|
|
776 |
|
|
777 |
tableColumns isNil ifTrue:[
|
|
778 |
tableColumns := self class tableColumns asValue.
|
|
779 |
].
|
|
780 |
^ tableColumns.
|
|
781 |
! !
|
|
782 |
|
|
783 |
!ProcessMonitorV2 methodsFor:'aspects column'!
|
|
784 |
|
|
785 |
showCurrentSegment
|
|
786 |
"return/create the 'showCurrentSegment' value holder (automatically generated)"
|
|
787 |
|
|
788 |
showCurrentSegment isNil ifTrue:[
|
|
789 |
showCurrentSegment := showDetail asValue.
|
|
790 |
showCurrentSegment onChangeSend:#viewedColumnsChanged to:self.
|
|
791 |
].
|
|
792 |
^ showCurrentSegment
|
|
793 |
!
|
|
794 |
|
|
795 |
showGroup
|
|
796 |
"return/create the 'showGroup' value holder (automatically generated)"
|
|
797 |
|
|
798 |
showGroup isNil ifTrue:[
|
|
799 |
showGroup := true asValue.
|
|
800 |
showGroup onChangeSend:#viewedColumnsChanged to:self.
|
|
801 |
].
|
|
802 |
^ showGroup
|
|
803 |
!
|
|
804 |
|
|
805 |
showPrio
|
|
806 |
"return/create the 'showPrio' value holder (automatically generated)"
|
|
807 |
|
|
808 |
showPrio isNil ifTrue:[
|
|
809 |
showPrio := true asValue.
|
|
810 |
showPrio onChangeSend:#viewedColumnsChanged to:self.
|
|
811 |
].
|
|
812 |
^ showPrio
|
|
813 |
!
|
|
814 |
|
|
815 |
showProcessId
|
|
816 |
|
|
817 |
showProcessId isNil ifTrue:[
|
|
818 |
showProcessId := true asValue.
|
|
819 |
showProcessId onChangeSend:#viewedColumnsChanged to:self
|
|
820 |
].
|
|
821 |
^ showProcessId
|
|
822 |
!
|
|
823 |
|
|
824 |
showState
|
|
825 |
"return/create the 'showState' value holder (automatically generated)"
|
|
826 |
|
|
827 |
showState isNil ifTrue:[
|
|
828 |
showState := true asValue.
|
|
829 |
showState onChangeSend:#viewedColumnsChanged to:self
|
|
830 |
].
|
|
831 |
^ showState
|
|
832 |
!
|
|
833 |
|
|
834 |
showSwitch
|
|
835 |
"return/create the 'showSwitch' value holder (automatically generated)"
|
|
836 |
|
|
837 |
showSwitch isNil ifTrue:[
|
|
838 |
showSwitch := showDetail asValue.
|
|
839 |
showSwitch onChangeSend:#viewedColumnsChanged to:self
|
|
840 |
].
|
|
841 |
^ showSwitch
|
|
842 |
!
|
|
843 |
|
|
844 |
showTotalStack
|
|
845 |
"return/create the 'showTotalStack' value holder (automatically generated)"
|
|
846 |
|
|
847 |
showTotalStack isNil ifTrue:[
|
|
848 |
showTotalStack := showDetail asValue.
|
|
849 |
showTotalStack onChangeSend:#viewedColumnsChanged to:self
|
|
850 |
].
|
|
851 |
^ showTotalStack
|
|
852 |
!
|
|
853 |
|
|
854 |
showUsedStack
|
|
855 |
"return/create the 'showUsedStack' value holder (automatically generated)"
|
|
856 |
|
|
857 |
showUsedStack isNil ifTrue:[
|
|
858 |
showUsedStack := showDetail asValue.
|
|
859 |
showUsedStack onChangeSend:#viewedColumnsChanged to:self
|
|
860 |
].
|
|
861 |
^ showUsedStack
|
|
862 |
!
|
|
863 |
|
|
864 |
showWhere
|
|
865 |
"return/create the 'showWhere' value holder (automatically generated)"
|
|
866 |
|
|
867 |
showWhere isNil ifTrue:[
|
|
868 |
showWhere := true asValue.
|
|
869 |
showWhere onChangeSend:#viewedColumnsChanged to:self
|
|
870 |
].
|
|
871 |
^ showWhere
|
|
872 |
! !
|
|
873 |
|
|
874 |
!ProcessMonitorV2 methodsFor:'change & update'!
|
|
875 |
|
|
876 |
selectionChanged
|
|
877 |
|
|
878 |
|allRestartable|
|
|
879 |
|
|
880 |
self hasSelection value:(self selectedProcesses value notEmptyOrNil).
|
|
881 |
self hasSelection value ifFalse:[
|
|
882 |
self selectionRestartable value:false.
|
|
883 |
^ self
|
|
884 |
].
|
|
885 |
allRestartable := true.
|
|
886 |
self selectedProcessesDo:[:p |
|
|
887 |
p isRestartable ifFalse:[
|
|
888 |
allRestartable := false
|
|
889 |
].
|
|
890 |
].
|
|
891 |
self selectionRestartable value:allRestartable.
|
|
892 |
^ self.
|
|
893 |
!
|
|
894 |
|
|
895 |
update:something with:aParameter from:changedObject
|
|
896 |
"Invoked when an object that I depend upon sends a change notification."
|
|
897 |
|
|
898 |
"stub code automatically generated - please change as required"
|
|
899 |
|
|
900 |
changedObject == self selectedProcesses ifTrue:[
|
|
901 |
self selectionChanged.
|
|
902 |
^ self
|
|
903 |
].
|
|
904 |
changedObject == self showDead ifTrue:[
|
|
905 |
self updateStatus:nil.
|
|
906 |
^ self
|
|
907 |
].
|
|
908 |
super update:something with:aParameter from:changedObject
|
|
909 |
!
|
|
910 |
|
|
911 |
viewedColumnsChanged
|
|
912 |
|
|
913 |
| columns buffer locCurrentSortOrder currentSortOrderColumn currentSortOrderReverse selection|
|
|
914 |
|
|
915 |
selection := self selectedProcesses value.
|
|
916 |
columns := OrderedCollection new.
|
|
917 |
self class tableColumns do:[:el|
|
|
918 |
columns add:(DataSetColumnSpec new fromLiteralArrayEncoding:el).
|
|
919 |
].
|
|
920 |
buffer := columns copy.
|
|
921 |
locCurrentSortOrder := self currentSortOrder value.
|
|
922 |
currentSortOrderColumn := locCurrentSortOrder at:#column ifAbsent:nil.
|
|
923 |
currentSortOrderReverse := locCurrentSortOrder at:#reverse ifAbsent:nil.
|
|
924 |
buffer do:[:col |
|
|
925 |
| id |
|
|
926 |
id := col id.
|
|
927 |
id notNil ifTrue:[
|
|
928 |
(col labelActionArgument notNil and:[col labelActionArgument asSymbol == currentSortOrderColumn]) ifTrue:[
|
|
929 |
| label icon|
|
|
930 |
label := col label.
|
|
931 |
icon := currentSortOrderReverse ifTrue:[self class detailsMenuIconDown] ifFalse:[self class detailsMenuIconUp].
|
|
932 |
col label:(LabelAndIcon label:label icon:icon).
|
|
933 |
].
|
|
934 |
(id == #id and:[self showProcessId value not]) ifTrue:[
|
|
935 |
columns remove:col.
|
|
936 |
] ifFalse:[
|
|
937 |
(id == #group and:[self showGroup value not]) ifTrue:[
|
|
938 |
columns remove:col.
|
|
939 |
] ifFalse:[
|
|
940 |
(id == #prio and:[self showPrio value not]) ifTrue:[
|
|
941 |
columns remove:col.
|
|
942 |
] ifFalse:[
|
|
943 |
(id == #currentSegment and:[self showCurrentSegment value not]) ifTrue:[
|
|
944 |
columns remove:col.
|
|
945 |
] ifFalse:[
|
|
946 |
(id == #state and:[self showState value not]) ifTrue:[
|
|
947 |
columns remove:col.
|
|
948 |
] ifFalse:[
|
|
949 |
(id == #switch and:[self showSwitch value not]) ifTrue:[
|
|
950 |
columns remove:col.
|
|
951 |
] ifFalse:[
|
|
952 |
(id == #totalStack and:[self showTotalStack value not]) ifTrue:[
|
|
953 |
columns remove:col.
|
|
954 |
] ifFalse:[
|
|
955 |
(id == #usedStack and:[self showUsedStack value not]) ifTrue:[
|
|
956 |
columns remove:col.
|
|
957 |
] ifFalse:[
|
|
958 |
(id == #where and:[self showWhere value not]) ifTrue:[
|
|
959 |
columns remove:col.
|
|
960 |
]
|
|
961 |
]
|
|
962 |
]
|
|
963 |
]
|
|
964 |
]
|
|
965 |
]
|
|
966 |
]
|
|
967 |
]
|
|
968 |
]
|
|
969 |
]
|
|
970 |
].
|
|
971 |
updateSema critical:[
|
|
972 |
self tableColumns value:columns.
|
|
973 |
self selectedProcesses value:selection.
|
|
974 |
].
|
|
975 |
self updateList.
|
|
976 |
! !
|
|
977 |
|
|
978 |
!ProcessMonitorV2 methodsFor:'event handling'!
|
|
979 |
|
|
980 |
processEvent:anEvent
|
|
981 |
"filter keyboard events.
|
|
982 |
Return true, if I have eaten the event"
|
|
983 |
|
|
984 |
|focusView key rawKey|
|
|
985 |
|
|
986 |
anEvent isKeyPressEvent ifTrue:[
|
|
987 |
focusView := anEvent targetView.
|
|
988 |
key := anEvent key.
|
|
989 |
rawKey := anEvent rawKey.
|
|
990 |
|
|
991 |
(focusView == processList) ifTrue:[
|
|
992 |
key == #InspectIt ifTrue:[
|
|
993 |
self inspectSelection.
|
|
994 |
^ true.
|
|
995 |
].
|
|
996 |
]
|
|
997 |
].
|
|
998 |
^ false
|
|
999 |
! !
|
|
1000 |
|
|
1001 |
!ProcessMonitorV2 methodsFor:'initialization & release'!
|
|
1002 |
|
|
1003 |
closeDownViews
|
|
1004 |
"This is a hook method generated by the Browser.
|
|
1005 |
It will be invoked when your app/dialog-window is really closed.
|
|
1006 |
See also #closeDownViews, which is invoked before and may suppress the close
|
|
1007 |
or ask the user for confirmation."
|
|
1008 |
|
|
1009 |
"/ change the code below as required ...
|
|
1010 |
"/ This should cleanup any leftover resources
|
|
1011 |
"/ (for example, temporary files)
|
|
1012 |
"/ super closeRequest will initiate the closeDown
|
|
1013 |
|
|
1014 |
"/ add your code here
|
|
1015 |
|
|
1016 |
"/ do not remove the one below ...
|
|
1017 |
^ super closeDownViews
|
|
1018 |
!
|
|
1019 |
|
|
1020 |
initialize
|
|
1021 |
|
|
1022 |
super initialize.
|
|
1023 |
|
|
1024 |
showDetail := (Smalltalk at:#SystemDebugging ifAbsent:false).
|
|
1025 |
updateSema := Semaphore forMutualExclusion.
|
|
1026 |
updateDelay := 0.5.
|
|
1027 |
listUpdateDelay := 5.
|
|
1028 |
|
|
1029 |
"/ event mode is no longer used;
|
|
1030 |
"/ this event support may vanish
|
|
1031 |
Processor isPureEventDriven ifTrue:[
|
|
1032 |
updateBlock := [self updateStatus:nil].
|
|
1033 |
listUpdateBlock := [self updateList].
|
|
1034 |
].
|
|
1035 |
!
|
|
1036 |
|
|
1037 |
postBuildProcessTable:aWidget
|
|
1038 |
|
|
1039 |
processTable := aWidget scrolledView.
|
|
1040 |
processTable wantsFocusWithPointerEnter.
|
|
1041 |
!
|
|
1042 |
|
|
1043 |
postBuildWith:aBuilder
|
|
1044 |
|
|
1045 |
^ super postBuildWith:aBuilder
|
|
1046 |
!
|
|
1047 |
|
|
1048 |
postOpenWith:aBuilder
|
|
1049 |
|
|
1050 |
super postOpenWith:aBuilder.
|
|
1051 |
self viewedColumnsChanged.
|
|
1052 |
self updateList.
|
|
1053 |
self startUpdateProcess.
|
|
1054 |
self selectionChanged.
|
|
1055 |
self windowGroup addPreEventHook:self.
|
|
1056 |
! !
|
|
1057 |
|
|
1058 |
!ProcessMonitorV2 methodsFor:'menu actions'!
|
|
1059 |
|
|
1060 |
abortProcess
|
|
1061 |
"abort (raise AbortSignal in) the selected process"
|
|
1062 |
|
|
1063 |
self selectedProcessesDo:[:p |
|
|
1064 |
p abort
|
|
1065 |
]
|
|
1066 |
!
|
|
1067 |
|
|
1068 |
debugProcess
|
|
1069 |
"open a debugger on the selected process"
|
|
1070 |
|
|
1071 |
self selectedProcessesDo:[:p |
|
|
1072 |
Debugger openOn:p
|
|
1073 |
]
|
|
1074 |
!
|
|
1075 |
|
|
1076 |
debugWhenResumed
|
|
1077 |
self selectedProcessesDo:[:p |
|
|
1078 |
p addInterruptAction:[Debugger enter]
|
|
1079 |
]
|
|
1080 |
!
|
|
1081 |
|
|
1082 |
hardTerminateProcess
|
|
1083 |
"hard terminate the selected process"
|
|
1084 |
|
|
1085 |
self selectedProcessesSend:#terminateNoSignal
|
|
1086 |
!
|
|
1087 |
|
|
1088 |
inspectSelection
|
|
1089 |
"open an inspector on the selected process"
|
|
1090 |
|
|
1091 |
self selectedProcessesSend:#inspect
|
|
1092 |
!
|
|
1093 |
|
|
1094 |
lowerPrio
|
|
1095 |
"lower the selected processes priority"
|
|
1096 |
|
|
1097 |
self selectedProcessesDo:[:p |
|
|
1098 |
p priority:(p priority - 1)
|
|
1099 |
]
|
|
1100 |
!
|
|
1101 |
|
|
1102 |
openAboutThisApplication
|
|
1103 |
"This method was generated by the Browser.
|
|
1104 |
It will be invoked when the menu-item 'help-about' is selected."
|
|
1105 |
|
|
1106 |
"/ could open a customized aboutBox here ...
|
|
1107 |
super openAboutThisApplication
|
|
1108 |
!
|
|
1109 |
|
|
1110 |
openDocumentation
|
|
1111 |
"This method was generated by the Browser.
|
|
1112 |
It will be invoked when the menu-item 'help-documentation' is selected."
|
|
1113 |
|
|
1114 |
"/ change below as required ...
|
|
1115 |
|
|
1116 |
"/ to open an HTML viewer on some document (under 'doc/online/<language>/' ):
|
|
1117 |
HTMLDocumentView openFullOnDocumentationFile:'TOP.html'.
|
|
1118 |
|
|
1119 |
"/ add application-specific help files under the 'doc/online/<language>/help/appName'
|
|
1120 |
"/ directory, and open a viewer with:
|
|
1121 |
"/ HTMLDocumentView openFullOnDocumentationFile:'help/<MyApplication>/TOP.html'.
|
|
1122 |
!
|
|
1123 |
|
|
1124 |
raisePrio
|
|
1125 |
"raise the selected processes priority"
|
|
1126 |
|
|
1127 |
self selectedProcessesDo:[:p |
|
|
1128 |
p priority:(p priority + 1)
|
|
1129 |
]
|
|
1130 |
!
|
|
1131 |
|
|
1132 |
restartProcess
|
|
1133 |
"abort (raise AbortSignal in) the selected process"
|
|
1134 |
|
|
1135 |
self selectedProcessesDo:[:p |
|
|
1136 |
p restart.
|
|
1137 |
]
|
|
1138 |
!
|
|
1139 |
|
|
1140 |
resumeProcess
|
|
1141 |
"resume the selected process (i.e. let it run) "
|
|
1142 |
|
|
1143 |
self selectedProcessesSend:#resume
|
|
1144 |
!
|
|
1145 |
|
|
1146 |
stopProcess
|
|
1147 |
"stop the selected process - not even interrupts will wake it up"
|
|
1148 |
|
|
1149 |
self selectedProcessesSend:#stop
|
|
1150 |
!
|
|
1151 |
|
|
1152 |
suspendProcess
|
|
1153 |
"suspend the selected process - interrupts will let it run again"
|
|
1154 |
|
|
1155 |
self selectedProcessesSend:#suspend
|
|
1156 |
!
|
|
1157 |
|
|
1158 |
terminateProcess
|
|
1159 |
"terminate the selected process"
|
|
1160 |
|
|
1161 |
self selectedProcessesSend:#terminate.
|
|
1162 |
self updateList.
|
|
1163 |
!
|
|
1164 |
|
|
1165 |
terminateProcessGroup
|
|
1166 |
"terminate the selected process with all of its subprocesses"
|
|
1167 |
|
|
1168 |
self selectedProcessesSend:#terminateGroup.
|
|
1169 |
self updateList.
|
|
1170 |
! !
|
|
1171 |
|
|
1172 |
!ProcessMonitorV2 methodsFor:'queries'!
|
|
1173 |
|
|
1174 |
needFullInformation
|
|
1175 |
|
|
1176 |
^ true
|
|
1177 |
"/ ^ (self showUsedStack value or:[
|
|
1178 |
"/ self showTotalStack value or:[
|
|
1179 |
"/ self showCurrentSegment value or:[
|
|
1180 |
"/ self showSwitch value]]])
|
|
1181 |
!
|
|
1182 |
|
|
1183 |
showDetail
|
|
1184 |
! !
|
|
1185 |
|
|
1186 |
!ProcessMonitorV2 methodsFor:'queries - table string'!
|
|
1187 |
|
|
1188 |
getCurrentSegmentStringFor:con
|
|
1189 |
|
|
1190 |
con notNil ifTrue:[
|
|
1191 |
| contextCount c sender|
|
|
1192 |
contextCount := 1.
|
|
1193 |
c := con.
|
|
1194 |
[(sender := c sender) notNil] whileTrue:[
|
|
1195 |
c := sender.
|
|
1196 |
contextCount := contextCount + 1.
|
|
1197 |
].
|
|
1198 |
^ (((ObjectMemory addressOf:con) printStringRadix:16),
|
|
1199 |
' .. ',
|
|
1200 |
((ObjectMemory addressOf:c) printStringRadix:16)).
|
|
1201 |
].
|
|
1202 |
!
|
|
1203 |
|
|
1204 |
getGroupStringFor:aProcess
|
|
1205 |
|
|
1206 |
|gId|
|
|
1207 |
|
|
1208 |
gId := aProcess processGroupId.
|
|
1209 |
((gId == aProcess id) or:[gId isNil]) ifTrue:[
|
|
1210 |
"/ a group leader
|
|
1211 |
^ '-'.
|
|
1212 |
] ifFalse:[
|
|
1213 |
^ gId.
|
|
1214 |
].
|
|
1215 |
!
|
|
1216 |
|
|
1217 |
getPrioStringFor:aProcess
|
|
1218 |
|
|
1219 |
|prioRange|
|
|
1220 |
|
|
1221 |
Processor supportDynamicPriorities ifTrue:[
|
|
1222 |
(prioRange := aProcess priorityRange) isNil ifTrue:[
|
|
1223 |
^ aProcess priority asString.
|
|
1224 |
] ifFalse:[
|
|
1225 |
^ (aProcess priority asString,
|
|
1226 |
' [',
|
|
1227 |
prioRange start printString,
|
|
1228 |
'..',
|
|
1229 |
prioRange stop printString,
|
|
1230 |
']').
|
|
1231 |
].
|
|
1232 |
].
|
|
1233 |
!
|
|
1234 |
|
|
1235 |
getStateStringFor:aProcess running:isRunning
|
|
1236 |
|
|
1237 |
|st stateCharacter |
|
|
1238 |
|
|
1239 |
st := aProcess state.
|
|
1240 |
isRunning ifTrue:[
|
|
1241 |
stateCharacter := '* '.
|
|
1242 |
] ifFalse:[
|
|
1243 |
[
|
|
1244 |
(Processor scheduledProcesses includes:aProcess) ifTrue:[
|
|
1245 |
stateCharacter := '+ '
|
|
1246 |
] ifFalse:[
|
|
1247 |
stateCharacter := ' '.
|
|
1248 |
].
|
|
1249 |
] valueUninterruptably.
|
|
1250 |
].
|
|
1251 |
^ stateCharacter, (st asString).
|
|
1252 |
!
|
|
1253 |
|
|
1254 |
getTotalStackStringFor:aProcess
|
|
1255 |
|
|
1256 |
|
|
1257 |
aProcess id == 0 ifTrue:[
|
|
1258 |
^ 'unlimited'.
|
|
1259 |
] ifFalse:[
|
|
1260 |
| tStackSize noOfSegs |
|
|
1261 |
((tStackSize := aProcess totalStackSize) notNil and:[
|
|
1262 |
(noOfSegs := aProcess numberOfStackSegments) notNil
|
|
1263 |
]) ifTrue:[
|
|
1264 |
^ ((tStackSize printString),
|
|
1265 |
' (',
|
|
1266 |
(noOfSegs printString),
|
|
1267 |
')' )
|
|
1268 |
]
|
|
1269 |
].
|
|
1270 |
!
|
|
1271 |
|
|
1272 |
getWhereStringFor:con running:isRunning
|
|
1273 |
|
|
1274 |
con notNil ifTrue:[
|
|
1275 |
| c found skipping|
|
|
1276 |
c := con.
|
|
1277 |
found := false.
|
|
1278 |
isRunning ifFalse:[
|
|
1279 |
"/ search for a semaphore-wait in the top 10 contexts
|
|
1280 |
|
|
1281 |
1 to:10 do:[:n |
|
|
1282 |
found ifFalse:[
|
|
1283 |
c notNil ifTrue:[
|
|
1284 |
(c receiver class == Semaphore) ifTrue:[
|
|
1285 |
c selector == #wait ifTrue:[
|
|
1286 |
found := true.
|
|
1287 |
]
|
|
1288 |
].
|
|
1289 |
c := c sender.
|
|
1290 |
]
|
|
1291 |
]
|
|
1292 |
].
|
|
1293 |
].
|
|
1294 |
found ifFalse:[
|
|
1295 |
"/ search for a non-processor, non-process
|
|
1296 |
"/ receiver in the top 10 contexts
|
|
1297 |
|
|
1298 |
c := con.
|
|
1299 |
1 to:10 do:[:n |
|
|
1300 |
|r|
|
|
1301 |
|
|
1302 |
found ifFalse:[
|
|
1303 |
c notNil ifTrue:[
|
|
1304 |
((r := c receiver) ~~ Processor
|
|
1305 |
and:[r class ~~ Process]) ifTrue:[
|
|
1306 |
found := true.
|
|
1307 |
] ifFalse:[
|
|
1308 |
c := c sender.
|
|
1309 |
]
|
|
1310 |
]
|
|
1311 |
]
|
|
1312 |
]
|
|
1313 |
].
|
|
1314 |
found ifFalse:[
|
|
1315 |
c := con
|
|
1316 |
].
|
|
1317 |
|
|
1318 |
"/ skip, until an interesting context is
|
|
1319 |
"/ found.
|
|
1320 |
"/ this skips intermediate contexts, which lead
|
|
1321 |
"/ to the sema-wait (for example, unwind blocks,
|
|
1322 |
"/ delay-stuff etc.)
|
|
1323 |
|
|
1324 |
skipping := true.
|
|
1325 |
[skipping] whileTrue:[
|
|
1326 |
skipping := false.
|
|
1327 |
(c notNil
|
|
1328 |
and:[c receiver == Delay
|
|
1329 |
or:[c receiver class == Delay]]) ifTrue:[
|
|
1330 |
c := c sender.
|
|
1331 |
skipping := true.
|
|
1332 |
].
|
|
1333 |
|
|
1334 |
[c notNil
|
|
1335 |
and:[c receiver isBlock
|
|
1336 |
and:[c selector startsWith:'value']]] whileTrue:[
|
|
1337 |
c := c sender.
|
|
1338 |
skipping := true.
|
|
1339 |
].
|
|
1340 |
|
|
1341 |
[c notNil
|
|
1342 |
and:[c receiver isBlock
|
|
1343 |
and:[c selector = 'ensure:']]] whileTrue:[
|
|
1344 |
c := c sender.
|
|
1345 |
skipping := true.
|
|
1346 |
].
|
|
1347 |
|
|
1348 |
[c notNil
|
|
1349 |
and:[c receiver == OperatingSystem
|
|
1350 |
and:[c selector == #unblockInterrupts]]] whileTrue:[
|
|
1351 |
c := c sender.
|
|
1352 |
skipping := true.
|
|
1353 |
].
|
|
1354 |
|
|
1355 |
[c notNil and:[c isBlockContext]] whileTrue:[
|
|
1356 |
c := c home.
|
|
1357 |
skipping := true.
|
|
1358 |
].
|
|
1359 |
].
|
|
1360 |
|
|
1361 |
c notNil ifTrue:[
|
|
1362 |
| sel |
|
|
1363 |
sel := c selector.
|
|
1364 |
sel isNil ifTrue:[
|
|
1365 |
sel := '* unknown *'
|
|
1366 |
].
|
|
1367 |
^ (c receiver class name,
|
|
1368 |
'>>',
|
|
1369 |
sel).
|
|
1370 |
]
|
|
1371 |
].
|
|
1372 |
! !
|
|
1373 |
|
|
1374 |
!ProcessMonitorV2 methodsFor:'sorting'!
|
|
1375 |
|
|
1376 |
sortProcessListBy:instanceName
|
|
1377 |
"method to sort the list of BugReport"
|
|
1378 |
|
|
1379 |
| aSymbol isReverse cmpOp currentSortOrder|
|
|
1380 |
|
|
1381 |
aSymbol := instanceName asSymbol.
|
|
1382 |
isReverse := false.
|
|
1383 |
currentSortOrder := self currentSortOrder value.
|
|
1384 |
currentSortOrder isEmpty ifTrue:[
|
|
1385 |
currentSortOrder at:#column put:aSymbol.
|
|
1386 |
currentSortOrder at:#reverse put:false.
|
|
1387 |
] ifFalse:[
|
|
1388 |
(currentSortOrder at:#column) = aSymbol ifTrue:[
|
|
1389 |
"/ same column like before - change sort order ifReverse is true
|
|
1390 |
isReverse := currentSortOrder at:#reverse.
|
|
1391 |
currentSortOrder at:#reverse put:(isReverse not).
|
|
1392 |
] ifFalse:[
|
|
1393 |
"/ another column - remark column
|
|
1394 |
currentSortOrder at:#column put:aSymbol.
|
|
1395 |
]
|
|
1396 |
].
|
|
1397 |
self viewedColumnsChanged.
|
|
1398 |
(currentSortOrder at:#reverse) ifTrue:[
|
|
1399 |
cmpOp := #'>'
|
|
1400 |
] ifFalse:[
|
|
1401 |
cmpOp := #'<'
|
|
1402 |
].
|
|
1403 |
sortBlock := [:a :b |
|
|
1404 |
|entry1 entry2|
|
|
1405 |
|
|
1406 |
entry1 := (a perform:aSymbol).
|
|
1407 |
entry2 := (b perform:aSymbol).
|
|
1408 |
entry1 perform:cmpOp with:entry2
|
|
1409 |
].
|
|
1410 |
updateSema critical:[
|
|
1411 |
| oldList |
|
|
1412 |
oldList := self processList copy.
|
|
1413 |
self processList contents:(oldList sort:sortBlock)
|
|
1414 |
].
|
|
1415 |
! !
|
|
1416 |
|
|
1417 |
!ProcessMonitorV2 methodsFor:'update process'!
|
|
1418 |
|
|
1419 |
createItemWith:aProcess
|
|
1420 |
|
|
1421 |
| running con processItem|
|
|
1422 |
|
|
1423 |
processItem := ProcessItem new.
|
|
1424 |
|
|
1425 |
processItem processInstance:aProcess.
|
|
1426 |
|
|
1427 |
processItem processId:aProcess id.
|
|
1428 |
processItem idVal:aProcess id ? -1.
|
|
1429 |
|
|
1430 |
processItem processGroup:(self getGroupStringFor:aProcess).
|
|
1431 |
processItem groupVal:(processItem processGroup isNumber ifTrue:[processItem processGroup] ifFalse:[-1]).
|
|
1432 |
|
|
1433 |
processItem processName:aProcess name ? ''.
|
|
1434 |
|
|
1435 |
running := (aProcess state == #run and:[aProcess == Processor interruptedProcess]).
|
|
1436 |
|
|
1437 |
processItem processState:(self getStateStringFor:aProcess running:running).
|
|
1438 |
|
|
1439 |
processItem prioVal:(aProcess priority).
|
|
1440 |
processItem processPrio:(self getPrioStringFor:aProcess).
|
|
1441 |
|
|
1442 |
processItem processUsedStack:aProcess usedStackSize.
|
|
1443 |
|
|
1444 |
processItem processTotalStack:(self getTotalStackStringFor:aProcess).
|
|
1445 |
|
|
1446 |
con := aProcess suspendedContext.
|
|
1447 |
con isNil ifTrue:[
|
|
1448 |
aProcess == Processor activeProcess ifTrue:[
|
|
1449 |
con := thisContext
|
|
1450 |
]
|
|
1451 |
].
|
|
1452 |
|
|
1453 |
processItem processCurrentSegment:(self getCurrentSegmentStringFor:con).
|
|
1454 |
|
|
1455 |
processItem processSwitch:(aProcess numberOfStackBoundaryHits printString).
|
|
1456 |
|
|
1457 |
processItem processWhere:(self getWhereStringFor:con running:running).
|
|
1458 |
|
|
1459 |
^ processItem
|
|
1460 |
!
|
|
1461 |
|
|
1462 |
startUpdateProcess
|
|
1463 |
updateBlock notNil ifTrue:[
|
|
1464 |
Processor addTimedBlock:updateBlock afterSeconds:updateDelay.
|
|
1465 |
Processor addTimedBlock:listUpdateBlock afterSeconds:listUpdateDelay.
|
|
1466 |
] ifFalse:[
|
|
1467 |
updateProcess := [
|
|
1468 |
[
|
|
1469 |
|id cnt myDelay|
|
|
1470 |
|
|
1471 |
myDelay := Delay forSeconds:updateDelay.
|
|
1472 |
|
|
1473 |
"
|
|
1474 |
every updateDelay (0.5), we look which process runs;
|
|
1475 |
every half second, the status is updated.
|
|
1476 |
every listUpdateDelay (5s), the list of processes is
|
|
1477 |
built up again
|
|
1478 |
"
|
|
1479 |
[true] whileTrue:[
|
|
1480 |
((listUpdateDelay // updateDelay) max:2) - 1 timesRepeat:[
|
|
1481 |
myDelay wait.
|
|
1482 |
self updateStatus:nil.
|
|
1483 |
].
|
|
1484 |
myDelay wait.
|
|
1485 |
self updateList.
|
|
1486 |
]
|
|
1487 |
] valueOnUnwindDo:[
|
|
1488 |
updateProcess := nil
|
|
1489 |
]
|
|
1490 |
] forkAt:(Processor userSchedulingPriority + 1).
|
|
1491 |
updateProcess name:'monitor [' ,
|
|
1492 |
Processor activeProcess id printString ,
|
|
1493 |
'] update'.
|
|
1494 |
"
|
|
1495 |
raise my own priority
|
|
1496 |
"
|
|
1497 |
Processor activeProcess priority:(Processor userSchedulingPriority + 2)
|
|
1498 |
].
|
|
1499 |
!
|
|
1500 |
|
|
1501 |
updateList
|
|
1502 |
|
|
1503 |
|newList|
|
|
1504 |
|
|
1505 |
processTable shown ifTrue:[
|
|
1506 |
newList := self getProcessList.
|
|
1507 |
|
|
1508 |
"sort by id - take care of nil ids of dead processes"
|
|
1509 |
newList sort:[:p1 :p2 |
|
|
1510 |
|id1 id2|
|
|
1511 |
|
|
1512 |
(p1 isNil or:[(id1 := p1 id) isNil])
|
|
1513 |
ifTrue:[true]
|
|
1514 |
ifFalse:[
|
|
1515 |
(p2 isNil or:[(id2 := p2 id) isNil])
|
|
1516 |
ifTrue:[false]
|
|
1517 |
ifFalse:[id1 < id2]
|
|
1518 |
]
|
|
1519 |
].
|
|
1520 |
newList ~= processes ifTrue:[
|
|
1521 |
self updateStatus:newList
|
|
1522 |
].
|
|
1523 |
].
|
|
1524 |
updateBlock notNil ifTrue:[
|
|
1525 |
Processor removeTimedBlock:listUpdateBlock.
|
|
1526 |
Processor addTimedBlock:listUpdateBlock afterSeconds:listUpdateDelay
|
|
1527 |
].
|
|
1528 |
!
|
|
1529 |
|
|
1530 |
updateStatus:newProcessList
|
|
1531 |
|
|
1532 |
|startTime oldSelection newSelection newList dIndex index aProcess processItem endTime deltaT|
|
|
1533 |
|
|
1534 |
startTime := AbsoluteTime now.
|
|
1535 |
|
|
1536 |
processTable shown ifTrue:[
|
|
1537 |
newProcessList notNil ifTrue:[
|
|
1538 |
processes := WeakArray withAll:newProcessList.
|
|
1539 |
((processes findFirst:[:pro1| pro1 id == 0]) ~= 0) ifTrue:[
|
|
1540 |
Transcript showCR:'have'.
|
|
1541 |
].
|
|
1542 |
].
|
|
1543 |
processes notNil ifTrue:[
|
|
1544 |
newList := OrderedCollection new.
|
|
1545 |
|
|
1546 |
dIndex := 1.
|
|
1547 |
index := 1.
|
|
1548 |
|
|
1549 |
"/ use while-loop;
|
|
1550 |
"/ processList may change size ....
|
|
1551 |
|
|
1552 |
[index <= processes size] whileTrue:[
|
|
1553 |
aProcess := processes at:index.
|
|
1554 |
index := index + 1.
|
|
1555 |
(aProcess notNil
|
|
1556 |
and:[aProcess ~~ 0]) ifTrue:[
|
|
1557 |
((aProcess id) notNil or:[self showDead value]) ifTrue:[
|
|
1558 |
processItem := self createItemWith:aProcess.
|
|
1559 |
(((newList select:[:pro2| (pro2 processInstance == processItem processInstance)]) size) > 0) ifTrue:[
|
|
1560 |
Transcript showCR:'process ', processItem processInstance name asString, ' already in list at ', index asString.
|
|
1561 |
].
|
|
1562 |
newList add:processItem.
|
|
1563 |
processes at:dIndex put:aProcess.
|
|
1564 |
]
|
|
1565 |
].
|
|
1566 |
dIndex := dIndex + 1
|
|
1567 |
]
|
|
1568 |
].
|
|
1569 |
updateSema critical:[
|
|
1570 |
oldSelection := self selectedProcesses value.
|
|
1571 |
newList sort:self sortBlock.
|
|
1572 |
processList contents:(newList asList).
|
|
1573 |
oldSelection notNil ifTrue:[
|
|
1574 |
newSelection := OrderedCollection new.
|
|
1575 |
oldSelection do:[:processItem |
|
|
1576 |
index := newList findFirst:[:anItem | (anItem processInstance == processItem processInstance)].
|
|
1577 |
index ~~ 0 ifTrue:[
|
|
1578 |
newSelection add:(newList at:index).
|
|
1579 |
].
|
|
1580 |
]
|
|
1581 |
].
|
|
1582 |
self selectedProcesses value:newSelection.
|
|
1583 |
]
|
|
1584 |
].
|
|
1585 |
endTime := AbsoluteTime now.
|
|
1586 |
deltaT := (endTime millisecondDeltaFrom:startTime) / 1000.0.
|
|
1587 |
"/ Transcript show:deltaT; show:' ' ; showCR:(updateDelay / 10.0).
|
|
1588 |
deltaT > (updateDelay / 5) ifTrue:[
|
|
1589 |
"/ the update took longer than 20% - make delay longer, to reduce cpu load.
|
|
1590 |
updateDelay := updateDelay * 2.
|
|
1591 |
"/ Transcript show:'+++ '; showCR:updateDelay.
|
|
1592 |
] ifFalse:[
|
|
1593 |
updateDelay > 0.5 ifTrue:[
|
|
1594 |
deltaT < (updateDelay / 20) ifTrue:[
|
|
1595 |
"/ the update took less than 5% - make delay smaller for better animation.
|
|
1596 |
updateDelay := (updateDelay / 2) max:0.5.
|
|
1597 |
"/ Transcript show:'--- ';showCR:updateDelay.
|
|
1598 |
].
|
|
1599 |
].
|
|
1600 |
].
|
|
1601 |
|
|
1602 |
updateBlock notNil ifTrue:[
|
|
1603 |
Processor removeTimedBlock:updateBlock.
|
|
1604 |
Processor addTimedBlock:updateBlock afterSeconds:updateDelay
|
|
1605 |
]
|
|
1606 |
!
|
|
1607 |
|
|
1608 |
updateView
|
|
1609 |
self updateList.
|
|
1610 |
self updateStatus:nil
|
|
1611 |
! !
|
|
1612 |
|
|
1613 |
!ProcessMonitorV2::ProcessItem methodsFor:'accessing'!
|
|
1614 |
|
|
1615 |
groupVal
|
|
1616 |
"return the value of the instance variable 'groupVal' (automatically generated)"
|
|
1617 |
|
|
1618 |
^ groupVal
|
|
1619 |
!
|
|
1620 |
|
|
1621 |
groupVal:something
|
|
1622 |
"set the value of the instance variable 'groupVal' (automatically generated)"
|
|
1623 |
|
|
1624 |
groupVal := something.
|
|
1625 |
!
|
|
1626 |
|
|
1627 |
idVal
|
|
1628 |
"return the value of the instance variable 'idVal' (automatically generated)"
|
|
1629 |
|
|
1630 |
^ idVal
|
|
1631 |
!
|
|
1632 |
|
|
1633 |
idVal:something
|
|
1634 |
"set the value of the instance variable 'idVal' (automatically generated)"
|
|
1635 |
|
|
1636 |
idVal := something.
|
|
1637 |
!
|
|
1638 |
|
|
1639 |
prioVal
|
|
1640 |
"return the value of the instance variable 'prioVal' (automatically generated)"
|
|
1641 |
|
|
1642 |
^ prioVal
|
|
1643 |
!
|
|
1644 |
|
|
1645 |
prioVal:something
|
|
1646 |
"set the value of the instance variable 'prioVal' (automatically generated)"
|
|
1647 |
|
|
1648 |
prioVal := something.
|
|
1649 |
!
|
|
1650 |
|
|
1651 |
processCurrentSegment
|
|
1652 |
"return the value of the instance variable 'processCurrentSegment' (automatically generated)"
|
|
1653 |
|
|
1654 |
^ processCurrentSegment
|
|
1655 |
!
|
|
1656 |
|
|
1657 |
processCurrentSegment:something
|
|
1658 |
"set the value of the instance variable 'processCurrentSegment' (automatically generated)"
|
|
1659 |
|
|
1660 |
processCurrentSegment := something.
|
|
1661 |
!
|
|
1662 |
|
|
1663 |
processGroup
|
|
1664 |
"return the value of the instance variable 'processGroup' (automatically generated)"
|
|
1665 |
|
|
1666 |
^ processGroup
|
|
1667 |
!
|
|
1668 |
|
|
1669 |
processGroup:something
|
|
1670 |
"set the value of the instance variable 'processGroup' (automatically generated)"
|
|
1671 |
|
|
1672 |
processGroup := something.
|
|
1673 |
!
|
|
1674 |
|
|
1675 |
processId
|
|
1676 |
"return the value of the instance variable 'processId' (automatically generated)"
|
|
1677 |
|
|
1678 |
^ processId
|
|
1679 |
!
|
|
1680 |
|
|
1681 |
processId:something
|
|
1682 |
"set the value of the instance variable 'processId' (automatically generated)"
|
|
1683 |
|
|
1684 |
processId := something.
|
|
1685 |
!
|
|
1686 |
|
|
1687 |
processInstance
|
|
1688 |
"return the value of the instance variable 'processInstance' (automatically generated)"
|
|
1689 |
|
|
1690 |
^ processInstance
|
|
1691 |
!
|
|
1692 |
|
|
1693 |
processInstance:something
|
|
1694 |
"set the value of the instance variable 'processInstance' (automatically generated)"
|
|
1695 |
|
|
1696 |
processInstance := something.
|
|
1697 |
!
|
|
1698 |
|
|
1699 |
processName
|
|
1700 |
"return the value of the instance variable 'processName' (automatically generated)"
|
|
1701 |
|
|
1702 |
^ processName
|
|
1703 |
!
|
|
1704 |
|
|
1705 |
processName:something
|
|
1706 |
"set the value of the instance variable 'processName' (automatically generated)"
|
|
1707 |
|
|
1708 |
processName := something.
|
|
1709 |
!
|
|
1710 |
|
|
1711 |
processPrio
|
|
1712 |
"return the value of the instance variable 'processPrio' (automatically generated)"
|
|
1713 |
|
|
1714 |
^ processPrio
|
|
1715 |
!
|
|
1716 |
|
|
1717 |
processPrio:something
|
|
1718 |
"set the value of the instance variable 'processPrio' (automatically generated)"
|
|
1719 |
|
|
1720 |
processPrio := something.
|
|
1721 |
!
|
|
1722 |
|
|
1723 |
processState
|
|
1724 |
"return the value of the instance variable 'processState' (automatically generated)"
|
|
1725 |
|
|
1726 |
^ processState
|
|
1727 |
!
|
|
1728 |
|
|
1729 |
processState:something
|
|
1730 |
"set the value of the instance variable 'processState' (automatically generated)"
|
|
1731 |
|
|
1732 |
processState := something.
|
|
1733 |
!
|
|
1734 |
|
|
1735 |
processSwitch
|
|
1736 |
"return the value of the instance variable 'processSwitch' (automatically generated)"
|
|
1737 |
|
|
1738 |
^ processSwitch
|
|
1739 |
!
|
|
1740 |
|
|
1741 |
processSwitch:something
|
|
1742 |
"set the value of the instance variable 'processSwitch' (automatically generated)"
|
|
1743 |
|
|
1744 |
processSwitch := something.
|
|
1745 |
!
|
|
1746 |
|
|
1747 |
processTotalStack
|
|
1748 |
"return the value of the instance variable 'processTotalStack' (automatically generated)"
|
|
1749 |
|
|
1750 |
^ processTotalStack
|
|
1751 |
!
|
|
1752 |
|
|
1753 |
processTotalStack:something
|
|
1754 |
"set the value of the instance variable 'processTotalStack' (automatically generated)"
|
|
1755 |
|
|
1756 |
processTotalStack := something.
|
|
1757 |
!
|
|
1758 |
|
|
1759 |
processUsedStack
|
|
1760 |
"return the value of the instance variable 'processUsedStack' (automatically generated)"
|
|
1761 |
|
|
1762 |
^ processUsedStack
|
|
1763 |
!
|
|
1764 |
|
|
1765 |
processUsedStack:something
|
|
1766 |
"set the value of the instance variable 'processUsedStack' (automatically generated)"
|
|
1767 |
|
|
1768 |
processUsedStack := something.
|
|
1769 |
!
|
|
1770 |
|
|
1771 |
processWhere
|
|
1772 |
"return the value of the instance variable 'processWhere' (automatically generated)"
|
|
1773 |
|
|
1774 |
^ processWhere
|
|
1775 |
!
|
|
1776 |
|
|
1777 |
processWhere:something
|
|
1778 |
"set the value of the instance variable 'processWhere' (automatically generated)"
|
|
1779 |
|
|
1780 |
processWhere := something.
|
|
1781 |
! !
|
|
1782 |
|
|
1783 |
!ProcessMonitorV2 class methodsFor:'documentation'!
|
|
1784 |
|
|
1785 |
version
|
|
1786 |
^ '$Header: /cvs/stx/stx/libtool/ProcessMonitorV2.st,v 1.1 2003-01-21 15:17:24 penk Exp $'
|
|
1787 |
! !
|