Revision: 975
Author: [email protected]
Date: Fri Dec 18 09:04:36 2009
Log: profiler_duration needs to sum over all PIDs run, not just the last  
PID seen.
http://code.google.com/p/perl-devel-nytprof/source/detail?r=975

Modified:
  /trunk/NYTProf.xs

=======================================
--- /trunk/NYTProf.xs   Fri Dec 18 09:04:12 2009
+++ /trunk/NYTProf.xs   Fri Dec 18 09:04:36 2009
@@ -3987,7 +3987,7 @@
                          HvKEYS(live_pids_hv), profiler_end_time);

                  store_attrib_sv(aTHX_ attr_hv, "profiler_end_time",  
newSVnv(profiler_end_time));
-                profiler_duration = profiler_end_time -  
profiler_start_time;
+                profiler_duration += profiler_end_time -  
profiler_start_time;
                  store_attrib_sv(aTHX_ attr_hv, "profiler_duration",  
newSVnv(profiler_duration));

                  break;

-- 
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]

Reply via email to