Filename | /usr/share/perl5/YAML/Tag.pm |
Statements | Executed 7 statements in 165µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 10µs | 22µs | BEGIN@1 | YAML::Node::
1 | 1 | 1 | 10µs | 34µs | BEGIN@4 | YAML::Tag::
1 | 1 | 1 | 7µs | 11µs | BEGIN@1.9 | YAML::Node::
0 | 0 | 0 | 0s | 0s | __ANON__[:4] | YAML::Tag::
0 | 0 | 0 | 0s | 0s | canonical | YAML::Tag::
0 | 0 | 0 | 0s | 0s | new | YAML::Tag::
0 | 0 | 0 | 0s | 0s | short | YAML::Tag::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 4 | 78µs | 4 | 48µs | use strict; use warnings; # spent 22µs making 1 call to YAML::Node::BEGIN@1
# spent 11µs making 1 call to YAML::Node::BEGIN@1.9
# spent 11µs making 1 call to strict::import
# spent 4µs making 1 call to warnings::import |
2 | package YAML::Tag; | ||||
3 | |||||
4 | 2 | 85µs | 2 | 59µs | # spent 34µs (10+25) within YAML::Tag::BEGIN@4 which was called:
# once (10µs+25µs) by YAML::Node::BEGIN@4 at line 4 # spent 34µs making 1 call to YAML::Tag::BEGIN@4
# spent 25µs making 1 call to overload::import |
5 | |||||
6 | sub new { | ||||
7 | my ($class, $self) = @_; | ||||
8 | bless \$self, $class | ||||
9 | } | ||||
10 | |||||
11 | sub short { | ||||
12 | ${$_[0]} | ||||
13 | } | ||||
14 | |||||
15 | sub canonical { | ||||
16 | ${$_[0]} | ||||
17 | } | ||||
18 | |||||
19 | 1 | 2µs | 1; |