This program is still being heavily tested though totally usable.

pscpug will graph the CPU percent of a process.  The process ID of the 
process to watch must be given on the command line.  Optionally, 
the time to wait between each graph redraw can be specified.

The program requires curses or ncurses.



USAGE
pscpug [-w wait time for refresh] [-s] pid

...for example, after building:
./pscpug -w1 5054
...will graph the specified PID from 0% to 100% cpu usage every second.

When the specified process ID exits, pscpug will quit and print 
statistics about the %CPU used by the process (average, maximum, and minimum).
You can also quit pscpug by pressing a key on the keyboard (it will quit 
after making one final sample) or by hitting ctrl-C (it will quit right away).
If you'd like to supress printing statistics at close, use the -s flag.



BUILD & INSTALL

make
make install (optional, as root, to install pscpug to /usr/local)



KNOWN ISSUES:
* At this point, pscpug is only expected to run on 
  BSD and Linux flavors.  Feel free to try to build and 
  run it on other unix-like OSes, however, the program may
  simply not work at all.
* If you make a command line argument such as -w 0, you'll
  notice that pscpug will run really fast.  It will also eat 
  lots of CPU time.  This is probably a feature.
* If you run pscpug on a dumb terminal, there will be upsettingly
  little information about the process.  Namely, nothing.



TO-DO
* Support for Sun, other bizarre unix flavors.
* Dumb terminal support (and support for users without ncurses).
* Test on other BSDs and Linux distros.  As of now, I've tested it 
  on NetBSD, OpenBSD, Mac OS X, and Slackware.
* Perhaps take multiple process IDs off the command line, and display them
  possibly in different colors or something.
* Write a manual page (ugh).

If you notice any issues, please e-mail me at mercadal@diablonet.net
and tell me what's up.  Thanks!
