File Coverage

blib/lib/Sys/CPU.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Sys::CPU;
2            
3 1     1   617 use strict;
  1         2  
  1         38  
4            
5 1     1   5 use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK $VERSION);
  1         2  
  1         179  
6             require Exporter;
7             require DynaLoader;
8            
9             our @ISA = qw(Exporter DynaLoader);
10            
11             # This allows declaration use Sys::CPU ':all';
12             # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
13             # will save memory.
14             our %EXPORT_TAGS = ( 'all' => [ qw(
15             cpu_count
16             cpu_clock
17             cpu_type
18             ) ] );
19            
20             our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
21            
22             our $VERSION = '0.61';
23            
24             bootstrap Sys::CPU $VERSION;
25            
26             # Preloaded methods go here.
27            
28             1;
29             __END__