line |
true |
false |
branch |
34
|
1 |
5 |
defined $_[0] ? : |
58
|
0 |
1 |
if ($legacyNamespace) { } |
69
|
1 |
0 |
if ($globalPrefix ne '') |
77
|
1 |
0 |
if ($prefixCounter ne '') |
81
|
1 |
0 |
if ($prefixTimer ne '') |
85
|
1 |
0 |
if ($prefixGauge ne '') |
89
|
1 |
0 |
if ($prefixSet ne '') |
114
|
0 |
1 |
if (not $self->{'prefixStats'}) |
153
|
0 |
2 |
if ($self->{'legacyNamespace'}) { } |
165
|
0 |
0 |
if ($timer_data->{$key} and keys %{$$timer_data{$key};} > 0) |
198
|
0 |
1 |
if ($self->{'legacyNamespace'}) { } |
227
|
0 |
1 |
unless ($g_pref) |
249
|
0 |
0 |
unless $self->{'graphiteHost'} |
254
|
0 |
0 |
unless my $graphite = 'IO::Socket::INET'->new('PeerHost', $host, 'PeerPort', $port) |
265
|
0 |
0 |
unless (eval {
do {
my $host = $self->{'graphiteHost'};
my $port = $self->{'graphitePort'};
die "Can't connect to Graphite on ${host}:${port}: $!" unless my $graphite = 'IO::Socket::INET'->new('PeerHost', $host, 'PeerPort', $port);
my $stat_string = $self->stats_to_string($stat_list);
$graphite->send($stat_string);
$graphite->close;
$self->{'lastFlush'} = [&Time::HiRes::gettimeofday()]
}
}) |
266
|
0 |
0 |
if ($self->{'debug'}) |
322
|
0 |
0 |
unless defined $val |
324
|
0 |
0 |
exists $attr->{'fmt'} ? : |