LifeStat

Introduction

The purpose of LifeStat is to monitor a BeOS application's life signs during development for optimization reasons or to simply find out what's going on. Basically this is the graphical version of printf("%f");

Usage

It's fairly simple. The shortest code to use LifeStat for your BeOS application would be:

BMessage *msg = new BMessage('stat');
msg->AddString("id", "MyApp");
msg->AddFloat("my_value_name", my_value);
be_roster->Launch("application/x-vnd.f3c-lifestat", msg);
As you can see, lifestat is sent a 'stat' message containing an id-String and any number of float you want to keep track of.
It is also possible to put arrays of floats (multiple entries with the same name) into the message. These will be treated as if they were sent seperately.
Note: LifeStat will automatically quit after a short time when the flow of messages ceases.'

Caveats

The display update is Pulse()-driven. You can set the PulseRate by adding a float "pulse_rate" to the first (or all) messages. I'm clipping this value to [5E4..1E6] for sanity (complain, please). Dont send too many messages, this is no realtime oscilloscope. The average-mode calculation is very stupid and will eat your cpu after a while. The buffers will fill up and eat your memory. So dont leave this alone.'

Updates:
http://f3c.com/software/lifestat/
Author:
Nick Fischer

LifeStat is copyright © , f3c - Nicolas and Daniel Fischer. All rights reserved.
LifeStat is Freeware. You might copy and distribute it as you want, as long as the original archive remains unchanged. Neither the actual author nor f3c will give any warranty whatsoever. It is okay to include LifeStat in a bundled distribution, as long as we receive a copy of this distribution.


f3c development
October 27, 1999