Future::AsyncAwait::Metrics - report metrics from Future::AsyncAwait to Metrics::Any
Future::AsyncAwait::Metrics
Future::AsyncAwait
Metrics::Any
use Future::AsyncAwait::Metrics; # Additional metrics will now be reported
This module provides no functions or other import symbols. Instead, by simply loading it somewhere in the program, additional metrics are created and reported to Metrics::Any about the operation of Future::AsyncAwait.
The following metrics are reported:
A counter of the number of times an async sub has been suspended.
async sub
A counter of the number of times an async sub has been resumed.
A gauge giving the current count of async sub instances currently suspended.
A counter of the number of times that async sub context storage has been created. This may be less than asyncawait_suspends because storage is reused for multiple await calls within any one function invocation.
asyncawait_suspends
await
A counter giving the number of times that async sub context storage has been destroyed.
A gauge giving the current count of async sub context storage instances. This may be less than asyncawait_current_subs because not all of them may be currently suspended.
asyncawait_current_subs
Paul Evans <leonerd@leonerd.org.uk>
To install Future::AsyncAwait::Metrics, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Future::AsyncAwait::Metrics
CPAN shell
perl -MCPAN -e shell install Future::AsyncAwait::Metrics
For more information on module installation, please visit the detailed CPAN module installation guide.