← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/bin/epoll_server.pl
  Run on Wed Jan 5 05:34:33 2011
Reported on Wed Jan 5 05:36:03 2011

File /usr/lib/perl5/vendor_perl/5.10.1/Epoll/root/templates/admin/voters.tt
Statements Executed 28485
Statement Execution Time 933ms
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111389ms16.4sTemplate::Document::::__ANON__[:105]Template::Document::__ANON__[:105]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 16.4s (389ms+16.0) within Template::Document::__ANON__[/usr/lib/perl5/vendor_perl/5.10.1/Epoll/root/templates/admin/voters.tt:105] which was called # once (389ms+16.0s) by Template::Document::process at line 151 of Template/Document.pm
<!-- $Id: voters.tt 434 2010-10-07 01:47:16Z nanardon $ -->
2164µs54.84ms[% poll = c.model('Vote').poll(voteid) %]
# spent 2.44ms making 2 calls to Template::Stash::XS::get, avg 1.22ms/call # spent 2.33ms making 1 call to Epoll::DB::poll # spent 68µs making 1 call to Catalyst::model # spent 8µs making 1 call to Template::Stash::XS::set
3
418µs1121ms[% INCLUDE 'includes/admin_menu.tt' %]
# spent 121ms making 1 call to Template::Context::include
5
6[% IF poll.status() != 'AFTER' %]
712µs<div style="float: left; width: 30%;" class="box">
8246µs27.18ms<p>[% l('Add a voter') %]</p>
# spent 3.60ms making 1 call to Template::Stash::XS::get # spent 3.57ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
92125µs54.90ms<form action="[% c.uri_for(poll.uid, 'voters') %]" method="POST">
# spent 2.50ms making 2 calls to Template::Stash::XS::get, avg 1.25ms/call # spent 1.97ms making 1 call to Epoll::DB::Poll::uid # spent 425µs making 1 call to Catalyst::uri_for # spent 7µs making 1 call to URI::__ANON__[URI.pm:24]
1013µs<table>
11<tr>
121102µs27.17ms<td align="left">[% l('Name:') %]&nbsp;</td>
# spent 3.60ms making 1 call to Template::Stash::XS::get # spent 3.57ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
1313µs<td><input type="text" name="id"></td>
14</tr><tr>
15144µs28.46ms<td align="left">[% l('Email address:') %]&nbsp;</td>
# spent 4.25ms making 1 call to Template::Stash::XS::get # spent 4.21ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
1613µs<td><input type="text" name="mail"></td>
17</tr>
18</table>
19145µs27.54ms<input type="submit" value="[% l('Add') %]">
# spent 3.79ms making 1 call to Template::Stash::XS::get # spent 3.75ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
2014µs</form>
21
22<hr>
23<p>
241146µs56.57ms <a href="[% c.uri_for(poll.uid, 'voters', 'import') %]">
# spent 3.33ms making 2 calls to Template::Stash::XS::get, avg 1.67ms/call # spent 2.24ms making 1 call to Epoll::DB::Poll::uid # spent 993µs making 1 call to Catalyst::uri_for # spent 7µs making 1 call to URI::__ANON__[URI.pm:24]
25254µs27.43ms [% l('Import the list of voters...') %]
# spent 3.73ms making 1 call to Template::Stash::XS::get # spent 3.70ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
2612µs </a>
27</p>
28
29
30<hr>
31149µs29.31ms<p>[% l('Send password to voters') %]</p>
# spent 4.67ms making 1 call to Template::Stash::XS::get # spent 4.64ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
3213µs[% IF poll.info.hend %]
331128µs55.47ms<form action="[% c.uri_for(poll.uid, 'voters') %]" method="POST">
# spent 2.78ms making 2 calls to Template::Stash::XS::get, avg 1.39ms/call # spent 1.97ms making 1 call to Epoll::DB::Poll::uid # spent 718µs making 1 call to Catalyst::uri_for # spent 8µs making 1 call to URI::__ANON__[URI.pm:24]
34370µs311.4ms[% l('Email language') %]: [% INCLUDE 'includes/locale_select.tt' varname='mail_locale' %]<br>
# spent 3.95ms making 1 call to Template::Context::include # spent 3.73ms making 1 call to Template::Stash::XS::get # spent 3.70ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
35353µs27.03ms<input type="submit" name="mailpasswd" value="[% l('Send password') %]">
# spent 3.53ms making 1 call to Template::Stash::XS::get # spent 3.50ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
3614µs</form>
37[% ELSE %]
38[% l('Poll date must be set before announcing poll to voters') %]
39181µs28.38ms[% END %]
# spent 4.22ms making 1 call to Template::Stash::XS::get # spent 4.16ms making 1 call to Epoll::DB::Poll::info
4017µs</div>
4114µs
421205µs22.56ms[% END %]
# spent 1.37ms making 1 call to Template::Stash::XS::get # spent 1.18ms making 1 call to Epoll::DB::Poll::status
43159µs
4412µs<div class="box" style="float: right; width: 60%;">
45
46[% IF NOT poll.voting_count %]
47<p class="alert">[% l('No subscribed voters') %]</p>
48[% ELSE %]
49
50[% FOREACH votingkey = poll.voting_keys %]
51836110ms33445.21s[% voting = poll.voting(votingkey) %]
# spent 2.62s making 1672 calls to Template::Stash::XS::get, avg 1.57ms/call # spent 2.57s making 836 calls to Epoll::DB::Poll::voting, avg 3.07ms/call # spent 20.9ms making 836 calls to Template::Stash::XS::set, avg 25µs/call
52
53[% IF loop.first %]
54<table border="1">
55141µs27.05ms<tr><th>[% l('Email') %]</th>
# spent 3.54ms making 1 call to Template::Stash::XS::get # spent 3.51ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
56249µs26.86ms <th>[% l('Status') %]</th>
# spent 3.45ms making 1 call to Template::Stash::XS::get # spent 3.41ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
57247µs26.05ms <th>[% l('Delete') %]</th>
# spent 3.04ms making 1 call to Template::Stash::XS::get # spent 3.01ms making 1 call to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6]
5813µs</tr>
5983653.1ms1672133ms[% END %]
# spent 87.6ms making 836 calls to Template::Stash::XS::get, avg 105µs/call # spent 45.6ms making 836 calls to Template::Iterator::AUTOLOAD, avg 54µs/call
6019µs
618363.48ms<tr>
62
63<td>[% voting.label | html %] [% voting.info.mail | html %]</td>
641672113ms33447.75s<td>[% IF voting.info.passwd %]<i>[% l('password sent') %]</i>[% END %]</td>
# spent 3.92s making 1672 calls to Template::Stash::XS::get, avg 2.34ms/call # spent 2.70s making 836 calls to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6], avg 3.23ms/call # spent 1.14s making 836 calls to Epoll::DB::Voting::info, avg 1.36ms/call
65334415.4ms
6616724.39ms[% IF NOT voting.info.date %]
67167219.5ms1672166ms<td>
# spent 166ms making 1672 calls to Template::Context::filter, avg 99µs/call
688361.76ms[% IF poll.status != 'AFTER' %]
69836121ms41804.57s<form action="[% c.uri_for(poll.uid, 'voters') %]" method="POST">
# spent 2.32s making 1672 calls to Template::Stash::XS::get, avg 1.39ms/call # spent 1.86s making 836 calls to Epoll::DB::Poll::uid, avg 2.22ms/call # spent 383ms making 836 calls to Catalyst::uri_for, avg 459µs/call # spent 7.34ms making 836 calls to URI::__ANON__[URI.pm:24], avg 9µs/call
703344182ms50162.52s<input type="hidden" name="delvoting" value="[% voting.votingkey %]">
# spent 1.33s making 2508 calls to Template::Stash::XS::get, avg 530µs/call # spent 1.17s making 836 calls to Epoll::DB::Voting::info, avg 1.40ms/call # spent 13.6ms making 836 calls to Template::Stash::undefined, avg 16µs/call # spent 7.60ms making 836 calls to Epoll::DB::Voting::votingkey, avg 9µs/call
71167238.8ms16725.42s<input type="submit" name="delete" value="[% l('delete') %]">
# spent 2.72s making 836 calls to Template::Stash::XS::get, avg 3.26ms/call # spent 2.70s making 836 calls to Template::Document::__ANON__[Epoll/root/templates/includes/loc.tt:6], avg 3.23ms/call
72250823.0ms1672121ms</form>
# spent 121ms making 1672 calls to Template::Filters::html_filter, avg 72µs/call
7383654.9ms16721.87s[% END %]
# spent 955ms making 836 calls to Template::Stash::XS::get, avg 1.14ms/call # spent 915ms making 836 calls to Epoll::DB::Poll::status, avg 1.09ms/call
748363.04ms</td>
7516725.36ms[% ELSE %]
76<td>[% voting.info.date %]</td>
7783695.9ms25082.61s[% END %]
# spent 1.34s making 836 calls to Template::Stash::XS::get, avg 1.61ms/call # spent 1.25s making 836 calls to Epoll::DB::Voting::info, avg 1.50ms/call # spent 15.6ms making 836 calls to Template::Stash::undefined, avg 19µs/call
788363.29ms
79</tr>
80167263.6ms1672142ms[% IF loop.last %]</table>[% END %]
# spent 93.4ms making 836 calls to Template::Stash::XS::get, avg 112µs/call # spent 48.6ms making 836 calls to Template::Iterator::AUTOLOAD, avg 58µs/call
81
82[% END %][% # FOREACH %]
83
8483814.1ms83946.7ms[% END %][% # IF NOT voting %]
# spent 37.0ms making 836 calls to Template::Iterator::get_next, avg 44µs/call # spent 4.87ms making 1 call to Template::Stash::XS::get # spent 4.82ms making 1 call to Epoll::DB::Poll::voting_count # spent 25µs making 1 call to Template::Iterator::AUTOLOAD
8513µs</div>
862249µs2198ms<div style="clear: both"></div>
# spent 98.9ms making 1 call to Template::Stash::XS::get # spent 98.7ms making 1 call to Epoll::DB::Poll::voting_keys