| Filename | /Users/marcus/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Mojo.pm |
| Statements | Executed 35 statements in 886µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 4.49ms | 345ms | Mojo::BEGIN@5 |
| 1 | 1 | 1 | 923µs | 3.06ms | Mojo::BEGIN@6 |
| 1 | 1 | 1 | 53µs | 346µs | Mojo::new |
| 1 | 1 | 1 | 25µs | 76µs | Mojo::BEGIN@2 |
| 1 | 1 | 1 | 16µs | 16µs | Mojo::CORE:ftewrite (opcode) |
| 1 | 1 | 1 | 13µs | 94µs | Mojo::BEGIN@4 |
| 1 | 1 | 1 | 12µs | 25µs | Mojo::__ANON__[:11] |
| 1 | 1 | 1 | 11µs | 12µs | Mojo::BEGIN@7 |
| 1 | 1 | 1 | 10µs | 61µs | Mojo::__ANON__[:12] |
| 1 | 1 | 1 | 10µs | 12µs | Mojo::BEGIN@8 |
| 1 | 1 | 1 | 9µs | 10µs | Mojo::BEGIN@9 |
| 1 | 1 | 1 | 8µs | 14µs | Mojo::__ANON__[:13] |
| 0 | 0 | 0 | 0s | 0s | Mojo::__ANON__[:15] |
| 0 | 0 | 0 | 0s | 0s | Mojo::__ANON__[:16] |
| 0 | 0 | 0 | 0s | 0s | Mojo::__ANON__[:18] |
| 0 | 0 | 0 | 0s | 0s | Mojo::__ANON__[:19] |
| 0 | 0 | 0 | 0s | 0s | Mojo::handler |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Mojo; | ||||
| 2 | 3 | 38µs | 2 | 76µs | # spent 76µs (25+51) within Mojo::BEGIN@2 which was called:
# once (25µs+51µs) by Mojo::Base::import at line 2 # spent 76µs making 1 call to Mojo::BEGIN@2
# spent 51µs making 1 call to Mojo::Base::import, recursion: max depth 2, sum of overlapping time 51µs |
| 3 | |||||
| 4 | 3 | 34µs | 2 | 175µs | # spent 94µs (13+81) within Mojo::BEGIN@4 which was called:
# once (13µs+81µs) by Mojo::Base::import at line 4 # spent 94µs making 1 call to Mojo::BEGIN@4
# spent 81µs making 1 call to Exporter::import |
| 5 | 3 | 224µs | 2 | 345ms | # spent 345ms (4.49+341) within Mojo::BEGIN@5 which was called:
# once (4.49ms+341ms) by Mojo::Base::import at line 5 # spent 345ms making 1 call to Mojo::BEGIN@5
# spent 3µs making 1 call to Mojo::Base::import, recursion: max depth 2, sum of overlapping time 3µs |
| 6 | 3 | 193µs | 2 | 3.06ms | # spent 3.06ms (923µs+2.14) within Mojo::BEGIN@6 which was called:
# once (923µs+2.14ms) by Mojo::Base::import at line 6 # spent 3.06ms making 1 call to Mojo::BEGIN@6
# spent 3µs making 1 call to Mojo::Base::import, recursion: max depth 2, sum of overlapping time 3µs |
| 7 | 3 | 22µs | 2 | 12µs | # spent 12µs (11+2) within Mojo::BEGIN@7 which was called:
# once (11µs+2µs) by Mojo::Base::import at line 7 # spent 12µs making 1 call to Mojo::BEGIN@7
# spent 2µs making 1 call to Mojo::Base::import, recursion: max depth 2, sum of overlapping time 2µs |
| 8 | 3 | 20µs | 2 | 12µs | # spent 12µs (10+1) within Mojo::BEGIN@8 which was called:
# once (10µs+1µs) by Mojo::Base::import at line 8 # spent 12µs making 1 call to Mojo::BEGIN@8
# spent 2µs making 1 call to Mojo::Base::import, recursion: max depth 2, sum of overlapping time 2µs |
| 9 | 3 | 230µs | 2 | 10µs | # spent 10µs (9+1) within Mojo::BEGIN@9 which was called:
# once (9µs+1µs) by Mojo::Base::import at line 9 # spent 10µs making 1 call to Mojo::BEGIN@9
# spent 1µs making 1 call to Mojo::Base::import, recursion: max depth 2, sum of overlapping time 1µs |
| 10 | |||||
| 11 | 2 | 13µs | 2 | 119µs | # spent 25µs (12+14) within Mojo::__ANON__[/Users/marcus/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Mojo.pm:11] which was called:
# once (12µs+14µs) by Mojo::Base::__ANON__[(eval 177)[/Users/marcus/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Mojo/Base.pm:123]:8] at line 4 of (eval 177)[Mojo/Base.pm:123] # spent 105µs making 1 call to Mojo::Base::__ANON__[Mojo/Base.pm:38]
# spent 14µs making 1 call to Mojo::Client::singleton |
| 12 | 2 | 12µs | 2 | 152µs | # spent 61µs (10+51) within Mojo::__ANON__[/Users/marcus/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Mojo.pm:12] which was called:
# once (10µs+51µs) by Mojo::Base::__ANON__[(eval 178)[/Users/marcus/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Mojo/Base.pm:123]:8] at line 4 of (eval 178)[Mojo/Base.pm:123] # spent 101µs making 1 call to Mojo::Base::__ANON__[Mojo/Base.pm:38]
# spent 51µs making 1 call to Mojo::Base::new |
| 13 | 2 | 22µs | 2 | 104µs | # spent 14µs (8+5) within Mojo::__ANON__[/Users/marcus/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Mojo.pm:13] which was called:
# once (8µs+5µs) by Mojo::Base::__ANON__[(eval 179)[/Users/marcus/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/Mojo/Base.pm:123]:8] at line 4 of (eval 171)[Mojo/Base.pm:123] # spent 99µs making 1 call to Mojo::Base::__ANON__[Mojo/Base.pm:38]
# spent 5µs making 1 call to Mojo::Base::new |
| 14 | has on_build_tx => sub { | ||||
| 15 | sub { Mojo::Transaction::HTTP->new } | ||||
| 16 | 1 | 3µs | 1 | 102µs | }; # spent 102µs making 1 call to Mojo::Base::__ANON__[Mojo/Base.pm:38] |
| 17 | has on_websocket => sub { | ||||
| 18 | sub { Mojo::Transaction::WebSocket->new(handshake => pop) } | ||||
| 19 | 1 | 3µs | 1 | 98µs | }; # spent 98µs making 1 call to Mojo::Base::__ANON__[Mojo/Base.pm:38] |
| 20 | |||||
| 21 | # "Oh, so they have internet on computers now!" | ||||
| 22 | # spent 346µs (53+292) within Mojo::new which was called:
# once (53µs+292µs) by Mojolicious::new at line 74 of Mojolicious.pm | ||||
| 23 | 1 | 11µs | 1 | 9µs | my $self = shift->SUPER::new(@_); # spent 9µs making 1 call to Mojo::Base::new |
| 24 | |||||
| 25 | # Home | ||||
| 26 | 1 | 8µs | 2 | 140µs | $self->home->detect(ref $self); # spent 71µs making 1 call to Mojo::Base::__ANON__[(eval 178)[Mojo/Base.pm:123]:8]
# spent 70µs making 1 call to Mojo::Home::detect |
| 27 | |||||
| 28 | # Client logger | ||||
| 29 | 1 | 13µs | 3 | 72µs | $self->client->log($self->log); # spent 37µs making 2 calls to Mojo::Base::__ANON__[(eval 171)[Mojo/Base.pm:123]:8], avg 18µs/call
# spent 35µs making 1 call to Mojo::Base::__ANON__[(eval 177)[Mojo/Base.pm:123]:8] |
| 30 | |||||
| 31 | # Log directory | ||||
| 32 | 1 | 26µs | 3 | 71µs | $self->log->path($self->home->rel_file('log/mojo.log')) # spent 52µs making 1 call to Mojo::Home::rel_file
# spent 16µs making 1 call to Mojo::CORE:ftewrite
# spent 2µs making 1 call to Mojo::Base::__ANON__[(eval 178)[Mojo/Base.pm:123]:8] |
| 33 | if -w $self->home->rel_file('log'); | ||||
| 34 | |||||
| 35 | 1 | 3µs | return $self; | ||
| 36 | } | ||||
| 37 | |||||
| 38 | sub handler { croak 'Method "handler" not implemented in subclass' } | ||||
| 39 | |||||
| 40 | 1 | 9µs | 1; | ||
| 41 | __END__ | ||||
# spent 16µs within Mojo::CORE:ftewrite which was called:
# once (16µs+0s) by Mojo::new at line 32 |