Profile of /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level/Class/MOP/Mixin.pm

← Index
NYTProf Performance Profile «block view•line view•sub view»
For 05.Domain_and_Item.t
Run on Tue May 4 17:21:41 2010
Reported on Tue May 4 17:23:16 2010

File | /usr/local/lib/perl5/site_perl/5.10.1/darwin-2level/Class/MOP/Mixin.pm
Statements Executed | 93
Statement Execution Time | 436µs

Subroutines — ordered by exclusive time
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
40 | 37 | 4 | 222µs | 757µs | Class::MOP::Mixin::::metaClass::MOP::Mixin::meta
1 | 1 | 1 | 15µs | 18µs | Class::MOP::Mixin::::BEGIN@3Class::MOP::Mixin::BEGIN@3
1 | 1 | 1 | 9µs | 51µs | Class::MOP::Mixin::::BEGIN@10Class::MOP::Mixin::BEGIN@10
1 | 1 | 1 | 9µs | 29µs | Class::MOP::Mixin::::BEGIN@4Class::MOP::Mixin::BEGIN@4

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package Class::MOP::Mixin;
2 |  |  |  |  |
3 | 3 | 22µs | 2 | 22µs | # spent 18µs (15+4) within Class::MOP::Mixin::BEGIN@3 which was called # once (15µs+4µs) by base::import at line 3 use strict; # spent 18µs making 1 call to Class::MOP::Mixin::BEGIN@3 # spent 4µs making 1 call to strict::import
4 | 3 | 52µs | 2 | 49µs | # spent 29µs (9+20) within Class::MOP::Mixin::BEGIN@4 which was called # once (9µs+20µs) by base::import at line 4 use warnings; # spent 29µs making 1 call to Class::MOP::Mixin::BEGIN@4 # spent 20µs making 1 call to warnings::import
5 |  |  |  |  |
6 | 1 | 700ns |  |  | our $VERSION = '0.98';
7 | 1 | 14µs |  |  | $VERSION = eval $VERSION;
8 | 1 | 300ns |  |  | our $AUTHORITY = 'cpan:STEVAN';
9 |  |  |  |  |
10 | 3 | 72µs | 2 | 93µs | # spent 51µs (9+42) within Class::MOP::Mixin::BEGIN@10 which was called # once (9µs+42µs) by base::import at line 10 use Scalar::Util 'blessed'; # spent 51µs making 1 call to Class::MOP::Mixin::BEGIN@10 # spent 42µs making 1 call to Exporter::import
11 |  |  |  |  |
12 |  |  |  |  | # spent 757µs (222+535) within Class::MOP::Mixin::meta which was called 40 times, avg 19µs/call: # 4 times (20µs+22µs) by Moose::Exporter::BEGIN@11 at line 701 of Class/MOP.pm, avg 10µs/call # once (12µs+114µs) by Moose::Exporter::BEGIN@11 at line 177 of Class/MOP.pm # once (10µs+75µs) by base::import at line 11 of Moose/Meta/Mixin/AttributeCore.pm # once (9µs+47µs) by Moose::Meta::Role::BEGIN@17 at line 15 of Moose/Meta/Role/Attribute.pm # once (5µs+49µs) by Moose::Exporter::BEGIN@11 at line 219 of Class/MOP.pm # once (5µs+41µs) by Moose::Exporter::BEGIN@11 at line 384 of Class/MOP.pm # once (8µs+6µs) by Foo::BEGIN@3 at line 276 of Moose.pm # once (6µs+7µs) by Moose::Exporter::BEGIN@11 at line 180 of Class/MOP.pm # once (7µs+5µs) by Foo::BEGIN@3 at line 244 of Moose.pm # once (5µs+7µs) by base::import at line 42 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 425 of Class/MOP.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 453 of Class/MOP.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 405 of Class/MOP.pm # once (5µs+6µs) by base::import at line 21 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by base::import at line 13 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 192 of Class/MOP.pm # once (5µs+6µs) by base::import at line 12 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by base::import at line 17 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by base::import at line 29 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by base::import at line 35 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by base::import at line 23 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by base::import at line 15 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by base::import at line 19 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by Moose::Meta::Role::BEGIN@17 at line 27 of Moose/Meta/Role/Attribute.pm # once (5µs+6µs) by base::import at line 20 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 439 of Class/MOP.pm # once (5µs+6µs) by base::import at line 16 of Moose/Meta/Mixin/AttributeCore.pm # once (5µs+6µs) by Moose::Meta::Role::BEGIN@17 at line 21 of Moose/Meta/Role/Attribute.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 398 of Class/MOP.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 412 of Class/MOP.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 446 of Class/MOP.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 467 of Class/MOP.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 432 of Class/MOP.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 460 of Class/MOP.pm # once (5µs+6µs) by Moose::Meta::Role::BEGIN@17 at line 33 of Moose/Meta/Role/Attribute.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 222 of Class/MOP.pm # once (5µs+6µs) by Moose::Exporter::BEGIN@11 at line 419 of Class/MOP.pm sub meta {
13 | 40 | 19µs |  |  | require Class::MOP::Class;
14 | 40 | 247µs | 80 | 535µs | Class::MOP::Class->initialize( blessed( $_[0] ) || $_[0] ); # spent 514µs making 40 calls to Class::MOP::Class::initialize, avg 13µs/call # spent 21µs making 40 calls to Scalar::Util::blessed, avg 525ns/call
15 |  |  |  |  | }
16 |  |  |  |  |
17 | 1 | 9µs |  |  | 1;
18 |  |  |  |  |
19 |  |  |  |  | __END__
20 |  |  |  |  |
21 |  |  |  |  | =pod
22 |  |  |  |  |
23 |  |  |  |  | =head1 NAME
24 |  |  |  |  |
25 |  |  |  |  | Class::MOP::Mixin - Base class for mixin classes
26 |  |  |  |  |
27 |  |  |  |  | =head1 DESCRIPTION
28 |  |  |  |  |
29 |  |  |  |  | This class provides a single method shared by all mixins
30 |  |  |  |  |
31 |  |  |  |  | =head1 METHODS
32 |  |  |  |  |
33 |  |  |  |  | This class provides a few methods which are useful in all metaclasses.
34 |  |  |  |  |
35 |  |  |  |  | =over 4
36 |  |  |  |  |
37 |  |  |  |  | =item B<< Class::MOP::Mixin->meta >>
38 |  |  |  |  |
39 |  |  |  |  | This returns a L<Class::MOP::Class> object for the mixin class.
40 |  |  |  |  |
41 |  |  |  |  | =back
42 |  |  |  |  |
43 |  |  |  |  | =head1 AUTHORS
44 |  |  |  |  |
45 |  |  |  |  | Dave Rolsky E<lt>autarch@urth.orgE<gt>
46 |  |  |  |  |
47 |  |  |  |  | =head1 COPYRIGHT AND LICENSE
48 |  |  |  |  |
49 |  |  |  |  | Copyright 2006-2010 by Infinity Interactive, Inc.
50 |  |  |  |  |
51 |  |  |  |  | L<http://www.iinteractive.com>
52 |  |  |  |  |
53 |  |  |  |  | This library is free software; you can redistribute it and/or modify
54 |  |  |  |  | it under the same terms as Perl itself.
55 |  |  |  |  |
56 |  |  |  |  | =cut