← 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:11 2016

Filename/home/mickey/git_tree/PONAPI/Server/lib/PONAPI/Constants.pm
StatementsExecuted 16 statements in 188µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11119µs71µsPONAPI::Constants::::BEGIN@8PONAPI::Constants::BEGIN@8
11114µs30µsPONAPI::Constants::::BEGIN@4PONAPI::Constants::BEGIN@4
1118µs13µsPONAPI::Constants::::BEGIN@5PONAPI::Constants::BEGIN@5
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# ABSTRACT: Constants used by PONAPI::DAO and PONAPI repositories
2package PONAPI::Constants;
3
4221µs245µs
# spent 30µs (14+15) within PONAPI::Constants::BEGIN@4 which was called: # once (14µs+15µs) by PONAPI::DAO::Request::Role::UpdateLike::BEGIN@6 at line 4
use strict;
# spent 30µs making 1 call to PONAPI::Constants::BEGIN@4 # spent 15µs making 1 call to strict::import
5276µs219µs
# spent 13µs (8+6) within PONAPI::Constants::BEGIN@5 which was called: # once (8µs+6µs) by PONAPI::DAO::Request::Role::UpdateLike::BEGIN@6 at line 5
use warnings;
# spent 13µs making 1 call to PONAPI::Constants::BEGIN@5 # spent 6µs making 1 call to warnings::import
6
71100nsmy $constants;
8
# spent 71µs (19+53) within PONAPI::Constants::BEGIN@8 which was called: # once (19µs+53µs) by PONAPI::DAO::Request::Role::UpdateLike::BEGIN@6 at line 22
BEGIN {
912µs $constants = {
10 PONAPI_UPDATED_EXTENDED => 100,
11 PONAPI_UPDATED_NORMAL => 101,
12 PONAPI_UPDATED_NOTHING => 102,
13 };
14
1522µs153µs require constant; constant->import($constants);
# spent 53µs making 1 call to constant::import
1629µs require Exporter; our @ISA = qw(Exporter);
1714µs our @EXPORT = ( keys %$constants,
18 qw/
19 %PONAPI_UPDATE_RETURN_VALUES
20 /,
21 );
22159µs171µs}
# spent 71µs making 1 call to PONAPI::Constants::BEGIN@8
23
241100nsour (%PONAPI_UPDATE_RETURN_VALUES);
25
2619µs$PONAPI_UPDATE_RETURN_VALUES{+PONAPI_UPDATED_EXTENDED} = 1;
271300ns$PONAPI_UPDATE_RETURN_VALUES{+PONAPI_UPDATED_NORMAL} = 1;
281100ns$PONAPI_UPDATE_RETURN_VALUES{+PONAPI_UPDATED_NOTHING} = 1;
29
3014µs1;
31
32__END__