ftp.nice.ch/pub/next/tools/performance/WatchSwap.1.7.README

This is the README for WatchSwap.1.7.NIHS.b.tar.gz [Download] [Browse] [Up]

Long, long ago in the days of NeXTStep v. 2.1, I was working on a big development project that had some pretty buggy apps.  Somebody that I worked with had an app which showed the size of your ever increasing swap file.  The thing that I didn't like about it was that it used a huge font so that when you displayed a big number, like 28934144, it took up a sizable chunk of screen real estate.

I was a beginning NeXTStep (that was how it was capitalized back then) programmer and thought that it'd be good exercise to put this one little piece of information onto an icon.  Thus was born WatchSwap.

Until WatchSwap's only major revision (about a year ago), it displayed the full number of bytes.  Now it displays the size in megabytes with one decimal place accuracy.  So, the number above (my current swap file size) is displayed as "27.6 MB".

This icon fits nicely on my dock and tells me when I've been doing too many compiles and it's time to reboot my machine (I usually reboot my Compaq when the swap file is larger than 30-35 meg).  No, it doesn't actually tell me... maybe that's something that should be added.  Okay, I just added it.  So now it's version 1.6 and there's been more than one revision.

As with most of this stuff, there is no warranty.  Feel free to make changes, but please don't charge money for this and do include my name in the credits.

CHANGES IN VERSION ~1.7
o	The app is now compiled for all four major NEXTSTEP architectures (m68k, 
    i386, hppa, sparc).
o	WatchSwap now looks at /private/swapdisk/vm/swapfile in addition to 
    /private/vm/swapfile.  This is a common NeXT way of adding a swap disk.  My 
	apologies to those of you who would like me to look in /etc/swaptab and 
	work from there... some day.
o	There's now a cool option to play a stretching sound whenever the swap file 
    grows (thanks to Peter Langston for both the suggestion and the sound).
o	The option to change how the size of the swap file is shown does not yet 
    work.  Sorry.
	
enjoy.

Doug Harris
dough@bou.shl.com

(to the archive site administrators -- This package replaces WatchSwap.app.tar.gz in /software/NeXT/binaries/util)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.