← Index
NYTProf Performance Profile   « line view »
For script/ponapi
  Run on Wed Feb 10 15:51:26 2016
Reported on Thu Feb 11 09:43:10 2016

Filename/usr/local/lib/perl/5.18.2/Class/MOP/Mixin.pm
StatementsExecuted 128 statements in 453µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1119µs18µsClass::MOP::Mixin::::BEGIN@4Class::MOP::Mixin::BEGIN@4
1118µs11µsClass::MOP::Mixin::::BEGIN@5Class::MOP::Mixin::BEGIN@5
1116µs20µsClass::MOP::Mixin::::BEGIN@8Class::MOP::Mixin::BEGIN@8
1115µs25µsClass::MOP::Mixin::::BEGIN@7Class::MOP::Mixin::BEGIN@7
0000s0sClass::MOP::Mixin::::_throw_exceptionClass::MOP::Mixin::_throw_exception
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;
21400nsour $VERSION = '2.1604';
3
4218µs226µs
# spent 18µs (9+8) within Class::MOP::Mixin::BEGIN@4 which was called: # once (9µs+8µs) by parent::import at line 4
use strict;
# spent 18µs making 1 call to Class::MOP::Mixin::BEGIN@4 # spent 8µs making 1 call to strict::import
5218µs213µs
# spent 11µs (8+3) within Class::MOP::Mixin::BEGIN@5 which was called: # once (8µs+3µs) by parent::import at line 5
use warnings;
# spent 11µs making 1 call to Class::MOP::Mixin::BEGIN@5 # spent 3µs making 1 call to warnings::import
6
7219µs244µs
# spent 25µs (5+20) within Class::MOP::Mixin::BEGIN@7 which was called: # once (5µs+20µs) by parent::import at line 7
use Scalar::Util 'blessed';
# spent 25µs making 1 call to Class::MOP::Mixin::BEGIN@7 # spent 20µs making 1 call to Exporter::import
8285µs233µs
# spent 20µs (6+14) within Class::MOP::Mixin::BEGIN@8 which was called: # once (6µs+14µs) by parent::import at line 8
use Module::Runtime 'use_module';
# spent 20µs making 1 call to Class::MOP::Mixin::BEGIN@8 # spent 14µs making 1 call to Module::Runtime::import
9
10sub meta {
115918µs require Class::MOP::Class;
1259293µs1184.16ms Class::MOP::Class->initialize( blessed( $_[0] ) || $_[0] );
# spent 4.14ms making 59 calls to Class::MOP::Class::initialize, avg 70µs/call # spent 25µs making 59 calls to Scalar::Util::blessed, avg 419ns/call
13}
14
15sub _throw_exception {
16 my ($class, $exception_type, @args_to_exception) = @_;
17 die use_module( "Moose::Exception::$exception_type" )->new( @args_to_exception );
18}
19
2012µs1;
21
22# ABSTRACT: Base class for mixin classes
23
24__END__