blib/lib/Sys/LoadAvg.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« LoadAvg.xs ↑ Summary
1 package Sys::LoadAvg;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 require Exporter;
6 1 require DynaLoader;
7  
8 1 ▶use vars qw( @ISA %EXPORT_TAGS @EXPORT_OK @EXPORT $VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 @ISA = qw(Exporter DynaLoader);
11  
12 1 ▶use constant LOADAVG_1MIN => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use constant LOADAVG_5MIN => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use constant LOADAVG_15MIN => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 # Items to export into callers namespace by default. Note: do not export
17 # names by default without a very good reason. Use EXPORT_OK instead.
18 # Do not simply export all your public functions/methods/constants.
19  
20 # This allows declaration use Sys::LoadAvg ':all';
21 # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
22 # will save memory.
23 1 %EXPORT_TAGS = ( 'all' => [ qw(
24 loadavg LOADAVG_1MIN LOADAVG_5MIN LOADAVG_15MIN
25 ) ] );
26  
27 1 @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
28  
29 1 @EXPORT = qw(
30 LOADAVG_1MIN LOADAVG_5MIN LOADAVG_15MIN
31 );
32 1 $VERSION = '0.03';
33  
34 1 bootstrap Sys::LoadAvg $VERSION;
35  
36 # Preloaded methods go here.
37  
38 1 1;
39 __END__
« LoadAvg.xs ↑ Summary