← 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/CSS/SCSS.pm
StatementsExecuted 9 statements in 1.49ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11185µs181µsRTP::Webmerge::Process::CSS::SCSS::::BEGIN@8RTP::Webmerge::Process::CSS::SCSS::BEGIN@8
11165µs587µsRTP::Webmerge::Process::CSS::SCSS::::BEGIN@69RTP::Webmerge::Process::CSS::SCSS::BEGIN@69
11154µs84µsRTP::Webmerge::Process::CSS::SCSS::::BEGIN@9RTP::Webmerge::Process::CSS::SCSS::BEGIN@9
11123µs23µsRTP::Webmerge::Process::CSS::SCSS::::BEGIN@14RTP::Webmerge::Process::CSS::SCSS::BEGIN@14
0000s0sRTP::Webmerge::Process::CSS::SCSS::::scssRTP::Webmerge::Process::CSS::SCSS::scss
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::CSS::SCSS;
6###################################################################################################
7
82155µs2276µs
# spent 181µs (85+96) within RTP::Webmerge::Process::CSS::SCSS::BEGIN@8 which was called: # once (85µs+96µs) by RTP::Webmerge::Process::CSS::BEGIN@20 at line 8
use strict;
# spent 181µs making 1 call to RTP::Webmerge::Process::CSS::SCSS::BEGIN@8 # spent 96µs making 1 call to strict::import
92190µs2114µs
# spent 84µs (54+30) within RTP::Webmerge::Process::CSS::SCSS::BEGIN@9 which was called: # once (54µs+30µs) by RTP::Webmerge::Process::CSS::BEGIN@20 at line 9
use warnings;
# spent 84µs making 1 call to RTP::Webmerge::Process::CSS::SCSS::BEGIN@9 # spent 30µs making 1 call to warnings::import
10
11###################################################################################################
12
13# define our version string
141894µs123µs
# spent 23µs within RTP::Webmerge::Process::CSS::SCSS::BEGIN@14 which was called: # once (23µs+0s) by RTP::Webmerge::Process::CSS::BEGIN@20 at line 14
BEGIN { $RTP::Webmerge::Process::CSS::SCSS::VERSION = "0.7.0" }
# spent 23µs making 1 call to RTP::Webmerge::Process::CSS::SCSS::BEGIN@14
15
16###################################################################################################
17
18# process spritesets with additional modules
19# try to keep them as standalone as possible
20sub scss
21{
22
23 # load the cscc compiler
24 require CSS::Sass;
25
26 # get input variables
27 my ($data, $config, $output) = @_;
28
29 # init scss compiler object
30 my $scss = CSS::Sass->new(
31
32 # TODO: add current path from config step
33 # include_paths => ['some/include/path'],
34
35 # always output in nice formated way
36 # will compress later by our own compilers
37 output_style => CSS::Sass::SASS_STYLE_NESTED(),
38
39 # output debug comments
40 source_comments => $config->{'debug'},
41
42 # dont die on errors
43 # handle them myself
44 dont_die => 1
45
46 );
47 # init scss object
48
49 # compile the passed scss data
50 ${$data} = $scss->compile(${$data});
51
52 # check if compile was ok
53 unless (defined ${$data})
54 {
55 # output an error message (it may not tell much)
56 die "Fatal error when compiling scss:\n",
57 " in ", $output->{'path'}, "\n", $scss->last_error;
58 }
59
60 # return success
61 return 1;
62
63}
64# EO sub scss
65
66###################################################################################################
67
68# import registered processors
692229µs21.11ms
# spent 587µs (65+522) within RTP::Webmerge::Process::CSS::SCSS::BEGIN@69 which was called: # once (65µs+522µs) by RTP::Webmerge::Process::CSS::BEGIN@20 at line 69
use RTP::Webmerge qw(%processors);
# spent 587µs making 1 call to RTP::Webmerge::Process::CSS::SCSS::BEGIN@69 # spent 522µs making 1 call to Exporter::import
70
71# register the processor function
7217µs$processors{'scss'} = \& scss;
73
74###################################################################################################
75###################################################################################################
76114µs1;