![]() |
![]() |
||
![]() |
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:
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. |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() ![]() |
f3c development |
![]() |