← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 18:42:36 2015
Reported on Fri Jul 31 18:48:15 2015

Filename/var/www/foswikidev/core/lib/Foswiki/Iterator/AggregateEventIterator.pm
StatementsExecuted 10 statements in 248µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11114µs27µsFoswiki::Iterator::AggregateEventIterator::::BEGIN@4Foswiki::Iterator::AggregateEventIterator::BEGIN@4
11110µs14µsFoswiki::Iterator::AggregateEventIterator::::BEGIN@5Foswiki::Iterator::AggregateEventIterator::BEGIN@5
1119µs35µsFoswiki::Iterator::AggregateEventIterator::::BEGIN@6Foswiki::Iterator::AggregateEventIterator::BEGIN@6
1114µs4µsFoswiki::Iterator::AggregateEventIterator::::BEGIN@8Foswiki::Iterator::AggregateEventIterator::BEGIN@8
0000s0sFoswiki::Iterator::AggregateEventIterator::::newFoswiki::Iterator::AggregateEventIterator::new
0000s0sFoswiki::Iterator::AggregateEventIterator::::snoopNextFoswiki::Iterator::AggregateEventIterator::snoopNext
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# See bottom of file for license and copyright information
2package Foswiki::Iterator::AggregateEventIterator;
3
4228µs239µs
# spent 27µs (14+13) within Foswiki::Iterator::AggregateEventIterator::BEGIN@4 which was called: # once (14µs+13µs) by Foswiki::Logger::PlainFile::BEGIN@37 at line 4
use strict;
# spent 27µs making 1 call to Foswiki::Iterator::AggregateEventIterator::BEGIN@4 # spent 13µs making 1 call to strict::import
5223µs218µs
# spent 14µs (10+4) within Foswiki::Iterator::AggregateEventIterator::BEGIN@5 which was called: # once (10µs+4µs) by Foswiki::Logger::PlainFile::BEGIN@37 at line 5
use warnings;
# spent 14µs making 1 call to Foswiki::Iterator::AggregateEventIterator::BEGIN@5 # spent 4µs making 1 call to warnings::import
6253µs261µs
# spent 35µs (9+26) within Foswiki::Iterator::AggregateEventIterator::BEGIN@6 which was called: # once (9µs+26µs) by Foswiki::Logger::PlainFile::BEGIN@37 at line 6
use Assert;
# spent 35µs making 1 call to Foswiki::Iterator::AggregateEventIterator::BEGIN@6 # spent 26µs making 1 call to Exporter::import
7
8
# spent 4µs within Foswiki::Iterator::AggregateEventIterator::BEGIN@8 which was called: # once (4µs+0s) by Foswiki::Logger::PlainFile::BEGIN@37 at line 13
BEGIN {
915µs if ( $Foswiki::cfg{UseLocale} ) {
10 require locale;
11 import locale();
12 }
131127µs14µs}
14
15=begin TML
16
17---++ =Foswiki::Iterator::AggregateEventIterator=
18Private subclass of Foswiki::AggregateIterator that implements the snoopNext method
19
20=cut
21
22# Private subclass of AggregateIterator that can snoop Events.
231600nsrequire Foswiki::AggregateIterator;
2418µsour @ISA = ('Foswiki::AggregateIterator');
25
26sub new {
27 my ( $class, $list, $unique ) = @_;
28 my $this = bless(
29 {
30 Itr_list => $list,
31 Itr_index => 0,
32 index => 0,
33 process => undef,
34 filter => undef,
35 next => undef,
36 unique => $unique,
37 unique_hash => {}
38 },
39 $class
40 );
41 return $this;
42}
43
44=begin TML
45
46---+++ ObjectMethod snoopNext() -> $boolean
47Return the field hash of the next availabable record.
48
49=cut
50
51sub snoopNext {
52 my $this = shift;
53 return $this->{list}->snoopNext();
54}
55
5613µs1;
57__END__