ProcessWatcherDoc.tioga
Mike Spreitzer, April 22, 1986 10:39:37 pm PST
ProcessWatcher
CEDAR 6.0 — FOR INTERNAL XEROX USE ONLY
ProcessWatcher
Mike Spreitzer
© Copyright 1986 Xerox Corporation. All rights reserved.
Abstract: The ProcessWatcher package provides two kinds of displays of the active processes of a workstation. One is a "blinking light" display, with one light per process number. The other is a cyclical "strip chart", showing the activity of the past minute. Mouse clicks on these displays can provoke stack printouts.
Created by: Mike Spreitzer
Maintained by: Mike Spreitzer <Spreitzer.pa>
Keywords: Process, Ready
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
1. Getting Started
% cd ///Commands/
% Bringover -p [Cedar]<CedarChest6.0>Top>ProcessWatcher.DF
2. The Instantaneous Process Watcher
One is created with the "InstantaneousProcessWatcher" command tool command. They look like this:
[Artwork node; type 'ArtworkInterpress on' to command tool]
There is one tile for each process number. The tile is colored according to how recently the process has been `ready'. While a process is ready, it's tile is colored white. For the next 0.6 seconds after the process ceases to be ready, it is colored yellow. For the next 6.0 seconds after that it is red. For the next 60 seconds after that it is purple. Thereafter, it is black.
This tool lays itself out to fit the size of the viewer, trying to get squarish tiles.
A left mouse click on a process will get a printout of the stack frame that was warmest during the first sample of the most recent contiguous sequence of active samples. A middle mouse click gets a printout of that entire stack. While any mouse button is down, the message window reports what process is being pointed at.
3. The Tracing Process Watcher
One is created with the "TraceProcessWatcher" command tool command. They look like this:
[Artwork node; type 'ArtworkInterpress on' to command tool]
The horizontal axis is time, in seconds. Only one minute's worth of data is displayed: the minute before the vertical stroke (this sense of "before" allows wrapping around the end). The vertical axis is process number. The black is activity.
The two axes can vary in their scale. There is a menu button for each ("HScale" and "VScale"). A left click doubles the magnification; a right click halves it; and a middle click sets it to some value appropriate for the viewer size. The display of the data in the tool can be scrolled with the scroll bars.
The period between paints can be varied with the "PaintPeriod" menu button. Left click doubles the period; right click halves; and middle click resets to the default value.
This tool can be made quiescent. The "ToggleInhibition" menu button does this.
This tool gives information in response to mousing in the same way the instantaneous watcher does. It also highlights the process being pointed to by inverting that process's area.