← Index
NYTProf Performance Profile   « line view »
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:47 2015

Filename/usr/share/perl5/Date/Calc.pm
StatementsExecuted 19 statements in 910µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1111.97ms5.46msDate::Calc::::BEGIN@18Date::Calc::BEGIN@18
11110µs21µsDate::Calc::::BEGIN@14Date::Calc::BEGIN@14
1118µs129µsDate::Calc::::BEGIN@15Date::Calc::BEGIN@15
0000s0sDate::Calc::::VersionDate::Calc::Version
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
2###############################################################################
3## ##
4## Copyright (c) 1995 - 2009 by Steffen Beyer. ##
5## All rights reserved. ##
6## ##
7## This package is free software; you can redistribute it ##
8## and/or modify it under the same terms as Perl itself. ##
9## ##
10###############################################################################
11
12package Date::Calc;
13
14227µs232µs
# spent 21µs (10+11) within Date::Calc::BEGIN@14 which was called: # once (10µs+11µs) by C4::Dates::BEGIN@29 at line 14
use strict;
# spent 21µs making 1 call to Date::Calc::BEGIN@14 # spent 11µs making 1 call to strict::import
152170µs2251µs
# spent 129µs (8+122) within Date::Calc::BEGIN@15 which was called: # once (8µs+122µs) by C4::Dates::BEGIN@29 at line 15
use vars qw($XS_OK $XS_DISABLE @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION);
# spent 129µs making 1 call to Date::Calc::BEGIN@15 # spent 122µs making 1 call to vars::import
16
17BEGIN # Re-export imports from Date::Calc::XS or Date::Calc::PP:
18
# spent 5.46ms (1.97+3.49) within Date::Calc::BEGIN@18 which was called: # once (1.97ms+3.49ms) by C4::Dates::BEGIN@29 at line 43
{
191600ns require Exporter;
2016µs @ISA = qw(Exporter);
211200ns $XS_OK = 0;
221300ns unless ($XS_DISABLE and $XS_DISABLE) # prevent warning "used only once"
23 {
24 eval
251300ns {
261636µs require Date::Calc::XS;
271700ns @EXPORT = (@Date::Calc::XS::EXPORT);
2813µs @EXPORT_OK = (@Date::Calc::XS::EXPORT_OK);
2914µs %EXPORT_TAGS = (all => [@EXPORT_OK]);
3014µs1240µs Date::Calc::XS->import(@EXPORT,@EXPORT_OK);
# spent 240µs making 1 call to Exporter::import
31 };
321300ns if ($@) { die $@ unless ($@ =~ /^Can't locate .*? at /); }
331300ns else { $XS_OK = 1; }
34 }
3512µs unless ($XS_OK)
36 {
37 require Date::Calc::PP;
38 @EXPORT = (@Date::Calc::PP::EXPORT);
39 @EXPORT_OK = (@Date::Calc::PP::EXPORT_OK);
40 %EXPORT_TAGS = (all => [@EXPORT_OK]);
41 Date::Calc::PP->import(@EXPORT,@EXPORT_OK);
42 }
43152µs15.46ms}
# spent 5.46ms making 1 call to Date::Calc::BEGIN@18
44
45##################################################
46## ##
47## "Version()" is available but not exported ##
48## in order to avoid possible name clashes. ##
49## Call with "Date::Calc::Version()" instead! ##
50## ##
51##################################################
52
531300ns$VERSION = '6.3';
54
55sub Version { return $VERSION; }
56
5712µs1;
58
59__END__