Re: propose Benchmark_Profiler

From: Date: Fri, 23 Aug 2002 08:25:15 +0000
Subject: Re: propose Benchmark_Profiler
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8610@lists.php.net to get a copy of this message
Sebastian Bergmann wrote:
Also, after some research, I'm unsure if I just should ask Sebastian Bergmann if he would include the class to Benchmark instead of opening a new package.
I don't bite :)
great :-)
It's not a big thing. We are talking about approx. 120 lines of code here.
What does it do? I don't have time right now to try it, hence my question.
It's similar to your benchmark class but instead of setting marks you can enter code sections and leave code sections. If you enter a code section at the beginning of a function and leave it right before the end, you can see how often the function was called, which sections caused a call and how often, which sections where called inside the function (and how often) and the total ex time of all function calls. It works inside of loops also etc. Also, I will add an example output to http://englert.nehmer.net/pear/Profiler_doc.php shortly. That should make clear what it does. Matthias

« previous php.pear.dev (#8610) next »