Re: cvs: pecl /apd pprofp

From: Date: Wed, 10 Mar 2004 22:20:19 +0000
Subject: Re: cvs: pecl /apd pprofp
References: 1 2 3  Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1051@lists.php.net to get a copy of this message
What do you think about the attached patch against PECL_4_3 to fix a couple of little niggly edge cases? -Rasmus On Wed, 10 Mar 2004, George Schlossnagle wrote: > Not a good day for me.... > > Fixed - the move into PECL_4_3 was badly f'd up. > > On Mar 10, 2004, at 4:07 PM, Rasmus Lerdorf wrote: > > > The PECL_4_3 branch of apd doesn't build right now. I think it is > > missing > > some files like apd_array.[ch] on that branch. > > > > -Rasmus > > > > On Wed, 10 Mar 2004, George Schlossnagle wrote: > > > >> gschlossnagle Wed Mar 10 13:35:07 2004 EDT > >> > >> Modified files: > >> /pecl/apd pprofp > >> Log: > >> Fixed time aggregarion error introdcued with per-line timings > >> > >> > >> > >> http://cvs.php.net/diff.php/pecl/apd/pprofp?r1=1.12&r2=1.13&ty=u > >> Index: pecl/apd/pprofp > >> diff -u pecl/apd/pprofp:1.12 pecl/apd/pprofp:1.13 > >> --- pecl/apd/pprofp:1.12 Tue Dec 23 20:13:21 2003 > >> +++ pecl/apd/pprofp Wed Mar 10 13:35:07 2004 > >> @@ -100,7 +100,20 @@ > >> continue; > >> } > >> if( $token == '@') { > >> - list($t_utime, $t_stime, $t_rtime) = preg_split("/ /", > >> $data); > >> + list($file_no, $line_no, $ut, $st, $rt) = preg_split("/ /", > >> $data); > >> + $top = array_pop($callstack); > >> + $utimes[$top] += $ut; > >> + $utotal += $ut; > >> + $stimes[$top] += $st; > >> + $stotal += $st; > >> + $rtimes[$top] += $rt; > >> + $rtotal += $rt; > >> + array_push($callstack, $top); > >> + foreach ($callstack as $stack_element) { > >> + $c_utimes[$stack_element] += $ut; > >> + $c_stimes[$stack_element] += $st; > >> + $c_rtimes[$stack_element] += $rt; > >> + } > >> continue; > >> } > >> if ($token == '-') { > >> @@ -112,26 +125,6 @@ > >> $mem[$index] += ($memory - $last_memory); > >> $last_memory = $memory; > >> $indent_cur--; > >> - $utimes[$index] += $t_utime; > >> - $utotal += $t_utime; > >> - $stimes[$index] += $t_stime; > >> - $stotal += $t_stime; > >> - $rtimes[$index] += $t_rtime; > >> - $rtotal += $t_rtime; > >> - $seen = array(); > >> - foreach ($callstack as $stack_element) { > >> - if(array_key_exists($stack_element, $seen)){ > >> - continue; > >> - } > >> - $seen[$stack_element] = 1; > >> - $c_utimes[$stack_element] += $t_utime; > >> - $c_stimes[$stack_element] += $t_stime; > >> - $c_rtimes[$stack_element] += $t_rtime; > >> - } > >> - $t_utime = 0; > >> - $t_stime = 0; > >> - $t_rtime = 0; > >> - > >> $tmp = array_pop($callstack); > >> continue; > >> } > >> > >> -- > >> PECL CVS Mailing List > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > // George Schlossnagle > // Postal Engine -- http://www.postalengine.com/ > // Ecelerity: fastest MTA on earth > > -- > PECL CVS Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.pecl.cvs (#1051) next »