| File | /usr/lib/perl5/vendor_perl/5.10.1/Epoll/root/templates/admin/voters.tt |
| Statements Executed | 28485 |
| Statement Execution Time | 933ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 389ms | 16.4s | Template::Document::__ANON__[:105] |
| 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 | ||||
| 2 | 1 | 64µs | 5 | 4.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 | |||||
| 4 | 1 | 8µs | 1 | 121ms | [% INCLUDE 'includes/admin_menu.tt' %] # spent 121ms making 1 call to Template::Context::include |
| 5 | |||||
| 6 | [% IF poll.status() != 'AFTER' %] | ||||
| 7 | 1 | 2µs | <div style="float: left; width: 30%;" class="box"> | ||
| 8 | 2 | 46µs | 2 | 7.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] |
| 9 | 2 | 125µs | 5 | 4.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] |
| 10 | 1 | 3µs | <table> | ||
| 11 | <tr> | ||||
| 12 | 1 | 102µs | 2 | 7.17ms | <td align="left">[% l('Name:') %] </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] |
| 13 | 1 | 3µs | <td><input type="text" name="id"></td> | ||
| 14 | </tr><tr> | ||||
| 15 | 1 | 44µs | 2 | 8.46ms | <td align="left">[% l('Email address:') %] </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] |
| 16 | 1 | 3µs | <td><input type="text" name="mail"></td> | ||
| 17 | </tr> | ||||
| 18 | </table> | ||||
| 19 | 1 | 45µs | 2 | 7.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] |
| 20 | 1 | 4µs | </form> | ||
| 21 | |||||
| 22 | <hr> | ||||
| 23 | <p> | ||||
| 24 | 1 | 146µs | 5 | 6.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] |
| 25 | 2 | 54µs | 2 | 7.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] |
| 26 | 1 | 2µs | </a> | ||
| 27 | </p> | ||||
| 28 | |||||
| 29 | |||||
| 30 | <hr> | ||||
| 31 | 1 | 49µs | 2 | 9.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] |
| 32 | 1 | 3µs | [% IF poll.info.hend %] | ||
| 33 | 1 | 128µs | 5 | 5.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] |
| 34 | 3 | 70µs | 3 | 11.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] |
| 35 | 3 | 53µs | 2 | 7.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] |
| 36 | 1 | 4µs | </form> | ||
| 37 | [% ELSE %] | ||||
| 38 | [% l('Poll date must be set before announcing poll to voters') %] | ||||
| 39 | 1 | 81µs | 2 | 8.38ms | [% END %] # spent 4.22ms making 1 call to Template::Stash::XS::get
# spent 4.16ms making 1 call to Epoll::DB::Poll::info |
| 40 | 1 | 7µs | </div> | ||
| 41 | 1 | 4µs | |||
| 42 | 1 | 205µs | 2 | 2.56ms | [% END %] # spent 1.37ms making 1 call to Template::Stash::XS::get
# spent 1.18ms making 1 call to Epoll::DB::Poll::status |
| 43 | 1 | 59µs | |||
| 44 | 1 | 2µ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 %] | ||||
| 51 | 836 | 110ms | 3344 | 5.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"> | ||||
| 55 | 1 | 41µs | 2 | 7.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] |
| 56 | 2 | 49µs | 2 | 6.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] |
| 57 | 2 | 47µs | 2 | 6.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] |
| 58 | 1 | 3µs | </tr> | ||
| 59 | 836 | 53.1ms | 1672 | 133ms | [% 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 |
| 60 | 1 | 9µs | |||
| 61 | 836 | 3.48ms | <tr> | ||
| 62 | |||||
| 63 | <td>[% voting.label | html %] [% voting.info.mail | html %]</td> | ||||
| 64 | 1672 | 113ms | 3344 | 7.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 |
| 65 | 3344 | 15.4ms | |||
| 66 | 1672 | 4.39ms | [% IF NOT voting.info.date %] | ||
| 67 | 1672 | 19.5ms | 1672 | 166ms | <td> # spent 166ms making 1672 calls to Template::Context::filter, avg 99µs/call |
| 68 | 836 | 1.76ms | [% IF poll.status != 'AFTER' %] | ||
| 69 | 836 | 121ms | 4180 | 4.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 |
| 70 | 3344 | 182ms | 5016 | 2.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 |
| 71 | 1672 | 38.8ms | 1672 | 5.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 |
| 72 | 2508 | 23.0ms | 1672 | 121ms | </form> # spent 121ms making 1672 calls to Template::Filters::html_filter, avg 72µs/call |
| 73 | 836 | 54.9ms | 1672 | 1.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 |
| 74 | 836 | 3.04ms | </td> | ||
| 75 | 1672 | 5.36ms | [% ELSE %] | ||
| 76 | <td>[% voting.info.date %]</td> | ||||
| 77 | 836 | 95.9ms | 2508 | 2.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 |
| 78 | 836 | 3.29ms | |||
| 79 | </tr> | ||||
| 80 | 1672 | 63.6ms | 1672 | 142ms | [% 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 | |||||
| 84 | 838 | 14.1ms | 839 | 46.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 |
| 85 | 1 | 3µs | </div> | ||
| 86 | 2 | 249µs | 2 | 198ms | <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 |