← Index
NYTProf Performance Profile   « line view »
For flows_to_es.pl
  Run on Mon May 9 23:27:59 2016
Reported on Mon May 9 23:28:09 2016

Filename/usr/lib/perl/5.18/Time/HiRes.pm
StatementsExecuted 31 statements in 652µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11148µs48µsTime::HiRes::::bootstrapTime::HiRes::bootstrap (xsub)
33342µs369µsTime::HiRes::::importTime::HiRes::import
11118µs18µsTime::HiRes::::BEGIN@3Time::HiRes::BEGIN@3
22114µs14µsTime::HiRes::::timeTime::HiRes::time (xsub)
1118µs20µsTime::HiRes::::BEGIN@43Time::HiRes::BEGIN@43
1117µs21µsTime::HiRes::::BEGIN@4Time::HiRes::BEGIN@4
0000s0sTime::HiRes::::AUTOLOADTime::HiRes::AUTOLOAD
0000s0sTime::HiRes::::__ANON__[:44]Time::HiRes::__ANON__[:44]
0000s0sTime::HiRes::::tv_intervalTime::HiRes::tv_interval
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Time::HiRes;
2
3356µs118µs
# spent 18µs within Time::HiRes::BEGIN@3 which was called: # once (18µs+0s) by InfluxDB::LineProtocol::BEGIN@10 at line 3
{ use 5.006; }
# spent 18µs making 1 call to Time::HiRes::BEGIN@3
42216µs234µs
# spent 21µs (7+14) within Time::HiRes::BEGIN@4 which was called: # once (7µs+14µs) by InfluxDB::LineProtocol::BEGIN@10 at line 4
use strict;
# spent 21µs making 1 call to Time::HiRes::BEGIN@4 # spent 14µs making 1 call to strict::import
5
61700nsrequire Exporter;
71300nsrequire DynaLoader;
8
917µsour @ISA = qw(Exporter DynaLoader);
10
111400nsour @EXPORT = qw( );
1215µsour @EXPORT_OK = qw (usleep sleep ualarm alarm gettimeofday time tv_interval
13 getitimer setitimer nanosleep clock_gettime clock_getres
14 clock clock_nanosleep
15 CLOCK_HIGHRES CLOCK_MONOTONIC CLOCK_PROCESS_CPUTIME_ID
16 CLOCK_REALTIME CLOCK_SOFTTIME CLOCK_THREAD_CPUTIME_ID
17 CLOCK_TIMEOFDAY CLOCKS_PER_SEC
18 ITIMER_REAL ITIMER_VIRTUAL ITIMER_PROF ITIMER_REALPROF
19 TIMER_ABSTIME
20 d_usleep d_ualarm d_gettimeofday d_getitimer d_setitimer
21 d_nanosleep d_clock_gettime d_clock_getres
22 d_clock d_clock_nanosleep
23 stat
24 );
25
261300nsour $VERSION = '1.9725';
2712µsour $XS_VERSION = $VERSION;
28120µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
29
301100nsour $AUTOLOAD;
31sub AUTOLOAD {
32 my $constname;
33 ($constname = $AUTOLOAD) =~ s/.*:://;
34 # print "AUTOLOAD: constname = $constname ($AUTOLOAD)\n";
35 die "&Time::HiRes::constant not defined" if $constname eq 'constant';
36 my ($error, $val) = constant($constname);
37 # print "AUTOLOAD: error = $error, val = $val\n";
38 if ($error) {
39 my (undef,$file,$line) = caller;
40 die "$error at $file line $line.\n";
41 }
42 {
432290µs232µs
# spent 20µs (8+12) within Time::HiRes::BEGIN@43 which was called: # once (8µs+12µs) by InfluxDB::LineProtocol::BEGIN@10 at line 43
no strict 'refs';
# spent 20µs making 1 call to Time::HiRes::BEGIN@43 # spent 12µs making 1 call to strict::unimport
44 *$AUTOLOAD = sub { $val };
45 }
46 goto &$AUTOLOAD;
47}
48
49
# spent 369µs (42+327) within Time::HiRes::import which was called 3 times, avg 123µs/call: # once (14µs+165µs) by InfluxDB::LineProtocol::BEGIN@10 at line 10 of /opt/flows/lib/lib/perl5/InfluxDB/LineProtocol.pm # once (19µs+90µs) by Search::Elasticsearch::Role::CxnPool::BEGIN@7 at line 7 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/CxnPool.pm # once (10µs+71µs) by Search::Elasticsearch::Transport::BEGIN@6 at line 6 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Transport.pm
sub import {
5032µs my $this = shift;
5136µs for my $i (@_) {
5248µs if (($i eq 'clock_getres' && !&d_clock_getres) ||
53 ($i eq 'clock_gettime' && !&d_clock_gettime) ||
54 ($i eq 'clock_nanosleep' && !&d_clock_nanosleep) ||
55 ($i eq 'clock' && !&d_clock) ||
56 ($i eq 'nanosleep' && !&d_nanosleep) ||
57 ($i eq 'usleep' && !&d_usleep) ||
58 ($i eq 'ualarm' && !&d_ualarm)) {
59 require Carp;
60 Carp::croak("Time::HiRes::$i(): unimplemented in this platform");
61 }
62 }
63321µs352µs Time::HiRes->export_to_level(1, $this, @_);
# spent 52µs making 3 calls to Exporter::export_to_level, avg 17µs/call
64}
65
6618µs1217µsbootstrap Time::HiRes;
# spent 217µs making 1 call to DynaLoader::bootstrap
67
68# Preloaded methods go here.
69
70sub tv_interval {
71 # probably could have been done in C
72 my ($a, $b) = @_;
73 $b = [gettimeofday()] unless defined($b);
74 (${$b}[0] - ${$a}[0]) + ((${$b}[1] - ${$a}[1]) / 1_000_000);
75}
76
77# Autoload methods go after =cut, and are processed by the autosplit program.
78
7919µs1;
80__END__
 
# spent 48µs within Time::HiRes::bootstrap which was called: # once (48µs+0s) by DynaLoader::bootstrap at line 207 of DynaLoader.pm
sub Time::HiRes::bootstrap; # xsub
# spent 14µs within Time::HiRes::time which was called 2 times, avg 7µs/call: # once (12µs+0s) by Search::Elasticsearch::Transport::try {...} at line 26 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Transport.pm # once (2µs+0s) by Search::Elasticsearch::Transport::try {...} at line 31 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Transport.pm
sub Time::HiRes::time; # xsub