Re: benchmarking including output()

Michael Peters <[email protected]> Thu, 25 Jan 2007 12:14:16 -0500
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
Andrew Brosnan wrote:

> Thanks Michael. Actually, one of the reasons I'm doing this is to
> convince the customer to move to CGI::App instead of one huge script.

You might look at installing C::A::DevPopup since it will give you some nice
stuff to profile.

> I considered saving the post output() results elsewhere to review. Is
> that what you mean by do it afterwards? I can't think of a good way to
> actually include it in the page generated by output.

Yes. You can't time output() without actually running it. Time the method, save
the results to a scalar, then insert the time into that scalar.

-- 
Michael Peters
Developer
Plus Three, LP


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV