← Index
NYTProf Performance Profile   « line view »
For webmerge/scripts/webmerge.pl
  Run on Mon Oct 7 02:42:42 2013
Reported on Mon Oct 7 03:03:22 2013

Filename/home/ocbnet/domain/ocbnet.ch/vhost/webmerge/htdocs/webmerge/scripts/modules/RTP/Webmerge/Include/CSS.pm
StatementsExecuted 25 statements in 2.01ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
211128µs224µsRTP::Webmerge::Include::CSS::::includeCSSRTP::Webmerge::Include::CSS::includeCSS
11183µs332µsRTP::Webmerge::Include::CSS::::BEGIN@8RTP::Webmerge::Include::CSS::BEGIN@8
11155µs55µsRTP::Webmerge::Include::CSS::::BEGIN@18.20RTP::Webmerge::Include::CSS::BEGIN@18.20
11155µs228µsRTP::Webmerge::Include::CSS::::BEGIN@25RTP::Webmerge::Include::CSS::BEGIN@25
11152µs82µsRTP::Webmerge::Include::CSS::::BEGIN@10RTP::Webmerge::Include::CSS::BEGIN@10
11151µs136µsRTP::Webmerge::Include::CSS::::BEGIN@9RTP::Webmerge::Include::CSS::BEGIN@9
11129µs29µsRTP::Webmerge::Include::CSS::::BEGIN@21RTP::Webmerge::Include::CSS::BEGIN@21
11125µs25µsRTP::Webmerge::Include::CSS::::BEGIN@18RTP::Webmerge::Include::CSS::BEGIN@18
11123µs23µsRTP::Webmerge::Include::CSS::::BEGIN@15RTP::Webmerge::Include::CSS::BEGIN@15
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1###################################################################################################
2# Copyright 2013 by Marcel Greter
3# This file is part of Webmerge (GPL3)
4###################################################################################################
5package RTP::Webmerge::Include::CSS;
6###################################################################################################
7
82153µs2580µs
# spent 332µs (83+249) within RTP::Webmerge::Include::CSS::BEGIN@8 which was called: # once (83µs+249µs) by RTP::Webmerge::Merge::CSS::BEGIN@58 at line 8
use Carp;
# spent 332µs making 1 call to RTP::Webmerge::Include::CSS::BEGIN@8 # spent 249µs making 1 call to Exporter::import
92136µs2222µs
# spent 136µs (51+85) within RTP::Webmerge::Include::CSS::BEGIN@9 which was called: # once (51µs+85µs) by RTP::Webmerge::Merge::CSS::BEGIN@58 at line 9
use strict;
# spent 136µs making 1 call to RTP::Webmerge::Include::CSS::BEGIN@9 # spent 85µs making 1 call to strict::import
102210µs2113µs
# spent 82µs (52+30) within RTP::Webmerge::Include::CSS::BEGIN@10 which was called: # once (52µs+30µs) by RTP::Webmerge::Merge::CSS::BEGIN@58 at line 10
use warnings;
# spent 82µs making 1 call to RTP::Webmerge::Include::CSS::BEGIN@10 # spent 30µs making 1 call to warnings::import
11
12###################################################################################################
13
14# define our version string
151193µs123µs
# spent 23µs within RTP::Webmerge::Include::CSS::BEGIN@15 which was called: # once (23µs+0s) by RTP::Webmerge::Merge::CSS::BEGIN@58 at line 15
BEGIN { $RTP::Webmerge::Include::CSS::VERSION = "0.7.0" }
# spent 23µs making 1 call to RTP::Webmerge::Include::CSS::BEGIN@15
16
17# load exporter and inherit from it
183416µs281µs
# spent 25µs within RTP::Webmerge::Include::CSS::BEGIN@18 which was called: # once (25µs+0s) by RTP::Webmerge::Merge::CSS::BEGIN@58 at line 18 # spent 55µs within RTP::Webmerge::Include::CSS::BEGIN@18.20 which was called: # once (55µs+0s) by RTP::Webmerge::Merge::CSS::BEGIN@58 at line 18
BEGIN { use Exporter qw(); our @ISA = qw(Exporter) }
# spent 55µs making 1 call to RTP::Webmerge::Include::CSS::BEGIN@18.20 # spent 25µs making 1 call to RTP::Webmerge::Include::CSS::BEGIN@18
19
20# define our functions to be exported
211150µs129µs
# spent 29µs within RTP::Webmerge::Include::CSS::BEGIN@21 which was called: # once (29µs+0s) by RTP::Webmerge::Merge::CSS::BEGIN@58 at line 21
BEGIN { our @EXPORT = qw(includeCSS $css_dev_header); }
# spent 29µs making 1 call to RTP::Webmerge::Include::CSS::BEGIN@21
22
23###################################################################################################
24
252590µs2400µs
# spent 228µs (55+173) within RTP::Webmerge::Include::CSS::BEGIN@25 which was called: # once (55µs+173µs) by RTP::Webmerge::Merge::CSS::BEGIN@58 at line 25
use RTP::Webmerge::Fingerprint qw(fingerprint);
# spent 228µs making 1 call to RTP::Webmerge::Include::CSS::BEGIN@25 # spent 172µs making 1 call to Exporter::import
26
27###################################################################################################
28
29# css header include
30#**************************************************************************************************
3114µsour $css_dev_header = '';
32
33###################################################################################################
34
35# called via array map
36#**************************************************************************************************
37sub includeCSS
38
# spent 224µs (128+95) within RTP::Webmerge::Include::CSS::includeCSS which was called 2 times, avg 112µs/call: # 2 times (128µs+95µs) by RTP::Webmerge::Merge::CSS::__ANON__[/home/ocbnet/domain/ocbnet.ch/vhost/webmerge/htdocs/webmerge/scripts/modules/RTP/Webmerge/Merge/CSS.pm:62] at line 62 of webmerge/scripts/modules/RTP/Webmerge/Merge/CSS.pm, avg 112µs/call
{
39
40 # get passed variables
41210µs my ($config) = @_;
42
43 # magick map variable
4424µs my $data = $_;
45
46 # define the template for the script includes (don't care about doctype versions, dev only)
4727µs my $css_include_tmpl = '@import url(\'%s\');' . "\n";
48
49 # get a unique path with added fingerprint (query or directory)
50260µs296µs my $path = fingerprint($config, 'dev', $data->{'local_path'}, $data->{'org'});
# spent 96µs making 2 calls to RTP::Webmerge::Fingerprint::fingerprint, avg 48µs/call
51
52 # return the script include string
53270µs return sprintf($css_include_tmpl, $path);
54
55}
56# EO sub includeCSS
57
58###################################################################################################
59###################################################################################################
60112µs1;