Author: tim.bunce
Date: Wed Oct 22 06:40:34 2008
New Revision: 541

Modified:
    trunk/Changes
    trunk/lib/Devel/NYTProf/Util.pm

Log:
Fixed *significant* error in time reported as spent in a subroutine,
which was showing the sum of the inclusive and exclusive time
instead of just the inclusive time. Ouch.


Modified: trunk/Changes
==============================================================================
--- trunk/Changes       (original)
+++ trunk/Changes       Wed Oct 22 06:40:34 2008
@@ -24,6 +24,10 @@

  Reports:

+  Fixed significant error in time reported as spent in a subroutine,
+    which was showing the sum of the inclusive and exclusive time
+    instead of just the inclusive time.
+
    Subroutine calls made within string evals are now shown in reports.
    Subroutine caller details now includes calls from within string evals.


Modified: trunk/lib/Devel/NYTProf/Util.pm
==============================================================================
--- trunk/lib/Devel/NYTProf/Util.pm     (original)
+++ trunk/lib/Devel/NYTProf/Util.pm     Wed Oct 22 06:40:34 2008
@@ -152,7 +152,7 @@
      my ($incl, $excl) = @_;
      my $diff = $incl - $excl;
      return fmt_float($incl) . "s" unless $diff;
-    return sprintf "%ss (%s+%s)", fmt_float($incl + $excl),  
fmt_float($excl),
+    return sprintf "%ss (%s+%s)", fmt_float($incl), fmt_float($excl),
          fmt_float($incl - $excl);
  }


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