Squeak Class Documentation category index | class index  
 
CPUWatcher
  category: Tools-Process Browser
  superclass: Model
  subclasses:

CPUWatcher implements a simple runaway process monitoring tool
that will suspend a process that is taking up too much of Squeak's
time and allow user interaction. By default it watches for a Process that
is taking more than 80% of the time; this threshold can be changed.

CPUWatcher can also be used to show cpu percentages for each process
from within the ProcessBrowser.

CPUWatcher startMonitoring. "process period 20 seconds, sample rate 100 msec"
CPUWatcher current monitorProcessPeriod: 10 sampleRate: 20.
CPUWatcher current threshold: 0.5. "change from 80% to 50%"
CPUWatcher stopMonitoring.

instance methods
  accessing
  isMonitoring
tally
threshold
threshold:
watcherProcess

  porcine capture
  catchThePig:
findThePig
openMVCWindowForSuspendedProcess:
openMorphicWindowForSuspendedProcess:
openWindowForSuspendedProcess:

  process operations
  debugProcess:
debugProcess:fromMenu:
resumeProcess:fromMenu:
terminateProcess:fromMenu:

  startup-shutdown
  monitorProcessPeriod:sampleRate:
startMonitoring
stopMonitoring

class methods
  as yet unclassified
  current
currentWatcherProcess
dumpTallyOnTranscript
isMonitoring
monitorPreferenceChanged
startMonitoring
startMonitoringPeriod:rate:threshold:
stopMonitoring

instance methods
  accessing top  
 

isMonitoring


 

tally


 

threshold

What fraction of the time can a process be the active process before we stop it?


 

threshold:

What fraction of the time can a process be the active process before we stop it?


 

watcherProcess


  porcine capture top  
 

catchThePig:

nickname, allow-stop, allow-debug


 

findThePig

tally has been updated. Look at it to see if there is a bad process.
This runs at a very high priority, so make it fast


 

openMVCWindowForSuspendedProcess:


 

openMorphicWindowForSuspendedProcess:


 

openWindowForSuspendedProcess:


  process operations top  
 

debugProcess:


 

debugProcess:fromMenu:


 

resumeProcess:fromMenu:


 

terminateProcess:fromMenu:


  startup-shutdown top  
 

monitorProcessPeriod:sampleRate:


 

startMonitoring


 

stopMonitoring


class methods
  as yet unclassified top  
 

current


 

currentWatcherProcess


 

dumpTallyOnTranscript


 

isMonitoring


 

monitorPreferenceChanged


 

startMonitoring

CPUWatcher startMonitoring


 

startMonitoringPeriod:rate:threshold:

CPUWatcher startMonitoring


 

stopMonitoring

CPUWatcher stopMonitoring