Event::Stats

Event::Stats is a Perl module for event loop statistics.
Download

Event::Stats Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Joshua Nathaniel Pritikin
  • Publisher web site:
  • http://search.cpan.org/~jprit/NetServer-Portal-1.08/lib/NetServer/Portal/Top.pm

Event::Stats Tags


Event::Stats Description

Event::Stats is a Perl module for event loop statistics. Event::Stats is a Perl module for event loop statistics. Instrument the Event module in order to gather statistics.APIcollect($yes)Determines whether statistics are collected. Arithmetically adds $yes to the usage count. Stats are enabled while the usage count is positive.$round_sec = round_seconds($sec)Statistics are not collected in one second intervals. This function converts a *desired* time interval into an *available* time interval. Units are in seconds.$elapse = total_time($sec)Due to long-running callbacks, measurement intervals may take longer than expected. This function returns the actual clock-time for a given measurement interval.($rans, $dies, $elapse) = idle_time($sec) ($runs, $dies, $elapse) = $watcher->stats($sec)Return statistics for the last $sec seconds of operation. Three numbers are returned: the number of times the callback has been invoked, the number of uncaught exceptions and the number of seconds spent within the callback. Also see NetServer::ProcessTop.enforce_max_callback_time($yes)Useful for debugging. XXX Requirements: · Perl


Event::Stats Related Software