Filename | /Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/darwin-thread-multi-2level/Class/Load/XS.pm |
Statements | Executed 13 statements in 306µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
401 | 5 | 4 | 684µs | 684µs | is_class_loaded (xsub) | Class::Load::XS::
1 | 1 | 1 | 12µs | 34µs | BEGIN@9 | Class::Load::XS::
1 | 1 | 1 | 10µs | 21µs | BEGIN@6 | Class::Load::XS::
1 | 1 | 1 | 6µs | 9µs | BEGIN@7 | Class::Load::XS::
1 | 1 | 1 | 4µs | 4µs | BEGIN@11 | Class::Load::XS::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Class::Load::XS; | ||||
2 | { | ||||
3 | 2 | 600ns | $Class::Load::XS::VERSION = '0.06'; | ||
4 | } | ||||
5 | |||||
6 | 2 | 21µs | 2 | 32µs | # spent 21µs (10+11) within Class::Load::XS::BEGIN@6 which was called:
# once (10µs+11µs) by Module::Runtime::require_module at line 6 # spent 21µs making 1 call to Class::Load::XS::BEGIN@6
# spent 11µs making 1 call to strict::import |
7 | 2 | 22µs | 2 | 12µs | # spent 9µs (6+3) within Class::Load::XS::BEGIN@7 which was called:
# once (6µs+3µs) by Module::Runtime::require_module at line 7 # spent 9µs making 1 call to Class::Load::XS::BEGIN@7
# spent 3µs making 1 call to warnings::import |
8 | |||||
9 | 3 | 35µs | 3 | 57µs | # spent 34µs (12+22) within Class::Load::XS::BEGIN@9 which was called:
# once (12µs+22µs) by Module::Runtime::require_module at line 9 # spent 34µs making 1 call to Class::Load::XS::BEGIN@9
# spent 15µs making 1 call to Exporter::import
# spent 7µs making 1 call to UNIVERSAL::VERSION |
10 | |||||
11 | 2 | 66µs | 1 | 4µs | # spent 4µs within Class::Load::XS::BEGIN@11 which was called:
# once (4µs+0s) by Module::Runtime::require_module at line 11 # spent 4µs making 1 call to Class::Load::XS::BEGIN@11 |
12 | XSLoader::load( | ||||
13 | __PACKAGE__, | ||||
14 | exists $Class::Load::XS::{VERSION} | ||||
15 | 1 | 157µs | 1 | 151µs | ? ${ $Class::Load::XS::{VERSION} } # spent 151µs making 1 call to XSLoader::load |
16 | : (), | ||||
17 | ); | ||||
18 | |||||
19 | 1 | 4µs | 1; | ||
20 | |||||
21 | # ABSTRACT: XS implementation of parts of Class::Load | ||||
22 | |||||
- - | |||||
25 | =pod | ||||
26 | |||||
27 | =head1 NAME | ||||
28 | |||||
29 | Class::Load::XS - XS implementation of parts of Class::Load | ||||
30 | |||||
31 | =head1 VERSION | ||||
32 | |||||
33 | version 0.06 | ||||
34 | |||||
35 | =head1 SYNOPSIS | ||||
36 | |||||
37 | use Class::Load; | ||||
38 | |||||
39 | =head1 DESCRIPTION | ||||
40 | |||||
41 | This module provides an XS implementation for portions of L<Class::Load>. See | ||||
42 | L<Class::Load> for API details. | ||||
43 | |||||
44 | =head1 AUTHOR | ||||
45 | |||||
46 | Dave Rolsky <autarch@urth.org> | ||||
47 | |||||
48 | =head1 COPYRIGHT AND LICENSE | ||||
49 | |||||
50 | This software is Copyright (c) 2012 by Dave Rolsky. | ||||
51 | |||||
52 | This is free software, licensed under: | ||||
53 | |||||
54 | The Artistic License 2.0 (GPL Compatible) | ||||
55 | |||||
56 | =cut | ||||
57 | |||||
58 | |||||
59 | __END__ | ||||
# spent 684µs within Class::Load::XS::is_class_loaded which was called 401 times, avg 2µs/call:
# 321 times (532µs+0s) by Class::Load::try_load_class at line 144 of Class/Load.pm, avg 2µs/call
# 54 times (106µs+0s) by Class::MOP::Class::_immutable_metaclass at line 1345 of Class/MOP/Class.pm, avg 2µs/call
# 19 times (29µs+0s) by Moose::Role::init_meta at line 119 of Moose/Role.pm, avg 2µs/call
# 4 times (6µs+0s) by Moose::init_meta at line 158 of Moose.pm, avg 2µs/call
# 3 times (12µs+0s) by Class::Load::load_first_existing_class at line 57 of Class/Load.pm, avg 4µs/call |