From 05cf48fb182c5adc4d8bce9ec0b043167ca8e8b4 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 4 Jul 2009 23:56:39 +0000 Subject: [PATCH] Add missing POD to PerformanceProfiler. --- lib/WebGUI/PerformanceProfiler.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lib/WebGUI/PerformanceProfiler.pm b/lib/WebGUI/PerformanceProfiler.pm index 7a25a39ba..404af03a3 100644 --- a/lib/WebGUI/PerformanceProfiler.pm +++ b/lib/WebGUI/PerformanceProfiler.pm @@ -116,6 +116,13 @@ sub addProfilerCode { return Apache2::Const::DECLINED; } + +=head2 output + +Handler that adds the results to the body of the outgoing page. + +=cut + sub output { my $f = shift; return Apache2::Const::DECLINED unless($f->r->content_type =~ 'text/html'); @@ -516,6 +523,17 @@ sub is_constant { return $is_const; } + +=head2 sum ($arrRef) + +Calculates and returns the sum of the elements in the array reference. + +=head3 $arrRef + +An array reference. + +=cut + sub sum { my $sum = 0; my $arrRef = shift;