Revision: 1318
Author: [email protected]
Date: Sat Jun 26 14:26:24 2010
Log: Flush trace log messages immediately

http://code.google.com/p/perl-devel-nytprof/source/detail?r=1318

Modified:
 /trunk/Changes
 /trunk/NYTProf.xs

=======================================
--- /trunk/Changes      Sat Jun 19 11:56:26 2010
+++ /trunk/Changes      Sat Jun 26 14:26:24 2010
@@ -12,6 +12,10 @@
 add u key to treemap to trigger moving 'up' a level
 add "calls N subs" to treemap mouseover box

+=head2 Changes in Devel::NYTProf 4.04
+
+  Trace log messages are now flushed immediately.
+
 =head2 Changes in Devel::NYTProf 4.03 (svn 1316) 19th June 2010

   Fixed another nytprofhtml performance problem for profiles with
=======================================
--- /trunk/NYTProf.xs   Tue Jun  8 15:30:13 2010
+++ /trunk/NYTProf.xs   Sat Jun 26 14:26:24 2010
@@ -392,6 +392,11 @@
     if (!logfh)
         logfh = stderr;
     vfprintf(logfh, pat, args);
+    /* Flush to ensure the log message gets pushed out to the kernel.
+ * This flush will be expensive but is needed to ensure the log has recent info + * if there's a core dump. Could add an option to disable flushing if needed.
+     */
+    fflush(logfh);
     va_end(args);
 }

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