Re: [htmltmpl] benchmarking including output()
Brought to you by:
samtregar
From: Michael P. <mp...@pl...> - 2007-01-25 17:19:33
|
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 |