Author: tim.bunce
Date: Tue Jun  2 16:26:24 2009
New Revision: 747

Modified:
    trunk/Changes
    trunk/NYTProf.xs

Log:
Changed enable_profile() to discard the time spent since profile was  
disabled.


Modified: trunk/Changes
==============================================================================
--- trunk/Changes       (original)
+++ trunk/Changes       Tue Jun  2 16:26:24 2009
@@ -10,6 +10,9 @@
    Fixed enable_profile() after fork thanks to delamonpansie
      http://code.google.com/p/perl-devel-nytprof/issues/detail?id=15

+  Changed enable_profile() to discard the time spent since
+    profile was disabled.
+
    Added nytprofcg utility to generate callgrind data for
      viewing via Kcachegrind, thanks to Chia-liang Kao.


Modified: trunk/NYTProf.xs
==============================================================================
--- trunk/NYTProf.xs    (original)
+++ trunk/NYTProf.xs    Tue Jun  2 16:26:24 2009
@@ -2429,6 +2429,9 @@
      if (use_db_sub)                 /* set PL_DBsingle if required */
          sv_setiv(PL_DBsingle, 1);

+    /* discard time spent since profiler was disabled */
+    get_time_of_day(start_time);
+
      return prev_is_profiling;
  }


--~--~---------~--~----~------------~-------~--~----~
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