← Index
NYTProf Performance Profile   « block view • line view • sub view »
For reply.pl
  Run on Thu Oct 21 22:40:13 2010
Reported on Thu Oct 21 22:44:43 2010

Filename/home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/B/Hooks/EndOfScope.pm
StatementsExecuted 65 statements in 894µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.33ms8.80msB::Hooks::EndOfScope::::BEGIN@16B::Hooks::EndOfScope::BEGIN@16
111660µs1.11msB::Hooks::EndOfScope::::BEGIN@14B::Hooks::EndOfScope::BEGIN@14
711115µs229µsB::Hooks::EndOfScope::::on_scope_endB::Hooks::EndOfScope::on_scope_end
77799µs30.7msB::Hooks::EndOfScope::::__ANON__[:26]B::Hooks::EndOfScope::__ANON__[:26]
71128µs28µsB::Hooks::EndOfScope::::__ANON__[:25]B::Hooks::EndOfScope::__ANON__[:25]
11125µs30µsnamespace::clean::::BEGIN@1 namespace::clean::BEGIN@1
11119µs19µsB::Hooks::EndOfScope::::BEGIN@13B::Hooks::EndOfScope::BEGIN@13
11111µs20µsnamespace::clean::::BEGIN@2.4 namespace::clean::BEGIN@2.4
1115µs5µsB::Hooks::EndOfScope::::BEGIN@8B::Hooks::EndOfScope::BEGIN@8
1115µs5µsB::Hooks::EndOfScope::::BEGIN@5B::Hooks::EndOfScope::BEGIN@5
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1226µs235µs
# spent 30µs (25+5) within namespace::clean::BEGIN@1 which was called: # once (25µs+5µs) by namespace::clean::BEGIN@17 at line 1
use strict;
# spent 30µs making 1 call to namespace::clean::BEGIN@1 # spent 5µs making 1 call to strict::import
2243µs229µs
# spent 20µs (11+9) within namespace::clean::BEGIN@2.4 which was called: # once (11µs+9µs) by namespace::clean::BEGIN@17 at line 2
use warnings;
# spent 20µs making 1 call to namespace::clean::BEGIN@2.4 # 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';
7124µ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';
10120µs15µs}
# spent 5µs making 1 call to B::Hooks::EndOfScope::BEGIN@8
11# ABSTRACT: Execute code after a scope finished compilation
12
13238µs119µs
# spent 19µs within B::Hooks::EndOfScope::BEGIN@13 which was called: # once (19µs+0s) by namespace::clean::BEGIN@17 at line 13
use 5.008000;
# spent 19µs making 1 call to B::Hooks::EndOfScope::BEGIN@13
143150µs31.16ms
# spent 1.11ms (660µs+451µs) within B::Hooks::EndOfScope::BEGIN@14 which was called: # once (660µs+451µ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 15µs making 1 call to UNIVERSAL::VERSION
15
16112µs1525µs
# spent 8.80ms (2.33+6.47) within B::Hooks::EndOfScope::BEGIN@16 which was called: # once (2.33ms+6.47ms) by namespace::clean::BEGIN@17 at line 19
use Sub::Exporter -setup => {
# spent 525µs making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:756]
17 exports => ['on_scope_end'],
18 groups => { default => ['on_scope_end'] },
191229µs18.80ms};
# spent 8.80ms making 1 call to B::Hooks::EndOfScope::BEGIN@16
20
- -
23{
2412µs my $wiz = Variable::Magic::wizard
25735µs
# spent 28µ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 7 times, avg 4µs/call: # 7 times (28µs+0s) by Variable::Magic::cast at line 37, avg 4µs/call
data => sub { [$_[1]] },
2615108µs830.7ms
# spent 30.7ms (99µs+30.6) 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 7 times, avg 4.39ms/call: # once (13µs+4.75ms) by Mouse::Util::_try_load_one_class at line 48 of Hailo/Role/Arguments.pm # once (14µs+4.65ms) by main::BEGIN@6 at line 638 of Hailo.pm # once (15µs+4.55ms) by Mouse::Util::_try_load_one_class at line 98 of Hailo/Role/Tokenizer.pm # once (14µs+4.42ms) by Mouse::Util::_try_load_one_class at line 135 of Hailo/Role/Storage.pm # once (14µs+4.34ms) by Mouse::Util::_try_load_one_class at line 75 of Hailo/Role/Engine.pm # once (15µs+4.09ms) by Hailo::_new_class at line 233 of Hailo/Tokenizer/Words.pm # once (14µs+3.83ms) by Hailo::_new_class at line 217 of Hailo/Storage/SQLite.pm
free => sub { $_->() for @{ $_[1] }; () };
# spent 30.6ms making 7 calls to namespace::clean::__ANON__[namespace/clean.pm:110], avg 4.38ms/call # spent 48µs making 1 call to Variable::Magic::wizard
27
28
# spent 229µs (115+114) within B::Hooks::EndOfScope::on_scope_end which was called 7 times, avg 33µs/call: # 7 times (115µs+114µs) by namespace::clean::import at line 110 of namespace/clean.pm, avg 33µs/call
sub on_scope_end (&) {
29710µs my $cb = shift;
30
31714µs $^H |= 0x020000;
32
33778µs716µs if (my $stack = Variable::Magic::getdata %^H, $wiz) {
# spent 16µs making 7 calls to Variable::Magic::getdata, avg 2µs/call
34 push @{ $stack }, $cb;
35 }
36 else {
37790µs14126µs Variable::Magic::cast %^H, $wiz, $cb;
# spent 98µs making 7 calls to Variable::Magic::cast, avg 14µs/call # spent 28µs making 7 calls to B::Hooks::EndOfScope::__ANON__[B/Hooks/EndOfScope.pm:25], avg 4µs/call
38 }
39 }
40}
41
42
4314µs1;
44
45__END__