Filename | /usr/lib/perl5/Package/Stash/XS.pm |
Statements | Executed 13 statements in 375µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1100 | 4 | 1 | 3.15ms | 3.70ms | get_symbol (xsub) | Package::Stash::XS::
1670 | 9 | 2 | 1.04ms | 1.08ms | namespace (xsub) | Package::Stash::XS::
95 | 2 | 2 | 895µs | 991µs | add_symbol (xsub) | Package::Stash::XS::
275 | 3 | 2 | 815µs | 1.10ms | has_symbol (xsub) | Package::Stash::XS::
180 | 1 | 1 | 561µs | 635µs | remove_glob (xsub) | Package::Stash::XS::
82 | 2 | 2 | 465µs | 465µs | new (xsub) | Package::Stash::XS::
20 | 1 | 1 | 124µs | 237µs | list_all_symbols (xsub) | Package::Stash::XS::
157 | 6 | 2 | 81µs | 81µs | name (xsub) | Package::Stash::XS::
1 | 1 | 1 | 12µs | 17µs | BEGIN@9 | Package::Stash::XS::
1 | 1 | 1 | 11µs | 11µs | BEGIN@10 | Package::Stash::XS::
1 | 1 | 1 | 9µs | 9µs | BEGIN@2 | Package::Stash::XS::
1 | 1 | 1 | 7µs | 21µs | BEGIN@8 | Package::Stash::XS::
1 | 1 | 1 | 6µs | 6µs | BEGIN@13 | Package::Stash::XS::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Package::Stash::XS; | ||||
2 | # spent 9µs within Package::Stash::XS::BEGIN@2 which was called:
# once (9µs+0s) by Module::Runtime::require_module at line 4 | ||||
3 | 1 | 8µs | $Package::Stash::XS::AUTHORITY = 'cpan:DOY'; | ||
4 | 1 | 36µs | 1 | 9µs | } # spent 9µs making 1 call to Package::Stash::XS::BEGIN@2 |
5 | { | ||||
6 | 2 | 1µs | $Package::Stash::XS::VERSION = '0.28'; | ||
7 | } | ||||
8 | 2 | 27µs | 2 | 34µs | # spent 21µs (7+13) within Package::Stash::XS::BEGIN@8 which was called:
# once (7µs+13µs) by Module::Runtime::require_module at line 8 # spent 21µs making 1 call to Package::Stash::XS::BEGIN@8
# spent 13µs making 1 call to strict::import |
9 | 2 | 27µs | 2 | 21µs | # spent 17µs (12+5) within Package::Stash::XS::BEGIN@9 which was called:
# once (12µs+5µs) by Module::Runtime::require_module at line 9 # spent 17µs making 1 call to Package::Stash::XS::BEGIN@9
# spent 5µs making 1 call to warnings::import |
10 | 2 | 50µs | 1 | 11µs | # spent 11µs within Package::Stash::XS::BEGIN@10 which was called:
# once (11µs+0s) by Module::Runtime::require_module at line 10 # spent 11µs making 1 call to Package::Stash::XS::BEGIN@10 |
11 | # ABSTRACT: faster and more correct implementation of the Package::Stash API | ||||
12 | |||||
13 | 2 | 59µs | 1 | 6µs | # spent 6µs within Package::Stash::XS::BEGIN@13 which was called:
# once (6µs+0s) by Module::Runtime::require_module at line 13 # spent 6µs making 1 call to Package::Stash::XS::BEGIN@13 |
14 | XSLoader::load( | ||||
15 | __PACKAGE__, | ||||
16 | # we need to be careful not to touch $VERSION at compile time, otherwise | ||||
17 | # DynaLoader will assume it's set and check against it, which will cause | ||||
18 | # fail when being run in the checkout without dzil having set the actual | ||||
19 | # $VERSION | ||||
20 | exists $Package::Stash::XS::{VERSION} | ||||
21 | 1 | 162µs | 1 | 154µs | ? ${ $Package::Stash::XS::{VERSION} } : (), # spent 154µs making 1 call to XSLoader::load |
22 | ); | ||||
23 | |||||
24 | |||||
25 | 1 | 6µs | 1; | ||
26 | |||||
27 | __END__ | ||||
# spent 991µs (895+96) within Package::Stash::XS::add_symbol which was called 95 times, avg 10µs/call:
# 75 times (794µs+87µs) by Search::Elasticsearch::Role::Client::Direct::_install_api at line 103 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct.pm, avg 12µs/call
# 20 times (100µs+9µs) by namespace::clean::get_class_store at line 208 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 5µs/call | |||||
# spent 3.70ms (3.15+552µs) within Package::Stash::XS::get_symbol which was called 1100 times, avg 3µs/call:
# 720 times (1.99ms+293µs) by namespace::clean::__ANON__[/opt/flows/lib/lib/perl5/namespace/clean.pm:121] at line 105 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 3µs/call
# 180 times (580µs+173µs) by namespace::clean::__ANON__[/opt/flows/lib/lib/perl5/namespace/clean.pm:121] at line 69 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 4µs/call
# 180 times (518µs+78µs) by namespace::clean::get_functions at line 218 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 3µs/call
# 20 times (65µs+8µs) by namespace::clean::get_class_store at line 210 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 4µs/call | |||||
# spent 1.10ms (815µs+287µs) within Package::Stash::XS::has_symbol which was called 275 times, avg 4µs/call:
# 180 times (510µs+159µs) by namespace::clean::import at line 170 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 4µs/call
# 75 times (240µs+49µs) by Search::Elasticsearch::Role::Client::Direct::_install_api at line 96 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct.pm, avg 4µs/call
# 20 times (66µs+79µs) by namespace::clean::get_class_store at line 208 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 7µs/call | |||||
# spent 237µs (124+113) within Package::Stash::XS::list_all_symbols which was called 20 times, avg 12µs/call:
# 20 times (124µs+113µs) by namespace::clean::get_functions at line 218 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 12µs/call | |||||
# spent 81µs within Package::Stash::XS::name which was called 157 times, avg 517ns/call:
# 75 times (38µs+0s) by Package::Stash::XS::add_symbol at line 103 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct.pm, avg 511ns/call
# 20 times (12µs+0s) by Package::Stash::XS::namespace at line 218 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 610ns/call
# 20 times (11µs+0s) by Package::Stash::XS::namespace at line 69 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 555ns/call
# 20 times (10µs+0s) by Package::Stash::XS::namespace at line 170 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 475ns/call
# 20 times (9µs+0s) by Package::Stash::XS::namespace at line 208 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 435ns/call
# 2 times (1µs+0s) by Package::Stash::XS::namespace at line 96 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct.pm, avg 650ns/call | |||||
# spent 1.08ms (1.04+43µs) within Package::Stash::XS::namespace which was called 1670 times, avg 649ns/call:
# 720 times (293µs+0s) by Package::Stash::XS::get_symbol at line 105 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 407ns/call
# 200 times (178µs+12µs) by Package::Stash::XS::get_symbol or Package::Stash::XS::list_all_symbols at line 218 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 952ns/call
# 180 times (162µs+11µs) by Package::Stash::XS::get_symbol at line 69 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 962ns/call
# 180 times (150µs+9µs) by Package::Stash::XS::has_symbol at line 170 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 883ns/call
# 180 times (74µs+0s) by Package::Stash::XS::remove_glob at line 109 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 412ns/call
# 75 times (48µs+1µs) by Package::Stash::XS::has_symbol at line 96 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct.pm, avg 653ns/call
# 75 times (49µs+0s) by Package::Stash::XS::add_symbol at line 103 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct.pm, avg 653ns/call
# 40 times (79µs+9µs) by Package::Stash::XS::add_symbol or Package::Stash::XS::has_symbol at line 208 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 2µs/call
# 20 times (8µs+0s) by Package::Stash::XS::get_symbol at line 210 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 420ns/call | |||||
# spent 465µs within Package::Stash::XS::new which was called 82 times, avg 6µs/call:
# 80 times (452µs+0s) by namespace::clean::stash_for at line 3 of (eval 35)[/opt/flows/lib/lib/perl5/namespace/clean.pm:27], avg 6µs/call
# 2 times (14µs+0s) by Search::Elasticsearch::Role::Client::Direct::_install_api at line 90 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct.pm, avg 7µs/call | |||||
# spent 635µs (561+74) within Package::Stash::XS::remove_glob which was called 180 times, avg 4µs/call:
# 180 times (561µs+74µs) by namespace::clean::__ANON__[/opt/flows/lib/lib/perl5/namespace/clean.pm:121] at line 109 of /opt/flows/lib/lib/perl5/namespace/clean.pm, avg 4µs/call |