MemoryMonitor.st
changeset 360 5347e1bfae74
parent 350 68c5fed6c9bc
child 469 3653317928e2
equal deleted inserted replaced
359:26ce81391dbb 360:5347e1bfae74
   642     ObjectMemory verboseGarbageCollect.
   642     ObjectMemory verboseGarbageCollect.
   643 !
   643 !
   644 
   644 
   645 compressSources
   645 compressSources
   646     (self confirm:'This saves all in-memory source strings into a file
   646     (self confirm:'This saves all in-memory source strings into a file
   647 and makes methods reference these (file-) strings.
   647 and makes methods reference these (file-) strings,
       
   648 freeing all in-memory sources.
   648 
   649 
   649 If that source file is ever lost or gets out of sync with
   650 If that source file is ever lost or gets out of sync with
   650 your system, those method sources are lost and the browser
   651 your system, those method sources are lost and the browser
   651 will show garbage. 
   652 will show garbage. 
   652 However, you still have a change file as backup.
   653 However, you still have a change file as backup.
   653 
   654 
   654 (Be especially careful, if you move images around:
   655 (Be especially careful, if you move images around:
   655  the source file must then be correct one for that image)
   656  the source file must then be the correct one for that image)
   656 
   657 
   657 A compress is only useful, if you added many methods
   658 A compress is only useful, if you added many methods
   658 and the systems response time suffers from paging.
   659 and the systems response time suffers from paging.
   659 
   660 
   660 Compress anyway ?') ifTrue:[
   661 Compress anyway ?') ifTrue:[
   662             Smalltalk compressSources.
   663             Smalltalk compressSources.
   663             ObjectMemory markAndSweep
   664             ObjectMemory markAndSweep
   664         ]
   665         ]
   665     ]
   666     ]
   666 
   667 
   667     "Modified: 2.1.1996 / 12:17:23 / cg"
   668     "Modified: 9.2.1996 / 18:17:22 / cg"
   668 !
   669 !
   669 
   670 
   670 compressingGarbageCollect
   671 compressingGarbageCollect
   671     "perform a blocking compressing garbage collect."
   672     "perform a blocking compressing garbage collect."
   672 
   673 
   743 ! !
   744 ! !
   744 
   745 
   745 !MemoryMonitor class methodsFor:'documentation'!
   746 !MemoryMonitor class methodsFor:'documentation'!
   746 
   747 
   747 version
   748 version
   748     ^ '$Header: /cvs/stx/stx/libtool/MemoryMonitor.st,v 1.31 1996-02-06 20:55:20 cg Exp $'
   749     ^ '$Header: /cvs/stx/stx/libtool/MemoryMonitor.st,v 1.32 1996-02-09 18:11:43 cg Exp $'
   749 ! !
   750 ! !