line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package NewFangle 0.07 { |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
1780006
|
use strict; |
|
7
|
|
|
|
|
49
|
|
|
7
|
|
|
|
|
228
|
|
4
|
7
|
|
|
7
|
|
38
|
use warnings; |
|
7
|
|
|
|
|
20
|
|
|
7
|
|
|
|
|
181
|
|
5
|
7
|
|
|
7
|
|
162
|
use 5.014; |
|
7
|
|
|
|
|
22
|
|
6
|
7
|
|
|
7
|
|
3416
|
use NewFangle::FFI; |
|
7
|
|
|
|
|
32
|
|
|
7
|
|
|
|
|
1147
|
|
7
|
7
|
|
|
7
|
|
3971
|
use NewFangle::Config; |
|
7
|
|
|
|
|
21
|
|
|
7
|
|
|
|
|
270
|
|
8
|
7
|
|
|
7
|
|
3419
|
use NewFangle::App; |
|
7
|
|
|
|
|
39
|
|
|
7
|
|
|
|
|
351
|
|
9
|
7
|
|
|
7
|
|
4292
|
use NewFangle::CustomEvent; |
|
7
|
|
|
|
|
29
|
|
|
7
|
|
|
|
|
317
|
|
10
|
7
|
|
|
7
|
|
56
|
use base qw( Exporter ); |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
2701
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# ABSTRACT: Unofficial Perl NewRelic SDK |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
$ffi->mangler(sub { $_[0] }); |
16
|
|
|
|
|
|
|
$ffi->attach( newrelic_configure_log => ['string','newrelic_loglevel_t' ] => 'bool' ); |
17
|
|
|
|
|
|
|
$ffi->attach( newrelic_init => ['string','int' ] => 'bool' ); |
18
|
|
|
|
|
|
|
$ffi->attach( newrelic_version => [] => 'string' ); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
if($ffi->find_symbol( 'newrelic_set_hostname' )) |
21
|
|
|
|
|
|
|
{ |
22
|
|
|
|
|
|
|
$ffi->attach( newrelic_set_hostname => ['string'] => 'int' ); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
else |
25
|
|
|
|
|
|
|
{ |
26
|
|
|
|
|
|
|
*newrelic_set_hostname = sub { 0 }; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
$ffi->mangler(sub { "newrelic_$_[0]" }); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
our @EXPORT_OK = grep /^newrelic_/, keys %NewFangle::; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
}; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |