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.
<minutes>
Set the subject of the mail.
Record every <seconds> seconds the CPU usage.
<seconds>
Send notification mails to <address.
<address
Set he notification threshold to <fraction>. 100% CPU usage corresponds to a fraction of 1.
<fraction>
The CPU usage is averaged over a time span of <steps> * <interval time>.
<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.
jw bargsten, <jwb at cpan dot org>
<jwb at cpan dot org>
To install Bio::Gonzales, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Gonzales
CPAN shell
perl -MCPAN -e shell install Bio::Gonzales
For more information on module installation, please visit the detailed CPAN module installation guide.