MemoryMonitor.st
changeset 1809 429042db0bb1
parent 1808 a1aa484160ee
child 1810 7128a8eb7554
equal deleted inserted replaced
1808:a1aa484160ee 1809:429042db0bb1
   628     <resource: #programMenu>
   628     <resource: #programMenu>
   629 
   629 
   630     |m items moreItems specialMenu|
   630     |m items moreItems specialMenu|
   631 
   631 
   632     items := #(
   632     items := #(
   633                     ('scavenge'                             scavenge)
   633                     ('background collect now'       backgroundCollect)
   634                     ('tenure'                               tenure)
   634                     ('hi prio incremental collect'  incrementalCollect)
   635                     ('hi prio incremental collect'          incrementalCollect)
       
   636                     ('-')
   635                     ('-')
   637                     ('cleanup memory'                       cleanupMemory)
   636                     ('scavenge'                     scavenge)
   638                     ('flush method history'                 cleanupMethodHistory)
   637                     ('tenure'                       tenure)
   639                     ('unload autoloaded classes'            unloadAllAutoloadedClasses)
       
   640                     ('-')
   638                     ('-')
   641                     ('compress sources'                     compressSources)
   639                     ('cleanup memory'               cleanupMemory)
       
   640                     ('flush method history'         cleanupMethodHistory)
       
   641                     ('unload autoloaded classes'    unloadAllAutoloadedClasses)
       
   642                     ('-')
       
   643                     ('compress sources'             compressSources)
   642               ).
   644               ).
   643 
   645 
   644     ObjectMemory backgroundCollectorRunning ifFalse:[
   646     ObjectMemory backgroundCollectorRunning ifFalse:[
   645         moreItems := #(
   647         moreItems := #(
   646                     ('background collect now'       backgroundCollect          )
       
   647                     ('start background collector'   restartBackgroundCollector )
   648                     ('start background collector'   restartBackgroundCollector )
   648                     ('-')
       
   649                  ) 
   649                  ) 
   650     ] ifTrue:[
   650     ] ifTrue:[
   651         (ObjectMemory backgroundCollectProcess priorityRange notNil)
   651         (ObjectMemory backgroundCollectProcess priorityRange notNil)
   652         ifTrue:[
   652         ifTrue:[
   653             moreItems := #(
   653             moreItems := #(
   654                     ('background collect now'                backgroundCollect            )
       
   655                     ('background collect with fix priority'  backgroundCollectWithFixPrio )
   654                     ('background collect with fix priority'  backgroundCollectWithFixPrio )
   656                     ('stop background collector'             stopBackgroundCollector      )
   655                     ('stop background collector'             stopBackgroundCollector      )
   657                     ('-')
       
   658                      ) 
   656                      ) 
   659         ] ifFalse:[
   657         ] ifFalse:[
   660             moreItems := #(
   658             moreItems := #(
   661                     ('background collect now'                   backgroundCollect                 )
       
   662                     ('background collect with dynamic priority' backgroundCollectWithDynamicPrio )
   659                     ('background collect with dynamic priority' backgroundCollectWithDynamicPrio )
   663                     ('stop background collector'                stopBackgroundCollector      )
   660                     ('stop background collector'                stopBackgroundCollector      )
   664                     ('-')
       
   665                      ) 
   661                      ) 
   666         ].
   662         ].
   667     ].
   663     ].
   668     items := moreItems , items.
   664     items := moreItems , items.
   669 
   665 
   688     m := PopUpMenu itemList:items resources:resources.
   684     m := PopUpMenu itemList:items resources:resources.
   689     m subMenuAt:#otherMenu put:specialMenu.
   685     m subMenuAt:#otherMenu put:specialMenu.
   690 
   686 
   691     ^ m
   687     ^ m
   692 
   688 
   693     "Modified: / 5.8.1998 / 14:25:20 / cg"
   689     "Modified: / 5.8.1998 / 14:58:10 / cg"
   694 !
   690 !
   695 
   691 
   696 realize
   692 realize
   697     super realize.
   693     super realize.
   698     updateBlock notNil ifTrue:[
   694     updateBlock notNil ifTrue:[
   953 ! !
   949 ! !
   954 
   950 
   955 !MemoryMonitor class methodsFor:'documentation'!
   951 !MemoryMonitor class methodsFor:'documentation'!
   956 
   952 
   957 version
   953 version
   958     ^ '$Header: /cvs/stx/stx/libtool/MemoryMonitor.st,v 1.54 1998-08-05 12:55:48 cg Exp $'
   954     ^ '$Header: /cvs/stx/stx/libtool/MemoryMonitor.st,v 1.55 1998-08-05 12:59:07 cg Exp $'
   959 ! !
   955 ! !