track_b2g.pl [OPTIONS] <pid1> [<pid2 ... <pidn>]
Track the CPU usage of processes and send a mail if the usage falls below a certain threshold.
If the mail got send, wait
<minutes> minutes before resume tracking. This prevents sending you hundreds of mails if the processes are below the threshold.
Set the subject of the mail.
<seconds> seconds the CPU usage.
Send notification mails to
Set he notification threshold to
<fraction>. 100% CPU usage corresponds to a fraction of 1.
The CPU usage is averaged over a time span of
<steps> * <interval time>.
Enable reporting of CPU usage fraction to STDOUT. If the number of steps is smaller than the averaging window, "." is printed. If a mail is sent, "|" is printed.
<jwb at cpan dot org>