← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/hailo
  Run on Thu Oct 21 22:50:37 2010
Reported on Thu Oct 21 22:52:14 2010

Filename/home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/B/Hooks/EndOfScope.pm
StatementsExecuted 79 statements in 895µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111671µs1.11msB::Hooks::EndOfScope::::BEGIN@14B::Hooks::EndOfScope::BEGIN@14
911147µs301µsB::Hooks::EndOfScope::::on_scope_endB::Hooks::EndOfScope::on_scope_end
999129µs38.1msB::Hooks::EndOfScope::::__ANON__[:26]B::Hooks::EndOfScope::__ANON__[:26]
91136µs36µsB::Hooks::EndOfScope::::__ANON__[:25]B::Hooks::EndOfScope::__ANON__[:25]
11124µs30µsnamespace::clean::::BEGIN@1 namespace::clean::BEGIN@1
11118µs18µsB::Hooks::EndOfScope::::BEGIN@13B::Hooks::EndOfScope::BEGIN@13
11115µs607µsB::Hooks::EndOfScope::::BEGIN@16B::Hooks::EndOfScope::BEGIN@16
11112µs21µsnamespace::clean::::BEGIN@2.7 namespace::clean::BEGIN@2.7
1115µs5µsB::Hooks::EndOfScope::::BEGIN@5B::Hooks::EndOfScope::BEGIN@5
1115µs5µsB::Hooks::EndOfScope::::BEGIN@8B::Hooks::EndOfScope::BEGIN@8
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1227µs235µs
# spent 30µs (24+6) within namespace::clean::BEGIN@1 which was called: # once (24µs+6µs) by namespace::clean::BEGIN@17 at line 1
use strict;
# spent 30µs making 1 call to namespace::clean::BEGIN@1 # spent 6µs making 1 call to strict::import
2240µs230µs
# spent 21µs (12+9) within namespace::clean::BEGIN@2.7 which was called: # once (12µs+9µs) by namespace::clean::BEGIN@17 at line 2
use warnings;
# spent 21µs making 1 call to namespace::clean::BEGIN@2.7 # spent 9µs making 1 call to warnings::import
3
4package B::Hooks::EndOfScope;
5
# spent 5µs within B::Hooks::EndOfScope::BEGIN@5 which was called: # once (5µs+0s) by namespace::clean::BEGIN@17 at line 7
BEGIN {
616µs $B::Hooks::EndOfScope::AUTHORITY = 'cpan:FLORA';
7121µs15µs}
# spent 5µs making 1 call to B::Hooks::EndOfScope::BEGIN@5
8
# spent 5µs within B::Hooks::EndOfScope::BEGIN@8 which was called: # once (5µs+0s) by namespace::clean::BEGIN@17 at line 10
BEGIN {
915µs $B::Hooks::EndOfScope::VERSION = '0.09';
10116µs15µs}
# spent 5µs making 1 call to B::Hooks::EndOfScope::BEGIN@8
11# ABSTRACT: Execute code after a scope finished compilation
12
13237µs118µs
# spent 18µs within B::Hooks::EndOfScope::BEGIN@13 which was called: # once (18µs+0s) by namespace::clean::BEGIN@17 at line 13
use 5.008000;
# spent 18µs making 1 call to B::Hooks::EndOfScope::BEGIN@13
143157µs31.16ms
# spent 1.11ms (671µs+443µs) within B::Hooks::EndOfScope::BEGIN@14 which was called: # once (671µs+443µs) by namespace::clean::BEGIN@17 at line 14
use Variable::Magic 0.34;
# spent 1.11ms making 1 call to B::Hooks::EndOfScope::BEGIN@14 # spent 33µs making 1 call to Exporter::import # spent 12µs making 1 call to UNIVERSAL::VERSION
15
16111µs1592µs
# spent 607µs (15+592) within B::Hooks::EndOfScope::BEGIN@16 which was called: # once (15µs+592µs) by namespace::clean::BEGIN@17 at line 19
use Sub::Exporter -setup => {
# spent 592µs making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:756]
17 exports => ['on_scope_end'],
18 groups => { default => ['on_scope_end'] },
191134µs1607µs};
# spent 607µs making 1 call to B::Hooks::EndOfScope::BEGIN@16
20
- -
23{
2412µs my $wiz = Variable::Magic::wizard
25946µs
# spent 36µs within B::Hooks::EndOfScope::__ANON__[/home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/B/Hooks/EndOfScope.pm:25] which was called 9 times, avg 4µs/call: # 9 times (36µs+0s) by Variable::Magic::cast at line 37, avg 4µs/call
data => sub { [$_[1]] },
2619137µs1038.0ms
# spent 38.1ms (129µs+38.0) within B::Hooks::EndOfScope::__ANON__[/home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/B/Hooks/EndOfScope.pm:26] which was called 9 times, avg 4.23ms/call: # once (16µs+4.60ms) by Mouse::Util::_try_load_one_class at line 632 of lib/Hailo.pm # once (15µs+4.38ms) by Mouse::Util::_try_load_one_class at line 69 of lib/Hailo/Role/Engine.pm # once (14µs+4.34ms) by Mouse::Util::_try_load_one_class at line 42 of lib/Hailo/Role/Arguments.pm # once (13µs+4.33ms) by Mouse::Util::_try_load_one_class at line 129 of lib/Hailo/Role/Storage.pm # once (13µs+4.29ms) by Mouse::Util::_try_load_one_class at line 92 of lib/Hailo/Role/Tokenizer.pm # once (14µs+4.29ms) by main::RUNTIME at line 111 of bin/hailo # once (15µs+4.09ms) by Hailo::_new_class at line 227 of lib/Hailo/Tokenizer/Words.pm # once (15µs+3.83ms) by hailo::BEGIN@8 at line 435 of lib/Hailo/Command.pm # once (15µs+3.82ms) by Hailo::_new_class at line 211 of lib/Hailo/Storage/SQLite.pm
free => sub { $_->() for @{ $_[1] }; () };
# spent 38.0ms making 9 calls to namespace::clean::__ANON__[namespace/clean.pm:110], avg 4.22ms/call # spent 51µs making 1 call to Variable::Magic::wizard
27
28
# spent 301µs (147+154) within B::Hooks::EndOfScope::on_scope_end which was called 9 times, avg 33µs/call: # 9 times (147µs+154µs) by namespace::clean::import at line 110 of namespace/clean.pm, avg 33µs/call
sub on_scope_end (&) {
29912µs my $cb = shift;
30
31918µs $^H |= 0x020000;
32
339102µs921µs if (my $stack = Variable::Magic::getdata %^H, $wiz) {
# spent 21µs making 9 calls to Variable::Magic::getdata, avg 2µs/call
34 push @{ $stack }, $cb;
35 }
36 else {
379122µs18168µs Variable::Magic::cast %^H, $wiz, $cb;
# spent 132µs making 9 calls to Variable::Magic::cast, avg 15µs/call # spent 36µs making 9 calls to B::Hooks::EndOfScope::__ANON__[B/Hooks/EndOfScope.pm:25], avg 4µs/call
38 }
39 }
40}
41
42
4315µs1;
44
45__END__