45
|
1 |
"
|
49
|
2 |
COPYRIGHT (c) 1991 by Claus Gittinger
|
45
|
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 |
"
|
19
|
12 |
|
|
13 |
StandardSystemView subclass:#MemoryMonitor
|
49
|
14 |
instanceVariableNames:'updateInterval updateBlock myProcess oldData newData
|
52
|
15 |
freeData updateIndex org maxTotal minTotal dX
|
|
16 |
newColor freeColor oldColor
|
|
17 |
prevTotal prevFree prevFree2 prevOld scale'
|
45
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'Interface-Tools'
|
19
|
21 |
!
|
|
22 |
|
|
23 |
MemoryMonitor comment:'
|
49
|
24 |
COPYRIGHT (c) 1991 by Claus Gittinger
|
|
25 |
All Rights Reserved
|
|
26 |
|
57
|
27 |
$Header: /cvs/stx/stx/libtool/MemoryMonitor.st,v 1.6 1995-02-06 01:00:07 claus Exp $
|
19
|
28 |
'!
|
|
29 |
|
49
|
30 |
!MemoryMonitor class methodsFor:'documentation'!
|
|
31 |
|
|
32 |
copyright
|
|
33 |
"
|
|
34 |
COPYRIGHT (c) 1991 by Claus Gittinger
|
|
35 |
All Rights Reserved
|
|
36 |
|
|
37 |
This software is furnished under a license and may be used
|
|
38 |
only in accordance with the terms of that license and with the
|
|
39 |
inclusion of the above copyright notice. This software may not
|
|
40 |
be provided or otherwise made available to, or used by, any
|
|
41 |
other person. No title to or ownership of the software is
|
|
42 |
hereby transferred.
|
|
43 |
"
|
|
44 |
!
|
|
45 |
|
|
46 |
version
|
|
47 |
"
|
57
|
48 |
$Header: /cvs/stx/stx/libtool/MemoryMonitor.st,v 1.6 1995-02-06 01:00:07 claus Exp $
|
49
|
49 |
"
|
|
50 |
!
|
|
51 |
|
|
52 |
documentation
|
|
53 |
"
|
|
54 |
Shows memory usage (oldspace + newspace). Simple, but useful.
|
|
55 |
|
|
56 |
The numbers shown are:
|
|
57 |
tot total memory usage (i.e. allocated oldSpace + allocated newSpace)
|
|
58 |
(does not include the second semispace and other help-areas,
|
|
59 |
such as the remembered set etc.)
|
|
60 |
|
|
61 |
all current oldSpace in use + newSpace in use
|
|
62 |
|
|
63 |
new current newSpace in use
|
|
64 |
|
52
|
65 |
frl free space in (fragmented) free lists
|
|
66 |
fre compact free area above the used oldSpace
|
49
|
67 |
|
|
68 |
old current oldSpace in use
|
|
69 |
|
52
|
70 |
max, extreme values of 'tot' since the monitor started
|
|
71 |
min (can be reset by typing 'r' in the view)
|
49
|
72 |
|
|
73 |
t tenure threshold
|
|
74 |
|
|
75 |
I incremental GC state
|
|
76 |
|
52
|
77 |
% percentage of live objects in newSpace after last scavenge
|
|
78 |
(i.e. this is the garbage vs. living objects ratio of
|
|
79 |
newSpace objects after the last scavenge)
|
|
80 |
|
49
|
81 |
the graphic shows:
|
|
82 |
yellow newSpace used
|
|
83 |
green free memory in freeLists
|
|
84 |
white oldSpace used
|
52
|
85 |
|
|
86 |
|
|
87 |
the popupMenu offers GC functions; keyboard options are:
|
|
88 |
'f' -> faster; 's' -> slower; 'r' -> reset min/max
|
49
|
89 |
"
|
|
90 |
! !
|
|
91 |
|
|
92 |
!MemoryMonitor class methodsFor:'defaults'!
|
|
93 |
|
|
94 |
defaultExtent
|
|
95 |
^ (200 @ 200)
|
52
|
96 |
!
|
19
|
97 |
|
52
|
98 |
defaultLabel
|
|
99 |
^ 'Memory Monitor'
|
|
100 |
!
|
19
|
101 |
|
52
|
102 |
defaultIcon
|
|
103 |
|i|
|
19
|
104 |
|
56
|
105 |
i := Image fromFile:'bitmaps/MemMonitor.xbm'.
|
52
|
106 |
i notNil ifTrue:[^ i].
|
|
107 |
^ super defaultIcon
|
19
|
108 |
! !
|
|
109 |
|
|
110 |
!MemoryMonitor methodsFor:'drawing'!
|
|
111 |
|
49
|
112 |
redraw
|
|
113 |
"redraw all"
|
|
114 |
|
|
115 |
self clear.
|
|
116 |
self redrawX:0 y:0 width:width height:height
|
|
117 |
!
|
|
118 |
|
|
119 |
redrawX:x y:y width:w height:h
|
|
120 |
"redraw data"
|
|
121 |
|
52
|
122 |
|total oldSpaceUsed newSpaceUsed freeMem lx s startIdx endIdx
|
|
123 |
right|
|
49
|
124 |
|
|
125 |
shown ifFalse:[^ self].
|
|
126 |
|
52
|
127 |
right := x + w - 1.
|
|
128 |
right >= org ifTrue:[
|
49
|
129 |
lx := x.
|
|
130 |
lx < org ifTrue:[
|
|
131 |
lx := org
|
|
132 |
].
|
|
133 |
|
57
|
134 |
total := ObjectMemory fixSpaceSize
|
|
135 |
+ ObjectMemory oldSpaceSize
|
|
136 |
+ ObjectMemory newSpaceSize.
|
49
|
137 |
|
52
|
138 |
startIdx := (lx-org+1).
|
49
|
139 |
startIdx < 1 ifTrue:[
|
|
140 |
startIdx := 1
|
|
141 |
].
|
|
142 |
|
52
|
143 |
endIdx := right-org+1.
|
49
|
144 |
endIdx >= updateIndex ifTrue:[
|
|
145 |
endIdx := updateIndex-1.
|
|
146 |
].
|
|
147 |
dX := 0.
|
|
148 |
|
|
149 |
startIdx to:endIdx do:[:i |
|
|
150 |
newSpaceUsed := newData at:i.
|
|
151 |
newSpaceUsed notNil ifTrue:[
|
|
152 |
oldSpaceUsed := oldData at:i.
|
|
153 |
freeMem := freeData at:i.
|
|
154 |
|
|
155 |
self updateLineX:lx - dX
|
|
156 |
total:total
|
|
157 |
old:oldSpaceUsed
|
|
158 |
new:newSpaceUsed
|
52
|
159 |
free:freeMem.
|
49
|
160 |
].
|
|
161 |
lx := lx + 1
|
|
162 |
]
|
|
163 |
].
|
|
164 |
|
|
165 |
x < org ifTrue:[
|
|
166 |
prevFree := prevFree2 := prevOld := prevTotal := nil.
|
|
167 |
|
|
168 |
self updateNumbers.
|
|
169 |
]
|
|
170 |
!
|
|
171 |
|
52
|
172 |
updateLineX:x total:total old:oldSpaceUsed new:newSpaceUsed free:freeMem
|
49
|
173 |
|hNew hOld hFree y1 y2|
|
|
174 |
|
|
175 |
hNew := (newSpaceUsed * scale) asInteger.
|
52
|
176 |
hOld := (oldSpaceUsed * scale) // 2.
|
49
|
177 |
hFree := (freeMem * scale) asInteger.
|
|
178 |
|
|
179 |
y1 := height - 1.
|
|
180 |
y2 := y1 - hOld.
|
|
181 |
self paint:oldColor.
|
|
182 |
self displayLineFromX:x y:y1 toX:x y:y2.
|
|
183 |
|
|
184 |
y1 := y2.
|
|
185 |
y2 := y1 - hFree.
|
|
186 |
self paint:freeColor.
|
|
187 |
self displayLineFromX:x y:y1 toX:x y:y2.
|
|
188 |
|
|
189 |
y1 := y2.
|
|
190 |
y2 := y1 - hNew.
|
|
191 |
self paint:newColor.
|
|
192 |
self displayLineFromX:x y:y1 toX:x y:y2.
|
|
193 |
!
|
|
194 |
|
|
195 |
updateNumbers
|
|
196 |
"redraw numbers.
|
|
197 |
The values shown are:
|
|
198 |
max: maximum memory used since monitor started
|
|
199 |
min: minimum memory used since monitor started
|
|
200 |
tot: total memory used (overall oldSpace + overall newSpace)
|
|
201 |
all: current memory in use (oldSpace + newSpace)
|
|
202 |
new: current newSpace in use
|
|
203 |
free: current size of freelist in oldSpace
|
|
204 |
old: current oldSpace in use
|
|
205 |
"
|
|
206 |
|
|
207 |
|oldSpaceSize newSpaceSize memUsed oldMemUsed newMemUsed freeMem free2
|
52
|
208 |
x y half s thisStringLen fontHeight total n|
|
49
|
209 |
|
57
|
210 |
oldMemUsed := ObjectMemory oldSpaceUsed + ObjectMemory fixSpaceUsed.
|
49
|
211 |
newMemUsed := ObjectMemory newSpaceUsed.
|
|
212 |
freeMem := ObjectMemory freeListSpace.
|
57
|
213 |
oldSpaceSize := ObjectMemory oldSpaceSize + ObjectMemory fixSpaceSize.
|
49
|
214 |
newSpaceSize := ObjectMemory newSpaceSize.
|
|
215 |
|
|
216 |
memUsed := oldMemUsed + newMemUsed "- freeMem".
|
|
217 |
total := oldSpaceSize + newSpaceSize.
|
|
218 |
free2 := oldSpaceSize - oldMemUsed.
|
|
219 |
|
|
220 |
self paint:White on:Black.
|
|
221 |
|
|
222 |
fontHeight := font height + font descent.
|
|
223 |
half := height // 2 + font descent.
|
|
224 |
|
|
225 |
y := half - (fontHeight * 3).
|
|
226 |
|
|
227 |
total ~~ prevTotal ifTrue:[
|
52
|
228 |
((total - freeMem) < minTotal) ifTrue:[
|
|
229 |
minTotal := total - freeMem.
|
|
230 |
].
|
|
231 |
(total > maxTotal) ifTrue:[
|
|
232 |
maxTotal := total.
|
|
233 |
].
|
|
234 |
|
|
235 |
s := 'max ' , ((maxTotal // 1024) printStringRightAdjustLen:5) , 'k '.
|
|
236 |
self displayOpaqueString:s x:0 y:font ascent.
|
|
237 |
|
|
238 |
s := 'min ' , ((minTotal // 1024) printStringRightAdjustLen:5) , 'k '.
|
|
239 |
self displayOpaqueString:s x:0 y:(height - font descent).
|
|
240 |
|
49
|
241 |
s := 'tot ' , ((total // 1024) printStringRightAdjustLen:5) , 'k '.
|
|
242 |
self displayOpaqueString:s x:0 y:y.
|
52
|
243 |
|
49
|
244 |
prevTotal := total.
|
|
245 |
].
|
|
246 |
|
|
247 |
y := y + fontHeight.
|
|
248 |
s := 'all ' , ((memUsed // 1024) printStringRightAdjustLen:5) , 'k '.
|
|
249 |
self displayOpaqueString:s x:0 y:y.
|
|
250 |
|
|
251 |
y := y + fontHeight.
|
|
252 |
self paint:newColor.
|
|
253 |
s := 'new ' , ((newMemUsed // 1024) printStringRightAdjustLen:5) , 'k '.
|
|
254 |
self displayOpaqueString:s x:0 y:y.
|
|
255 |
|
|
256 |
y := y + fontHeight.
|
|
257 |
freeMem ~~ prevFree ifTrue:[
|
|
258 |
self paint:freeColor.
|
52
|
259 |
s := 'frl ' , ((freeMem // 1024) printStringRightAdjustLen:5) , 'k '.
|
49
|
260 |
self displayOpaqueString:s x:0 y:y.
|
|
261 |
prevFree := freeMem.
|
|
262 |
].
|
|
263 |
|
|
264 |
y := y + fontHeight.
|
|
265 |
free2 ~~ prevFree2 ifTrue:[
|
|
266 |
self paint:freeColor.
|
52
|
267 |
s := 'fre ' , ((free2 // 1024) printStringRightAdjustLen:5) , 'k '.
|
49
|
268 |
self displayOpaqueString:s x:0 y:y.
|
|
269 |
prevFree2 := free2.
|
|
270 |
].
|
|
271 |
|
|
272 |
y := y + fontHeight.
|
|
273 |
(oldMemUsed - freeMem) ~~ prevOld ifTrue:[
|
|
274 |
self paint:oldColor.
|
|
275 |
s := 'old ' , (((oldMemUsed - freeMem) // 1024) printStringRightAdjustLen:5) , 'k '.
|
|
276 |
self displayOpaqueString:s x:0 y:y.
|
|
277 |
prevOld := (oldMemUsed - freeMem).
|
|
278 |
].
|
|
279 |
|
|
280 |
"
|
|
281 |
the following is internal - normally only interresting when debugging the VM
|
|
282 |
"
|
|
283 |
y := y + fontHeight.
|
|
284 |
self paint:oldColor.
|
|
285 |
s := 't:' , (ObjectMemory tenureAge printStringRightAdjustLen:2) , ' '.
|
|
286 |
s := s , 'I:' , (ObjectMemory incrementalGCPhase printStringRightAdjustLen:2) , ' '.
|
|
287 |
self displayOpaqueString:s x:0 y:y.
|
|
288 |
|
|
289 |
"/ does no longer make sense to show ....
|
|
290 |
"/ y := y + fontHeight.
|
|
291 |
"/ ObjectMemory runsSingleOldSpace ifTrue:[
|
|
292 |
"/ self displayOpaqueString:'single' x:0 y:(half + (fontHeight*4)).
|
|
293 |
"/ ].
|
|
294 |
|
52
|
295 |
y := y + fontHeight.
|
|
296 |
n := ObjectMemory lastScavangeReclamation / ObjectMemory newSpaceSize * 100.0.
|
|
297 |
n := 100 - n asInteger.
|
|
298 |
s := (n printStringRightAdjustLen:2) , '%'.
|
|
299 |
self displayOpaqueString:s x:0 y:y.
|
49
|
300 |
!
|
|
301 |
|
19
|
302 |
updateDisplay
|
|
303 |
"update picture; trigger next update"
|
|
304 |
|
49
|
305 |
|total oldSpaceUsed newSpaceUsed freeMem
|
52
|
306 |
gWidth shift scaleChange margin mustWait|
|
19
|
307 |
|
45
|
308 |
shown ifTrue:[
|
57
|
309 |
oldSpaceUsed := ObjectMemory oldSpaceUsed + ObjectMemory fixSpaceUsed.
|
49
|
310 |
newSpaceUsed := ObjectMemory newSpaceUsed.
|
45
|
311 |
freeMem := ObjectMemory freeListSpace.
|
49
|
312 |
total := oldSpaceUsed + newSpaceUsed.
|
19
|
313 |
|
45
|
314 |
scaleChange := false.
|
52
|
315 |
|
49
|
316 |
((total - freeMem) < minTotal) ifTrue:[
|
|
317 |
minTotal := total - freeMem.
|
45
|
318 |
scaleChange := true
|
|
319 |
].
|
49
|
320 |
(total > maxTotal) ifTrue:[
|
|
321 |
maxTotal := total.
|
45
|
322 |
scaleChange := true
|
|
323 |
].
|
49
|
324 |
|
|
325 |
oldData at:updateIndex put:oldSpaceUsed.
|
|
326 |
newData at:updateIndex put:newSpaceUsed.
|
|
327 |
freeData at:updateIndex put:freeMem.
|
|
328 |
updateIndex := updateIndex + 1.
|
|
329 |
|
45
|
330 |
scaleChange ifTrue:[
|
52
|
331 |
scale := height asFloat / (maxTotal + 100000).
|
45
|
332 |
self redraw
|
|
333 |
].
|
19
|
334 |
|
49
|
335 |
gWidth := width - org.
|
|
336 |
margin := 1.
|
45
|
337 |
|
52
|
338 |
mustWait := false.
|
49
|
339 |
((updateIndex-1) >= (gWidth - margin)) ifTrue:[
|
|
340 |
"on slow displays, use:"
|
|
341 |
"/ shift := gWidth // 4.
|
45
|
342 |
|
49
|
343 |
"for smooth display, use:"
|
|
344 |
shift := 1.
|
19
|
345 |
|
49
|
346 |
oldData replaceFrom:1 with:oldData startingAt:shift+1.
|
|
347 |
newData replaceFrom:1 with:newData startingAt:shift+1.
|
|
348 |
freeData replaceFrom:1 with:freeData startingAt:shift+1.
|
45
|
349 |
|
49
|
350 |
updateIndex := updateIndex - shift.
|
|
351 |
dX := dX + shift.
|
19
|
352 |
|
49
|
353 |
self catchExpose.
|
|
354 |
self copyFrom:self
|
|
355 |
x:(org + shift) y:0
|
|
356 |
toX:org y:0
|
|
357 |
width:(gWidth - shift - margin)
|
|
358 |
height:height.
|
|
359 |
self clearRectangleX:(width - margin - shift) y:0
|
|
360 |
width:shift height:height.
|
52
|
361 |
mustWait := true.
|
45
|
362 |
].
|
19
|
363 |
|
52
|
364 |
self updateLineX:(updateIndex - 1 + org - 1)
|
49
|
365 |
total:total
|
|
366 |
old:oldSpaceUsed
|
|
367 |
new:newSpaceUsed
|
52
|
368 |
free:freeMem.
|
45
|
369 |
|
49
|
370 |
self updateNumbers.
|
52
|
371 |
mustWait ifTrue:[
|
|
372 |
self waitForExpose.
|
|
373 |
]
|
45
|
374 |
|
19
|
375 |
].
|
|
376 |
|
45
|
377 |
updateBlock notNil ifTrue:[
|
|
378 |
Processor addTimedBlock:updateBlock afterSeconds:updateInterval
|
19
|
379 |
].
|
45
|
380 |
! !
|
|
381 |
|
|
382 |
!MemoryMonitor methodsFor:'destroying'!
|
|
383 |
|
|
384 |
destroy
|
|
385 |
updateBlock notNil ifTrue:[
|
|
386 |
Processor removeTimedBlock:updateBlock.
|
|
387 |
] ifFalse:[
|
|
388 |
myProcess terminate.
|
|
389 |
myProcess := nil
|
19
|
390 |
].
|
49
|
391 |
oldData := newData := freeData := nil.
|
45
|
392 |
super destroy
|
19
|
393 |
! !
|
|
394 |
|
|
395 |
!MemoryMonitor methodsFor:'events'!
|
|
396 |
|
|
397 |
keyPress:key x:x y:y
|
|
398 |
key == $f ifTrue:[
|
52
|
399 |
"faster"
|
45
|
400 |
updateInterval := updateInterval / 2
|
19
|
401 |
].
|
|
402 |
key == $s ifTrue:[
|
52
|
403 |
"slower"
|
45
|
404 |
updateInterval := updateInterval * 2
|
52
|
405 |
].
|
|
406 |
key == $r ifTrue:[
|
|
407 |
"reset max"
|
|
408 |
maxTotal := prevTotal.
|
|
409 |
scale := height asFloat / (maxTotal + 100000).
|
|
410 |
self redraw.
|
19
|
411 |
]
|
|
412 |
!
|
|
413 |
|
49
|
414 |
sizeChanged:how
|
|
415 |
|nn no nf delta oldSize newSize|
|
|
416 |
|
|
417 |
super sizeChanged:how.
|
19
|
418 |
|
45
|
419 |
oldSize := oldData size.
|
49
|
420 |
newSize := width-org+1.
|
|
421 |
|
|
422 |
(newSize == oldSize) ifTrue:[^ self].
|
45
|
423 |
|
49
|
424 |
nn := Array new:newSize.
|
|
425 |
no := Array new:newSize.
|
|
426 |
nf := Array new:newSize.
|
45
|
427 |
|
49
|
428 |
(newSize > oldSize) ifTrue:[
|
45
|
429 |
nn replaceFrom:1 to:oldSize with:newData.
|
|
430 |
no replaceFrom:1 to:oldSize with:oldData.
|
|
431 |
nf replaceFrom:1 to:oldSize with:freeData
|
19
|
432 |
] ifFalse:[
|
49
|
433 |
delta := (oldSize - newSize).
|
|
434 |
nn replaceFrom:1 with:newData startingAt:delta+1.
|
|
435 |
no replaceFrom:1 with:oldData startingAt:delta+1.
|
|
436 |
nf replaceFrom:1 with:freeData startingAt:delta+1.
|
|
437 |
updateIndex > newSize ifTrue:[
|
|
438 |
updateIndex := updateIndex - delta.
|
45
|
439 |
]
|
19
|
440 |
].
|
|
441 |
newData := nn.
|
45
|
442 |
oldData := no.
|
49
|
443 |
freeData := nf.
|
|
444 |
|
52
|
445 |
scale := height asFloat / (maxTotal + 100000).
|
|
446 |
self clear.
|
49
|
447 |
self redraw
|
19
|
448 |
! !
|
45
|
449 |
|
|
450 |
!MemoryMonitor methodsFor:'initialization'!
|
|
451 |
|
|
452 |
realize
|
|
453 |
super realize.
|
|
454 |
updateBlock notNil ifTrue:[
|
|
455 |
Processor addTimedBlock:updateBlock afterSeconds:updateInterval.
|
|
456 |
] ifFalse:[
|
|
457 |
myProcess := [
|
|
458 |
|d|
|
|
459 |
|
|
460 |
[true] whileTrue:[
|
|
461 |
(Delay forSeconds:updateInterval) wait.
|
|
462 |
self updateDisplay
|
|
463 |
]
|
|
464 |
] forkAt:5.
|
|
465 |
myProcess name:'monitor update'
|
|
466 |
].
|
|
467 |
|
|
468 |
newColor := newColor on:device.
|
|
469 |
freeColor := freeColor on:device.
|
|
470 |
oldColor := oldColor on:device.
|
|
471 |
|
|
472 |
font := font on:device.
|
|
473 |
!
|
|
474 |
|
|
475 |
initialize
|
|
476 |
super initialize.
|
|
477 |
|
|
478 |
updateInterval := 0.5.
|
|
479 |
ProcessorScheduler isPureEventDriven ifTrue:[
|
|
480 |
updateBlock := [self updateDisplay].
|
|
481 |
].
|
|
482 |
oldData := Array new:1000.
|
|
483 |
newData := Array new:1000.
|
|
484 |
freeData := Array new:1000.
|
|
485 |
|
|
486 |
updateIndex := 1.
|
52
|
487 |
org := font widthOf:'max 99999k'.
|
|
488 |
level := 0.
|
45
|
489 |
|
57
|
490 |
maxTotal := minTotal := ObjectMemory oldSpaceSize
|
|
491 |
+ ObjectMemory fixSpaceSize
|
|
492 |
+ ObjectMemory newSpaceSize.
|
49
|
493 |
|
45
|
494 |
viewBackground := Black.
|
|
495 |
|
|
496 |
device hasColors ifTrue:[
|
|
497 |
newColor := Color yellow.
|
|
498 |
freeColor := Color green.
|
|
499 |
oldColor := Color white.
|
|
500 |
] ifFalse:[
|
|
501 |
newColor := Color grey:67.
|
|
502 |
freeColor := Color grey:33.
|
|
503 |
oldColor := Color white.
|
|
504 |
].
|
|
505 |
|
|
506 |
self font:(Font family:'courier' face:'medium' style:'roman' size:10).
|
|
507 |
|
|
508 |
"
|
|
509 |
MemoryMonitor open
|
|
510 |
"
|
52
|
511 |
!
|
|
512 |
|
|
513 |
initializeMiddleButtonMenu
|
|
514 |
self middleButtonMenu:
|
|
515 |
(PopUpMenu labels:(resources array:#(
|
|
516 |
'collect Garbage'
|
|
517 |
'collect Garbage & compress'
|
|
518 |
'-'
|
|
519 |
'background collect'
|
|
520 |
))
|
|
521 |
selectors:#(
|
|
522 |
garbageCollect
|
|
523 |
compressingGarbageCollect
|
|
524 |
nil
|
|
525 |
backgroundCollect
|
|
526 |
)
|
|
527 |
receiver:self
|
|
528 |
for:self)
|
45
|
529 |
! !
|
|
530 |
|
52
|
531 |
!MemoryMonitor methodsFor:'menu functions'!
|
|
532 |
|
|
533 |
garbageCollect
|
|
534 |
ObjectMemory markAndSweep
|
|
535 |
!
|
|
536 |
|
|
537 |
compressingGarbageCollect
|
|
538 |
ObjectMemory verboseGarbageCollect
|
|
539 |
!
|
|
540 |
|
|
541 |
backgroundCollect
|
|
542 |
[ObjectMemory incrementalGC] forkAt:4
|
|
543 |
! !
|
|
544 |
|