← 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:08 2016

Filename/usr/lib/perl5/Sub/Name.pm
StatementsExecuted 15 statements in 333µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1111.03ms1.15msSub::Name::::BEGIN@49Sub::Name::BEGIN@49
20432428µs428µsSub::Name::::subnameSub::Name::subname (xsub)
11122µs22µsSub::Name::::bootstrapSub::Name::bootstrap (xsub)
11115µs15µsSub::Name::::BEGIN@42Sub::Name::BEGIN@42
1118µs13µsSub::Name::::BEGIN@45Sub::Name::BEGIN@45
1118µs1.88msSub::Name::::BEGIN@50Sub::Name::BEGIN@50
1117µs20µsSub::Name::::BEGIN@44Sub::Name::BEGIN@44
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Sub::Name;
2
3=head1 NAME
4
5Sub::Name - (re)name a sub
6
7=head1 SYNOPSIS
8
9 use Sub::Name;
10
11 subname $name, $subref;
12
13 $subref = subname foo => sub { ... };
14
15=head1 DESCRIPTION
16
17This module has only one function, which is also exported by default:
18
19=head2 subname NAME, CODEREF
20
21Assigns a new name to referenced sub. If package specification is omitted in
22the name, then the current package is used. The return value is the sub.
23
24The name is only used for informative routines (caller, Carp, etc). You won't
25be able to actually invoke the sub by the given name. To allow that, you need
26to do glob-assignment yourself.
27
28Note that for anonymous closures (subs that reference lexicals declared outside
29the sub itself) you can name each instance of the closure differently, which
30can be very useful for debugging.
31
32=head1 AUTHOR
33
34Matthijs van Duin <xmath@cpan.org>
35
36Copyright (C) 2004, 2008 Matthijs van Duin. All rights reserved.
37This program is free software; you can redistribute it and/or modify
38it under the same terms as Perl itself.
39
40=cut
41
42249µs115µs
# spent 15µs within Sub::Name::BEGIN@42 which was called: # once (15µs+0s) by Try::Tiny::BEGIN@1 at line 42
use 5.006;
# spent 15µs making 1 call to Sub::Name::BEGIN@42
43
44229µs233µs
# spent 20µs (7+13) within Sub::Name::BEGIN@44 which was called: # once (7µs+13µs) by Try::Tiny::BEGIN@1 at line 44
use strict;
# spent 20µs making 1 call to Sub::Name::BEGIN@44 # spent 13µs making 1 call to strict::import
45247µs218µs
# spent 13µs (8+5) within Sub::Name::BEGIN@45 which was called: # once (8µs+5µs) by Try::Tiny::BEGIN@1 at line 45
use warnings;
# spent 13µs making 1 call to Sub::Name::BEGIN@45 # spent 5µs making 1 call to warnings::import
46
471800nsour $VERSION = '0.05';
48
492129µs21.22ms
# spent 1.15ms (1.03+125µs) within Sub::Name::BEGIN@49 which was called: # once (1.03ms+125µs) by Try::Tiny::BEGIN@1 at line 49
use base 'Exporter';
# spent 1.15ms making 1 call to Sub::Name::BEGIN@49 # spent 68µs making 1 call to base::import
50265µs23.75ms
# spent 1.88ms (8µs+1.87) within Sub::Name::BEGIN@50 which was called: # once (8µs+1.87ms) by Try::Tiny::BEGIN@1 at line 50
use base 'DynaLoader';
# spent 1.88ms making 1 call to Sub::Name::BEGIN@50 # spent 1.87ms making 1 call to base::import
51
521900nsour @EXPORT = qw(subname);
531600nsour @EXPORT_OK = @EXPORT;
54
5516µs1202µsbootstrap Sub::Name $VERSION;
# spent 202µs making 1 call to DynaLoader::bootstrap
56
5715µs1;
 
# spent 22µs within Sub::Name::bootstrap which was called: # once (22µs+0s) by DynaLoader::bootstrap at line 207 of DynaLoader.pm
sub Sub::Name::bootstrap; # xsub
# spent 428µs within Sub::Name::subname which was called 204 times, avg 2µs/call: # 194 times (403µs+0s) by Moo::_Utils::_name_coderef at line 89 of Moo/_Utils.pm, avg 2µs/call # 5 times (16µs+0s) by Try::Tiny::try at line 60 of Try/Tiny.pm, avg 3µs/call # 5 times (9µs+0s) by Try::Tiny::try at line 61 of Try/Tiny.pm, avg 2µs/call
sub Sub::Name::subname; # xsub