author | Claus Gittinger <cg@exept.de> |
Sun, 02 Mar 1997 11:23:46 +0100 | |
changeset 1053 | 9b1b15ef1e34 |
parent 1052 | 81d87e3e1d14 |
child 1205 | 0b60eda64a3b |
permissions | -rw-r--r-- |
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 |
|
311 | 14 |
instanceVariableNames:'updateInterval updateBlock myProcess oldData newData freeData |
93 | 15 |
updateIndex org maxTotal minTotal dX newColor freeColor oldColor |
989 | 16 |
prevTotal prevFree prevFree2 prevOld scale drawLock' |
311 | 17 |
classVariableNames:'' |
18 |
poolDictionaries:'' |
|
1053 | 19 |
category:'Monitors-ST/X' |
19 | 20 |
! |
21 |
||
798 | 22 |
!MemoryMonitor class methodsFor:'documentation'! |
49 | 23 |
|
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1991 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 |
Shows memory usage (oldspace + newspace). Simple, but useful. |
|
41 |
||
42 |
The numbers shown are: |
|
512 | 43 |
tot total memory usage (i.e. allocated oldSpace + allocated newSpace) |
44 |
(does not include the second semispace and other help-areas, |
|
45 |
such as the remembered set etc.) |
|
49 | 46 |
|
512 | 47 |
all current oldSpace in use + newSpace in use |
49 | 48 |
|
512 | 49 |
new current newSpace in use |
49 | 50 |
|
512 | 51 |
frl free space in (fragmented) free lists |
52 |
fre compact free area above the used oldSpace |
|
49 | 53 |
|
512 | 54 |
old current oldSpace in use |
49 | 55 |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
56 |
cod dynamic compiled code space size (just in time compiler) |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
57 |
|
512 | 58 |
max, extreme values of 'tot' since the monitor started |
59 |
min (can be reset by typing 'r' in the view) |
|
49 | 60 |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
61 |
t tenure threshold (1 .. 30) |
49 | 62 |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
63 |
I incremental GC state (2 = idle) |
49 | 64 |
|
512 | 65 |
weak number of weak objects |
109 | 66 |
|
512 | 67 |
rem size of rememberedSet |
108 | 68 |
|
512 | 69 |
minsc: percent of newspace remaining after scavenge (worst case) |
70 |
(i.e. the minimum %% of scavenged objects) |
|
108 | 71 |
|
512 | 72 |
count number of scavenges since system started |
108 | 73 |
|
512 | 74 |
% percentage of live objects in newSpace after last scavenge |
75 |
(i.e. this is the garbage vs. living objects ratio of |
|
76 |
newSpace objects after the last scavenge) |
|
52 | 77 |
|
49 | 78 |
the graphic shows: |
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
79 |
orange newSpace used |
512 | 80 |
green free memory in freeLists |
81 |
white oldSpace used |
|
52 | 82 |
|
83 |
||
84 |
the popupMenu offers GC functions; keyboard options are: |
|
512 | 85 |
'f' -> faster; 's' -> slower; 'r' -> reset min/max |
86 |
||
87 |
[author:] |
|
88 |
Claus Gittinger |
|
89 |
||
90 |
[see also:] |
|
91 |
ObjectMemory |
|
92 |
MemoryUsageMonitor ProcessMonitor |
|
49 | 93 |
" |
94 |
! ! |
|
95 |
||
798 | 96 |
!MemoryMonitor class methodsFor:'defaults'! |
49 | 97 |
|
98 |
defaultExtent |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
99 |
^ (200 @ 320) |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
100 |
|
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
101 |
"Modified: 24.8.1996 / 12:04:21 / cg" |
52 | 102 |
! |
19 | 103 |
|
52 | 104 |
defaultIcon |
105 |
|i| |
|
19 | 106 |
|
93 | 107 |
i := Image fromFile:'MemMonitor.xbm'. |
52 | 108 |
i notNil ifTrue:[^ i]. |
109 |
^ super defaultIcon |
|
311 | 110 |
! |
111 |
||
112 |
defaultLabel |
|
113 |
^ 'Memory Monitor' |
|
114 |
! ! |
|
115 |
||
116 |
!MemoryMonitor methodsFor:'destroying'! |
|
117 |
||
118 |
destroy |
|
119 |
updateBlock notNil ifTrue:[ |
|
120 |
Processor removeTimedBlock:updateBlock. |
|
121 |
] ifFalse:[ |
|
122 |
myProcess terminate. |
|
123 |
myProcess := nil |
|
124 |
]. |
|
125 |
oldData := newData := freeData := nil. |
|
126 |
super destroy |
|
19 | 127 |
! ! |
128 |
||
129 |
!MemoryMonitor methodsFor:'drawing'! |
|
130 |
||
798 | 131 |
displayKilo:aNumber name:nm y:y |
132 |
|s| |
|
133 |
||
134 |
s := nm , ((aNumber // 1024) printStringLeftPaddedTo:5) , 'k '. |
|
135 |
self displayOpaqueString:s x:0 y:y. |
|
136 |
||
137 |
! |
|
138 |
||
311 | 139 |
redraw |
140 |
"redraw all" |
|
49 | 141 |
|
311 | 142 |
self clear. |
143 |
self redrawX:0 y:0 width:width height:height |
|
49 | 144 |
! |
145 |
||
146 |
redrawX:x y:y width:w height:h |
|
147 |
"redraw data" |
|
148 |
||
107 | 149 |
|total oldSpaceUsed newSpaceUsed freeMem lx startIdx endIdx |
52 | 150 |
right| |
49 | 151 |
|
152 |
shown ifFalse:[^ self]. |
|
153 |
||
52 | 154 |
right := x + w - 1. |
155 |
right >= org ifTrue:[ |
|
49 | 156 |
lx := x. |
157 |
lx < org ifTrue:[ |
|
158 |
lx := org |
|
159 |
]. |
|
160 |
||
91 | 161 |
total := ObjectMemory symSpaceSize |
57 | 162 |
+ ObjectMemory oldSpaceSize |
163 |
+ ObjectMemory newSpaceSize. |
|
49 | 164 |
|
52 | 165 |
startIdx := (lx-org+1). |
49 | 166 |
startIdx < 1 ifTrue:[ |
167 |
startIdx := 1 |
|
168 |
]. |
|
169 |
||
52 | 170 |
endIdx := right-org+1. |
49 | 171 |
endIdx >= updateIndex ifTrue:[ |
172 |
endIdx := updateIndex-1. |
|
173 |
]. |
|
174 |
dX := 0. |
|
175 |
||
176 |
startIdx to:endIdx do:[:i | |
|
177 |
newSpaceUsed := newData at:i. |
|
178 |
newSpaceUsed notNil ifTrue:[ |
|
179 |
oldSpaceUsed := oldData at:i. |
|
180 |
freeMem := freeData at:i. |
|
181 |
||
182 |
self updateLineX:lx - dX |
|
183 |
total:total |
|
184 |
old:oldSpaceUsed |
|
185 |
new:newSpaceUsed |
|
52 | 186 |
free:freeMem. |
49 | 187 |
]. |
188 |
lx := lx + 1 |
|
189 |
] |
|
190 |
]. |
|
191 |
||
192 |
x < org ifTrue:[ |
|
193 |
prevFree := prevFree2 := prevOld := prevTotal := nil. |
|
194 |
||
195 |
self updateNumbers. |
|
196 |
] |
|
197 |
! |
|
198 |
||
311 | 199 |
updateDisplay |
200 |
"update picture; trigger next update" |
|
201 |
||
202 |
|total oldSpaceUsed newSpaceUsed freeMem oldSpaceSize |
|
1012
e3793f355ffc
new easier bitBlt (default is synchronous)
Claus Gittinger <cg@exept.de>
parents:
994
diff
changeset
|
203 |
gWidth shift scaleChange margin| |
311 | 204 |
|
205 |
shown ifTrue:[ |
|
989 | 206 |
drawLock wouldBlock ifFalse:[ |
207 |
drawLock critical:[ |
|
208 |
oldSpaceUsed := ObjectMemory oldSpaceUsed + ObjectMemory symSpaceUsed. |
|
209 |
newSpaceUsed := ObjectMemory newSpaceUsed. |
|
210 |
freeMem := ObjectMemory freeListSpace + (ObjectMemory oldSpaceSize - ObjectMemory oldSpaceUsed). |
|
211 |
oldSpaceSize := ObjectMemory oldSpaceSize + ObjectMemory symSpaceSize. |
|
212 |
total := oldSpaceSize + ObjectMemory newSpaceSize. |
|
311 | 213 |
|
989 | 214 |
scaleChange := false. |
311 | 215 |
|
989 | 216 |
((total - freeMem) < minTotal) ifTrue:[ |
217 |
minTotal := total - freeMem. |
|
218 |
scaleChange := true |
|
219 |
]. |
|
220 |
(total > maxTotal) ifTrue:[ |
|
221 |
maxTotal := total. |
|
222 |
scaleChange := true |
|
223 |
]. |
|
311 | 224 |
|
989 | 225 |
oldData at:updateIndex put:oldSpaceSize. "/ oldSpaceUsed. |
226 |
newData at:updateIndex put:newSpaceUsed. |
|
227 |
freeData at:updateIndex put:freeMem. |
|
228 |
updateIndex := updateIndex + 1. |
|
311 | 229 |
|
989 | 230 |
scaleChange ifTrue:[ |
231 |
scale := height asFloat / (maxTotal + 100000). |
|
232 |
self redraw |
|
233 |
]. |
|
311 | 234 |
|
989 | 235 |
gWidth := width - org. |
236 |
margin := 1. |
|
237 |
||
238 |
((updateIndex-1) >= (gWidth - margin)) ifTrue:[ |
|
239 |
"on slow displays, use:" |
|
240 |
"/ shift := gWidth // 4. |
|
311 | 241 |
|
989 | 242 |
"for smooth display, use:" |
243 |
shift := 1. |
|
311 | 244 |
|
989 | 245 |
oldData replaceFrom:1 with:oldData startingAt:shift+1. |
246 |
newData replaceFrom:1 with:newData startingAt:shift+1. |
|
247 |
freeData replaceFrom:1 with:freeData startingAt:shift+1. |
|
311 | 248 |
|
989 | 249 |
updateIndex := updateIndex - shift. |
250 |
dX := dX + shift. |
|
311 | 251 |
|
989 | 252 |
self copyFrom:self |
253 |
x:(org + shift) y:0 |
|
254 |
toX:org y:0 |
|
255 |
width:(gWidth - shift - margin) |
|
256 |
height:height. |
|
1012
e3793f355ffc
new easier bitBlt (default is synchronous)
Claus Gittinger <cg@exept.de>
parents:
994
diff
changeset
|
257 |
|
989 | 258 |
self clearRectangleX:(width - margin - shift) y:0 |
259 |
width:shift height:height. |
|
260 |
]. |
|
311 | 261 |
|
989 | 262 |
self updateLineX:(updateIndex - 1 + org - 1) |
263 |
total:total |
|
264 |
old:oldSpaceSize "/ oldSpaceUsed |
|
265 |
new:newSpaceUsed |
|
266 |
free:freeMem. |
|
311 | 267 |
|
989 | 268 |
self updateNumbers. |
269 |
self flush. |
|
270 |
]. |
|
271 |
]. |
|
311 | 272 |
]. |
273 |
||
274 |
updateBlock notNil ifTrue:[ |
|
275 |
Processor addTimedBlock:updateBlock afterSeconds:updateInterval |
|
276 |
]. |
|
277 |
||
1012
e3793f355ffc
new easier bitBlt (default is synchronous)
Claus Gittinger <cg@exept.de>
parents:
994
diff
changeset
|
278 |
"Modified: 29.1.1997 / 13:32:31 / cg" |
311 | 279 |
! |
280 |
||
109 | 281 |
updateLineX:x total:total old:oldSpaceSize new:newSpaceUsed free:freeMem |
282 |
|hNew hOld hFree y1 y2 y3| |
|
49 | 283 |
|
284 |
hNew := (newSpaceUsed * scale) asInteger. |
|
109 | 285 |
hOld := (oldSpaceSize * scale) // 2. |
286 |
hFree := (freeMem * scale) // 2. |
|
49 | 287 |
|
288 |
y1 := height - 1. |
|
109 | 289 |
|
49 | 290 |
y2 := y1 - hOld. |
291 |
self paint:oldColor. |
|
292 |
self displayLineFromX:x y:y1 toX:x y:y2. |
|
293 |
||
109 | 294 |
y3 := y1 - hFree. |
49 | 295 |
self paint:freeColor. |
109 | 296 |
self displayLineFromX:x y:y1 toX:x y:y3. |
49 | 297 |
|
109 | 298 |
y1 := y2 - hNew. |
49 | 299 |
self paint:newColor. |
300 |
self displayLineFromX:x y:y1 toX:x y:y2. |
|
301 |
! |
|
302 |
||
303 |
updateNumbers |
|
304 |
"redraw numbers. |
|
305 |
The values shown are: |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
306 |
max: maximum memory used since monitor started |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
307 |
min: minimum memory used since monitor started |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
308 |
tot: total memory used (overall oldSpace + overall newSpace) |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
309 |
all: current memory in use (oldSpace + newSpace) |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
310 |
new: current newSpace in use |
735 | 311 |
fre: current size of freelist in oldSpace |
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
312 |
old: current oldSpace in use |
735 | 313 |
code: current just-in-time compiled code cache size |
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
314 |
t: current tenure age |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
315 |
I: IGC state |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
316 |
weak: number of weak arrays in the system |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
317 |
rem remembered set size |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
318 |
lrem lifo remembered set size |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
319 |
minsc: percent of newspace remaining after scavenge (worst case) |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
320 |
irq: max. interrupt delay |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
321 |
count of scavenges / last scavenge survivor rate |
156 | 322 |
|
49 | 323 |
" |
324 |
||
325 |
|oldSpaceSize newSpaceSize memUsed oldMemUsed newMemUsed freeMem free2 |
|
107 | 326 |
y half s fontHeight total n| |
49 | 327 |
|
91 | 328 |
oldMemUsed := ObjectMemory oldSpaceUsed + ObjectMemory symSpaceUsed. |
49 | 329 |
newMemUsed := ObjectMemory newSpaceUsed. |
330 |
freeMem := ObjectMemory freeListSpace. |
|
91 | 331 |
oldSpaceSize := ObjectMemory oldSpaceSize + ObjectMemory symSpaceSize. |
49 | 332 |
newSpaceSize := ObjectMemory newSpaceSize. |
333 |
||
334 |
memUsed := oldMemUsed + newMemUsed "- freeMem". |
|
335 |
total := oldSpaceSize + newSpaceSize. |
|
68 | 336 |
free2 := ObjectMemory freeSpace. |
49 | 337 |
|
338 |
self paint:White on:Black. |
|
339 |
||
340 |
fontHeight := font height + font descent. |
|
341 |
half := height // 2 + font descent. |
|
342 |
||
109 | 343 |
y := half - (fontHeight * 5). |
49 | 344 |
|
345 |
total ~~ prevTotal ifTrue:[ |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
346 |
((total - freeMem) < minTotal) ifTrue:[ |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
347 |
minTotal := total - freeMem. |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
348 |
]. |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
349 |
(total > maxTotal) ifTrue:[ |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
350 |
maxTotal := total. |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
351 |
]. |
52 | 352 |
|
798 | 353 |
self displayKilo:maxTotal name:'max ' y:font ascent. |
354 |
self displayKilo:minTotal name:'min ' y:(height - font descent). |
|
355 |
self displayKilo:total name:'tot ' y:y. |
|
52 | 356 |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
357 |
prevTotal := total. |
49 | 358 |
]. |
359 |
||
360 |
y := y + fontHeight. |
|
798 | 361 |
self displayKilo:memUsed name:'all ' y:y. |
49 | 362 |
|
363 |
y := y + fontHeight. |
|
364 |
self paint:newColor. |
|
798 | 365 |
self displayKilo:newMemUsed name:'new ' y:y. |
49 | 366 |
|
367 |
y := y + fontHeight. |
|
368 |
freeMem ~~ prevFree ifTrue:[ |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
369 |
self paint:freeColor. |
798 | 370 |
self displayKilo:freeMem name:'frl ' y:y. |
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
371 |
prevFree := freeMem. |
49 | 372 |
]. |
373 |
||
374 |
y := y + fontHeight. |
|
375 |
free2 ~~ prevFree2 ifTrue:[ |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
376 |
self paint:freeColor. |
798 | 377 |
self displayKilo:free2 name:'fre ' y:y. |
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
378 |
prevFree2 := free2. |
49 | 379 |
]. |
380 |
||
381 |
y := y + fontHeight. |
|
382 |
(oldMemUsed - freeMem) ~~ prevOld ifTrue:[ |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
383 |
self paint:oldColor. |
798 | 384 |
self displayKilo:(oldMemUsed - freeMem) name:'old ' y:y. |
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
385 |
prevOld := (oldMemUsed - freeMem). |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
386 |
]. |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
387 |
|
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
388 |
ObjectMemory supportsJustInTimeCompilation ifTrue:[ |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
389 |
y := y + fontHeight. |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
390 |
self paint:oldColor. |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
391 |
n := ObjectMemory compiledCodeSpaceUsed. |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
392 |
n > 9999 ifTrue:[ |
735 | 393 |
s := 'code ' , ((n // 1024) printStringLeftPaddedTo:4) , 'k'. |
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
394 |
] ifFalse:[ |
735 | 395 |
s := 'code ' , (n printStringLeftPaddedTo:4) , ' '. |
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
396 |
]. |
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
397 |
self displayOpaqueString:s x:0 y:y. |
49 | 398 |
]. |
399 |
||
400 |
" |
|
303
1d94813f1977
interest is written with one 'r' (shame on me)
Claus Gittinger <cg@exept.de>
parents:
168
diff
changeset
|
401 |
the following is internal - normally only interesting when debugging the VM |
49 | 402 |
" |
403 |
y := y + fontHeight. |
|
404 |
self paint:oldColor. |
|
60 | 405 |
s := 't:' , (ObjectMemory tenureAge printStringLeftPaddedTo:2) , ' '. |
108 | 406 |
s := s , ' I:' , (ObjectMemory incrementalGCPhase printStringLeftPaddedTo:2) , ' '. |
407 |
self displayOpaqueString:s x:0 y:y. |
|
408 |
||
409 |
y := y + fontHeight. |
|
109 | 410 |
s := 'weak: ' , (ObjectMemory numberOfWeakObjects printStringLeftPaddedTo:4). |
411 |
self displayOpaqueString:s x:0 y:y. |
|
412 |
||
413 |
y := y + fontHeight. |
|
108 | 414 |
s := 'rem: ' , (ObjectMemory rememberedSetSize printStringLeftPaddedTo:5). |
49 | 415 |
self displayOpaqueString:s x:0 y:y. |
416 |
||
109 | 417 |
y := y + fontHeight. |
418 |
s := 'lrem: ' , (ObjectMemory lifoRememberedSetSize printStringLeftPaddedTo:4 ifLarger:['****']). |
|
419 |
self displayOpaqueString:s x:0 y:y. |
|
420 |
||
49 | 421 |
"/ does no longer make sense to show .... |
422 |
"/ y := y + fontHeight. |
|
423 |
"/ ObjectMemory runsSingleOldSpace ifTrue:[ |
|
424 |
"/ self displayOpaqueString:'single' x:0 y:(half + (fontHeight*4)). |
|
425 |
"/ ]. |
|
426 |
||
52 | 427 |
y := y + fontHeight. |
108 | 428 |
n := ObjectMemory minScavengeReclamation / ObjectMemory newSpaceSize * 100.0. |
52 | 429 |
n := 100 - n asInteger. |
108 | 430 |
s := 'minSc ', (n printStringLeftPaddedTo:3) , '%'. |
431 |
self displayOpaqueString:s x:0 y:y. |
|
432 |
||
433 |
y := y + fontHeight. |
|
157 | 434 |
n := ObjectMemory maxInterruptLatency. |
156 | 435 |
n notNil ifTrue:[ |
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
436 |
s := 'irq ', (n printStringLeftPaddedTo:3) , ' ms'. |
156 | 437 |
] ifFalse:[ |
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
438 |
s := '' |
156 | 439 |
]. |
440 |
self displayOpaqueString:s x:0 y:y. |
|
441 |
||
442 |
y := y + fontHeight. |
|
108 | 443 |
n := ObjectMemory lastScavengeReclamation / ObjectMemory newSpaceSize * 100.0. |
444 |
n := 100 - n asInteger. |
|
445 |
s := (ObjectMemory scavengeCount printStringLeftPaddedTo:6) |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
446 |
, (n printStringLeftPaddedTo:3) , '%'. |
52 | 447 |
self displayOpaqueString:s x:0 y:y. |
156 | 448 |
|
449 |
"Created: 7.11.1995 / 14:48:16 / cg" |
|
696
b55f8705bb41
show memory use of dynamic code cache
Claus Gittinger <cg@exept.de>
parents:
517
diff
changeset
|
450 |
"Modified: 24.8.1996 / 11:57:22 / cg" |
19 | 451 |
! ! |
452 |
||
453 |
!MemoryMonitor methodsFor:'events'! |
|
454 |
||
311 | 455 |
keyPress:key x:x y:y |
456 |
key == $f ifTrue:[ |
|
457 |
"faster" |
|
458 |
updateInterval := updateInterval / 2 |
|
459 |
]. |
|
460 |
key == $s ifTrue:[ |
|
461 |
"slower" |
|
462 |
updateInterval := updateInterval * 2 |
|
463 |
]. |
|
464 |
key == $r ifTrue:[ |
|
465 |
"reset max" |
|
466 |
maxTotal := prevTotal. |
|
467 |
scale := height asFloat / (maxTotal + 100000). |
|
468 |
self resetStatisticValues. |
|
469 |
self redraw. |
|
470 |
] |
|
471 |
||
472 |
"Modified: 7.11.1995 / 17:45:13 / cg" |
|
473 |
! |
|
474 |
||
49 | 475 |
sizeChanged:how |
476 |
|nn no nf delta oldSize newSize| |
|
477 |
||
478 |
super sizeChanged:how. |
|
19 | 479 |
|
45 | 480 |
oldSize := oldData size. |
49 | 481 |
newSize := width-org+1. |
482 |
||
168
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
483 |
(newSize ~~ oldSize) ifTrue:[ |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
484 |
nn := Array new:newSize. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
485 |
no := Array new:newSize. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
486 |
nf := Array new:newSize. |
45 | 487 |
|
168
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
488 |
(newSize > oldSize) ifTrue:[ |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
489 |
nn replaceFrom:1 to:oldSize with:newData. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
490 |
no replaceFrom:1 to:oldSize with:oldData. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
491 |
nf replaceFrom:1 to:oldSize with:freeData |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
492 |
] ifFalse:[ |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
493 |
delta := (oldSize - newSize). |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
494 |
nn replaceFrom:1 with:newData startingAt:delta+1. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
495 |
no replaceFrom:1 with:oldData startingAt:delta+1. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
496 |
nf replaceFrom:1 with:freeData startingAt:delta+1. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
497 |
updateIndex > newSize ifTrue:[ |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
498 |
updateIndex := updateIndex - delta. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
499 |
] |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
500 |
]. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
501 |
newData := nn. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
502 |
oldData := no. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
503 |
freeData := nf. |
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
504 |
|
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
505 |
scale := height asFloat / (maxTotal + 100000). |
19 | 506 |
]. |
52 | 507 |
self clear. |
168
0ca5ca046b22
Redraw text on vertical window size changes.
Stefan Vogel <sv@exept.de>
parents:
165
diff
changeset
|
508 |
self redraw. |
19 | 509 |
! ! |
45 | 510 |
|
511 |
!MemoryMonitor methodsFor:'initialization'! |
|
512 |
||
311 | 513 |
initialize |
514 |
super initialize. |
|
515 |
||
994 | 516 |
drawLock := Semaphore forMutualExclusion name:'drawLock'. |
989 | 517 |
|
311 | 518 |
updateInterval := 0.5. |
519 |
ProcessorScheduler isPureEventDriven ifTrue:[ |
|
989 | 520 |
updateBlock := [self updateDisplay]. |
311 | 521 |
]. |
522 |
oldData := Array new:1000. |
|
523 |
newData := Array new:1000. |
|
524 |
freeData := Array new:1000. |
|
525 |
||
526 |
updateIndex := 1. |
|
527 |
org := font widthOf:'max 99999k'. |
|
528 |
level := 0. |
|
529 |
||
530 |
maxTotal := minTotal := ObjectMemory oldSpaceSize |
|
989 | 531 |
+ ObjectMemory symSpaceSize |
532 |
+ ObjectMemory newSpaceSize. |
|
311 | 533 |
|
534 |
viewBackground := Black. |
|
535 |
||
536 |
device hasColors ifTrue:[ |
|
989 | 537 |
newColor := Color orange. "/ yellow. |
538 |
freeColor := Color green. |
|
539 |
oldColor := Color white. |
|
311 | 540 |
] ifFalse:[ |
989 | 541 |
newColor := Color grey:67. |
542 |
freeColor := Color grey:33. |
|
543 |
oldColor := Color white. |
|
311 | 544 |
]. |
545 |
||
546 |
self font:(Font family:'courier' face:'medium' style:'roman' size:10). |
|
547 |
||
548 |
self model:self. |
|
549 |
self menu:#memoryMenu |
|
550 |
||
551 |
" |
|
552 |
MemoryMonitor open |
|
553 |
" |
|
989 | 554 |
|
555 |
"Modified: 23.1.1997 / 22:37:06 / cg" |
|
311 | 556 |
! |
557 |
||
85 | 558 |
memoryMenu |
323 | 559 |
|m specialMenu labels selectors| |
560 |
||
561 |
labels := #( |
|
562 |
'scavenge' |
|
563 |
'tenure' |
|
972 | 564 |
'hi prio incremental collect' |
323 | 565 |
'-' |
566 |
'cleanup memory' |
|
844 | 567 |
'flush method history' |
323 | 568 |
'-' |
569 |
'compress sources' |
|
570 |
). |
|
571 |
selectors := #( |
|
572 |
scavenge |
|
573 |
tenure |
|
574 |
incrementalCollect |
|
575 |
nil |
|
576 |
cleanupMemory |
|
844 | 577 |
cleanupMethodHistory |
323 | 578 |
nil |
579 |
compressSources |
|
580 |
). |
|
581 |
||
582 |
specialMenu := PopUpMenu |
|
583 |
labels:(resources array:labels) |
|
584 |
selectors:selectors. |
|
85 | 585 |
|
105 | 586 |
device ctrlDown ifTrue:[ |
323 | 587 |
^ specialMenu |
105 | 588 |
]. |
85 | 589 |
|
972 | 590 |
ObjectMemory backgroundCollectorRunning ifFalse:[ |
591 |
labels := #( |
|
592 |
'collect garbage' |
|
593 |
'collect garbage & symbols' |
|
594 |
'collect garbage & compress' |
|
595 |
'-' |
|
596 |
'background collect now' |
|
597 |
'start background collector' |
|
598 |
'-' |
|
599 |
'reset statistic values' |
|
600 |
'-' |
|
601 |
'others' |
|
602 |
). |
|
323 | 603 |
|
972 | 604 |
selectors := #( |
605 |
garbageCollect |
|
606 |
garbageCollectAndSymbols |
|
607 |
compressingGarbageCollect |
|
608 |
nil |
|
609 |
backgroundCollect |
|
610 |
restartBackgroundCollector |
|
611 |
nil |
|
612 |
resetStatisticValues |
|
613 |
nil |
|
614 |
otherMenu |
|
615 |
). |
|
616 |
] ifTrue:[ |
|
617 |
labels := #( |
|
618 |
'collect garbage' |
|
619 |
'collect garbage & symbols' |
|
620 |
'collect garbage & compress' |
|
621 |
'-' |
|
622 |
'background collect' |
|
623 |
'-' |
|
624 |
'reset statistic values' |
|
625 |
'-' |
|
626 |
'others' |
|
627 |
). |
|
628 |
||
629 |
selectors := #( |
|
630 |
garbageCollect |
|
631 |
garbageCollectAndSymbols |
|
632 |
compressingGarbageCollect |
|
633 |
nil |
|
634 |
backgroundCollect |
|
635 |
nil |
|
636 |
resetStatisticValues |
|
637 |
nil |
|
638 |
otherMenu |
|
639 |
). |
|
640 |
]. |
|
323 | 641 |
m := PopUpMenu labels:(resources array:labels) |
642 |
selectors:selectors. |
|
643 |
||
644 |
m subMenuAt:#otherMenu put:specialMenu. |
|
645 |
^ m |
|
972 | 646 |
|
647 |
"Modified: 21.1.1997 / 00:20:27 / cg" |
|
85 | 648 |
! |
649 |
||
45 | 650 |
realize |
651 |
super realize. |
|
652 |
updateBlock notNil ifTrue:[ |
|
93 | 653 |
Processor addTimedBlock:updateBlock afterSeconds:updateInterval. |
45 | 654 |
] ifFalse:[ |
93 | 655 |
myProcess := [ |
656 |
|d| |
|
45 | 657 |
|
93 | 658 |
[true] whileTrue:[ |
659 |
(Delay forSeconds:updateInterval) wait. |
|
660 |
self updateDisplay |
|
661 |
] |
|
662 |
] forkAt:6. |
|
663 |
myProcess name:'monitor [' , |
|
664 |
Processor activeProcess id printString , |
|
665 |
'] update' |
|
45 | 666 |
]. |
667 |
||
668 |
newColor := newColor on:device. |
|
669 |
freeColor := freeColor on:device. |
|
670 |
oldColor := oldColor on:device. |
|
671 |
||
672 |
font := font on:device. |
|
673 |
! ! |
|
674 |
||
52 | 675 |
!MemoryMonitor methodsFor:'menu functions'! |
676 |
||
311 | 677 |
backgroundCollect |
678 |
"start a background (non disturbing) incremental GC. |
|
679 |
Since the GC is performed at a low priority, it may not make progress if higher |
|
680 |
prio processes are running" |
|
681 |
||
682 |
[ |
|
683 |
ObjectMemory incrementalGC |
|
684 |
] forkAt:5 |
|
685 |
! |
|
686 |
||
105 | 687 |
cleanupMemory |
688 |
"let all classes release unneeded, cached |
|
689 |
data ..." |
|
690 |
||
469
3653317928e2
dont repeat coding in ObjectMemory ...
Claus Gittinger <cg@exept.de>
parents:
360
diff
changeset
|
691 |
ObjectMemory performLowSpaceCleanup. |
3653317928e2
dont repeat coding in ObjectMemory ...
Claus Gittinger <cg@exept.de>
parents:
360
diff
changeset
|
692 |
|
105 | 693 |
" |
694 |
then, perform a GC (incl. symbol reclamation) |
|
695 |
" |
|
696 |
ObjectMemory reclaimSymbols. |
|
697 |
" |
|
698 |
finally, compress |
|
699 |
" |
|
700 |
ObjectMemory verboseGarbageCollect. |
|
701 |
! |
|
702 |
||
844 | 703 |
cleanupMethodHistory |
704 |
"release the oldMethod history" |
|
705 |
||
706 |
(self confirm:'This removes the previous method history, |
|
707 |
which is kept for all changed methods in the system. |
|
708 |
After that, the browsers cannot easily switch back to a methods |
|
709 |
previous version. |
|
710 |
||
711 |
However, this is normally not a problem, since |
|
712 |
a methods previous code should still be accessable through |
|
713 |
either the changes-file, the sourceCode repository or the classes original |
|
714 |
source file. |
|
715 |
||
716 |
cleanup now ?') ifTrue:[ |
|
717 |
||
718 |
||
719 |
Class flushMethodHistory. |
|
720 |
||
721 |
" |
|
722 |
then, perform a GC (incl. symbol reclamation) |
|
723 |
" |
|
724 |
ObjectMemory reclaimSymbols. |
|
725 |
" |
|
726 |
finally, compress |
|
727 |
" |
|
728 |
ObjectMemory verboseGarbageCollect. |
|
729 |
] |
|
730 |
||
731 |
||
732 |
||
733 |
! |
|
734 |
||
311 | 735 |
compressSources |
323 | 736 |
(self confirm:'This saves all in-memory source strings into a file |
360 | 737 |
and makes methods reference these (file-) strings, |
738 |
freeing all in-memory sources. |
|
323 | 739 |
|
740 |
If that source file is ever lost or gets out of sync with |
|
741 |
your system, those method sources are lost and the browser |
|
742 |
will show garbage. |
|
743 |
However, you still have a change file as backup. |
|
744 |
||
745 |
(Be especially careful, if you move images around: |
|
360 | 746 |
the source file must then be the correct one for that image) |
323 | 747 |
|
748 |
A compress is only useful, if you added many methods |
|
749 |
and the systems response time suffers from paging. |
|
750 |
||
751 |
Compress anyway ?') ifTrue:[ |
|
350
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
752 |
windowGroup withWaitCursorDo:[ |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
753 |
Smalltalk compressSources. |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
754 |
ObjectMemory markAndSweep |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
755 |
] |
323 | 756 |
] |
757 |
||
360 | 758 |
"Modified: 9.2.1996 / 18:17:22 / cg" |
311 | 759 |
! |
156 | 760 |
|
311 | 761 |
compressingGarbageCollect |
762 |
"perform a blocking compressing garbage collect." |
|
763 |
||
350
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
764 |
windowGroup withWaitCursorDo:[ |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
765 |
ObjectMemory verboseGarbageCollect |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
766 |
] |
156 | 767 |
! |
768 |
||
52 | 769 |
garbageCollect |
159 | 770 |
"perform a blocking (non compressing) garbage collect" |
771 |
||
350
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
772 |
windowGroup withWaitCursorDo:[ |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
773 |
ObjectMemory markAndSweep |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
774 |
] |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
775 |
|
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
776 |
"Modified: 2.1.1996 / 12:17:33 / cg" |
52 | 777 |
! |
778 |
||
105 | 779 |
garbageCollectAndSymbols |
159 | 780 |
"perform a blocking (non compressing) garbage collect |
781 |
and reclaim unreferenced symbols." |
|
782 |
||
350
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
783 |
windowGroup withWaitCursorDo:[ |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
784 |
ObjectMemory reclaimSymbols |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
785 |
] |
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
786 |
|
68c5fed6c9bc
show waitCursor while collecting
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
787 |
"Modified: 2.1.1996 / 12:17:36 / cg" |
105 | 788 |
! |
789 |
||
311 | 790 |
incrementalCollect |
791 |
"start an incremental GC which does not disturb too much, but is guaranteed to |
|
792 |
make progress. |
|
323 | 793 |
This is done by doing the IGC at a very high priority, but giving up the CPU after |
794 |
every step. Due to the long delays, this may take a while to finish. |
|
795 |
Notice, that this is different from doing a background collect: that one |
|
796 |
may not make any progress if higher prio processes are runnable." |
|
797 |
||
798 |
|done delay| |
|
799 |
||
311 | 800 |
[ |
323 | 801 |
done := false. |
802 |
delay := Delay new. |
|
803 |
[done] whileFalse:[ |
|
804 |
10 timesRepeat:[ |
|
805 |
done ifFalse:[done := ObjectMemory gcStep]. |
|
806 |
]. |
|
807 |
(delay delay:10) wait |
|
808 |
] |
|
311 | 809 |
] forkAt:Processor highestPriority |
323 | 810 |
|
811 |
"Modified: 23.12.1995 / 17:31:55 / cg" |
|
311 | 812 |
! |
159 | 813 |
|
311 | 814 |
resetStatisticValues |
815 |
ObjectMemory resetMaxInterruptLatency. |
|
816 |
ObjectMemory resetMinScavengeReclamation. |
|
817 |
||
818 |
"Created: 7.11.1995 / 17:44:59 / cg" |
|
52 | 819 |
! |
820 |
||
972 | 821 |
restartBackgroundCollector |
822 |
"start a background (non disturbing) incremental GC. |
|
823 |
Since the GC is performed at a low priority, it may not make progress if higher |
|
824 |
prio processes are running" |
|
825 |
||
826 |
ObjectMemory backgroundCollectorRunning |
|
827 |
ifFalse:[ |
|
828 |
ObjectMemory startBackgroundCollectorAt:5. |
|
829 |
ObjectMemory startBackgroundCollectorAt:5 |
|
830 |
] |
|
831 |
||
832 |
"Created: 21.1.1997 / 00:09:30 / cg" |
|
833 |
! |
|
834 |
||
105 | 835 |
scavenge |
159 | 836 |
"perform a blocking newspace garbage collect. |
837 |
(this is for debugging only - the system does this automatically)" |
|
838 |
||
105 | 839 |
ObjectMemory scavenge |
840 |
! |
|
841 |
||
842 |
tenure |
|
159 | 843 |
"empty the newSpace, by aging all new objects immediately and transfering them |
844 |
into oldSpace. |
|
845 |
(this is for debugging only - the system does this automatically)" |
|
846 |
||
105 | 847 |
ObjectMemory tenure |
311 | 848 |
! ! |
105 | 849 |
|
798 | 850 |
!MemoryMonitor class methodsFor:'documentation'! |
85 | 851 |
|
311 | 852 |
version |
1053 | 853 |
^ '$Header: /cvs/stx/stx/libtool/MemoryMonitor.st,v 1.45 1997-03-02 10:23:19 cg Exp $' |
52 | 854 |
! ! |