← 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
40374222µs757µsClass::MOP::Mixin::::metaClass::MOP::Mixin::meta
11115µs18µsClass::MOP::Mixin::::BEGIN@3Class::MOP::Mixin::BEGIN@3
1119µs51µsClass::MOP::Mixin::::BEGIN@10Class::MOP::Mixin::BEGIN@10
1119µs29µsClass::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
1package Class::MOP::Mixin;
2
3322µs222µ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
4352µs249µ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
61700nsour $VERSION = '0.98';
7114µs$VERSION = eval $VERSION;
81300nsour $AUTHORITY = 'cpan:STEVAN';
9
10372µs293µ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 {
134019µs require Class::MOP::Class;
1440247µs80535µ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
1719µs1;
18
19__END__
20
21=pod
22
23=head1 NAME
24
25Class::MOP::Mixin - Base class for mixin classes
26
27=head1 DESCRIPTION
28
29This class provides a single method shared by all mixins
30
31=head1 METHODS
32
33This class provides a few methods which are useful in all metaclasses.
34
35=over 4
36
37=item B<< Class::MOP::Mixin->meta >>
38
39This returns a L<Class::MOP::Class> object for the mixin class.
40
41=back
42
43=head1 AUTHORS
44
45Dave Rolsky E<lt>autarch@urth.orgE<gt>
46
47=head1 COPYRIGHT AND LICENSE
48
49Copyright 2006-2010 by Infinity Interactive, Inc.
50
51L<http://www.iinteractive.com>
52
53This library is free software; you can redistribute it and/or modify
54it under the same terms as Perl itself.
55
56=cut