← 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:24 2013

Filename/home/ocbnet/domain/ocbnet.ch/vhost/webmerge/htdocs/webmerge/scripts/modules/RTP/Webmerge/Process/JS.pm
StatementsExecuted 15 statements in 1.81ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11185µs370µsRTP::Webmerge::Process::JS::::BEGIN@8RTP::Webmerge::Process::JS::BEGIN@8
11156µs90µsRTP::Webmerge::Process::JS::::BEGIN@10RTP::Webmerge::Process::JS::BEGIN@10
11155µs672µsRTP::Webmerge::Process::JS::::BEGIN@25RTP::Webmerge::Process::JS::BEGIN@25
11153µs53µsRTP::Webmerge::Process::JS::::BEGIN@18.29RTP::Webmerge::Process::JS::BEGIN@18.29
11153µs142µsRTP::Webmerge::Process::JS::::BEGIN@9RTP::Webmerge::Process::JS::BEGIN@9
11125µs25µsRTP::Webmerge::Process::JS::::BEGIN@21RTP::Webmerge::Process::JS::BEGIN@21
11124µs24µsRTP::Webmerge::Process::JS::::BEGIN@18RTP::Webmerge::Process::JS::BEGIN@18
11123µs23µsRTP::Webmerge::Process::JS::::BEGIN@15RTP::Webmerge::Process::JS::BEGIN@15
0000s0sRTP::Webmerge::Process::JS::::dejqueryRTP::Webmerge::Process::JS::dejquery
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::Process::JS;
6###################################################################################################
7
82165µs2656µs
# spent 370µs (85+286) within RTP::Webmerge::Process::JS::BEGIN@8 which was called: # once (85µs+286µs) by main::BEGIN@42 at line 8
use Carp;
# spent 370µs making 1 call to RTP::Webmerge::Process::JS::BEGIN@8 # spent 286µs making 1 call to Exporter::import
92174µs2231µs
# spent 142µs (53+89) within RTP::Webmerge::Process::JS::BEGIN@9 which was called: # once (53µs+89µs) by main::BEGIN@42 at line 9
use strict;
# spent 142µs making 1 call to RTP::Webmerge::Process::JS::BEGIN@9 # spent 89µs making 1 call to strict::import
102198µs2123µs
# spent 90µs (56+33) within RTP::Webmerge::Process::JS::BEGIN@10 which was called: # once (56µs+33µs) by main::BEGIN@42 at line 10
use warnings;
# spent 90µs making 1 call to RTP::Webmerge::Process::JS::BEGIN@10 # spent 33µs making 1 call to warnings::import
11
12###################################################################################################
13
14# define our version string
151170µs123µs
# spent 23µs within RTP::Webmerge::Process::JS::BEGIN@15 which was called: # once (23µs+0s) by main::BEGIN@42 at line 15
BEGIN { $RTP::Webmerge::Process::JS::VERSION = "0.70" }
# spent 23µs making 1 call to RTP::Webmerge::Process::JS::BEGIN@15
16
17# load exporter and inherit from it
183367µs277µs
# spent 53µs within RTP::Webmerge::Process::JS::BEGIN@18.29 which was called: # once (53µs+0s) by main::BEGIN@42 at line 18 # spent 24µs within RTP::Webmerge::Process::JS::BEGIN@18 which was called: # once (24µs+0s) by main::BEGIN@42 at line 18
BEGIN { use Exporter qw(); our @ISA = qw(Exporter) }
# spent 53µs making 1 call to RTP::Webmerge::Process::JS::BEGIN@18.29 # spent 24µs making 1 call to RTP::Webmerge::Process::JS::BEGIN@18
19
20# define our functions to be exported
211145µs125µs
# spent 25µs within RTP::Webmerge::Process::JS::BEGIN@21 which was called: # once (25µs+0s) by main::BEGIN@42 at line 21
BEGIN { our @EXPORT = qw(dejquery); }
# spent 25µs making 1 call to RTP::Webmerge::Process::JS::BEGIN@21
22
23###################################################################################################
24
252563µs21.29ms
# spent 672µs (55+616) within RTP::Webmerge::Process::JS::BEGIN@25 which was called: # once (55µs+616µs) by main::BEGIN@42 at line 25
use RTP::Webmerge qw(%processors);
# spent 672µs making 1 call to RTP::Webmerge::Process::JS::BEGIN@25 # spent 616µs making 1 call to Exporter::import
26
27###################################################################################################
28
29# replace jquery calls with simple dollar signs
30# this way we can have best code compatibility
31# and still use the dollar sign when possible
32sub dejquery
33{
34
35 # get input variables
36 my ($data, $config) = @_;
37
38 # replace "jquery(" and "jquery."
39 ${$data} =~ s/jQuery([\(\.])/\$$1/gm;
40
41 # return success
42 return 1;
43
44}
45# EO sub dejquery
46
47###################################################################################################
48
49# register the processor function
50112µs$processors{'dejquery'} = \& dejquery;
51
52###################################################################################################
53###################################################################################################
54116µs1;