MemoryMonitor.st
changeset 735 600fe3dab131
parent 696 b55f8705bb41
child 798 5ef299968209
equal deleted inserted replaced
734:1d00dfcfa144 735:600fe3dab131
   300         max:    maximum memory used since monitor started
   300         max:    maximum memory used since monitor started
   301         min:    minimum memory used since monitor started
   301         min:    minimum memory used since monitor started
   302         tot:    total memory used (overall oldSpace + overall newSpace)
   302         tot:    total memory used (overall oldSpace + overall newSpace)
   303         all:    current memory in use (oldSpace + newSpace)
   303         all:    current memory in use (oldSpace + newSpace)
   304         new:    current newSpace in use
   304         new:    current newSpace in use
   305         free:   current size of freelist in oldSpace
   305         fre:    current size of freelist in oldSpace
   306         old:    current oldSpace in use
   306         old:    current oldSpace in use
       
   307         code:   current just-in-time compiled code cache size
   307         t:      current tenure age
   308         t:      current tenure age
   308         I:      IGC state
   309         I:      IGC state
   309         weak:   number of weak arrays in the system
   310         weak:   number of weak arrays in the system
   310         rem     remembered set size
   311         rem     remembered set size
   311         lrem    lifo remembered set size
   312         lrem    lifo remembered set size
   391     ObjectMemory supportsJustInTimeCompilation ifTrue:[
   392     ObjectMemory supportsJustInTimeCompilation ifTrue:[
   392         y := y + fontHeight.
   393         y := y + fontHeight.
   393         self paint:oldColor.
   394         self paint:oldColor.
   394         n := ObjectMemory compiledCodeSpaceUsed.
   395         n := ObjectMemory compiledCodeSpaceUsed.
   395         n > 9999 ifTrue:[
   396         n > 9999 ifTrue:[
   396             s := 'cod ' , ((n // 1024) printStringLeftPaddedTo:5) , 'k'.
   397             s := 'code ' , ((n // 1024) printStringLeftPaddedTo:4) , 'k'.
   397         ] ifFalse:[
   398         ] ifFalse:[
   398             s := 'cod ' , (n printStringLeftPaddedTo:5) , ' '.
   399             s := 'code ' , (n printStringLeftPaddedTo:4) , ' '.
   399         ].
   400         ].
   400         self displayOpaqueString:s x:0 y:y.
   401         self displayOpaqueString:s x:0 y:y.
   401     ].
   402     ].
   402 
   403 
   403     "
   404     "
   769 ! !
   770 ! !
   770 
   771 
   771 !MemoryMonitor  class methodsFor:'documentation'!
   772 !MemoryMonitor  class methodsFor:'documentation'!
   772 
   773 
   773 version
   774 version
   774     ^ '$Header: /cvs/stx/stx/libtool/MemoryMonitor.st,v 1.36 1996-08-24 10:07:24 cg Exp $'
   775     ^ '$Header: /cvs/stx/stx/libtool/MemoryMonitor.st,v 1.37 1996-09-17 09:41:27 cg Exp $'
   775 ! !
   776 ! !