line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Devel::DTrace::Provider; |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
62337
|
use 5.008; |
|
7
|
|
|
|
|
27
|
|
|
7
|
|
|
|
|
292
|
|
4
|
7
|
|
|
7
|
|
73
|
use strict; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
270
|
|
5
|
7
|
|
|
7
|
|
39
|
use warnings; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
264
|
|
6
|
7
|
|
|
7
|
|
37
|
use vars qw/ $DTRACE_AVAILABLE /; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
918
|
|
7
|
|
|
|
|
|
|
|
8
|
7
|
|
|
7
|
|
12531
|
use JSON; |
|
7
|
|
|
|
|
177302
|
|
|
7
|
|
|
|
|
110
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
BEGIN { |
11
|
7
|
|
|
7
|
|
1951
|
our $VERSION = '1.11'; |
12
|
7
|
|
|
|
|
66
|
require XSLoader; |
13
|
7
|
|
|
|
|
16
|
eval { |
14
|
7
|
|
|
|
|
60423
|
XSLoader::load('Devel::DTrace::Provider', $VERSION); |
15
|
|
|
|
|
|
|
}; |
16
|
|
|
|
|
|
|
|
17
|
7
|
|
|
|
|
37
|
$DTRACE_AVAILABLE = 1; |
18
|
7
|
50
|
33
|
|
|
107
|
if ($@ && $@ =~ /Can't locate loadable object/) { |
19
|
|
|
|
|
|
|
# No object - assume it wasn't built, and we should noop everything. |
20
|
7
|
|
|
|
|
1024
|
$DTRACE_AVAILABLE = 0; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
58
|
|
|
58
|
0
|
9544
|
sub DTRACE_AVAILABLE { $DTRACE_AVAILABLE }; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub probe { |
27
|
0
|
|
|
0
|
1
|
|
my ($self, $name, $function, @types) = @_; |
28
|
0
|
|
|
|
|
|
$self->add_probe($name, $function, \@types); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |