Revision: 1366
Author: [email protected]
Date: Fri Sep 24 03:28:23 2010
Log: Added note to the docs re profiling applications that use Coro
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1366

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

=======================================
--- /trunk/Changes      Thu Sep 16 09:51:26 2010
+++ /trunk/Changes      Fri Sep 24 03:28:23 2010
@@ -6,6 +6,10 @@

 =cut

+=head2 Changes in Devel::NYTProf 4.06 (svn XXX) XXX
+
+  Added note to the docs re profiling applications that use Coro.
+
 =head2 Changes in Devel::NYTProf 4.05 (svn 1359) 15th Sept 2010

   Fixed tests to work with a new optimization in perl 5.13.4.
=======================================
--- /trunk/NYTProf.xs   Sun Sep 19 10:29:34 2010
+++ /trunk/NYTProf.xs   Fri Sep 24 03:28:23 2010
@@ -2173,7 +2173,7 @@

     if (subr_entry_ix <= prev_subr_entry_ix) {
         /* one cause of this is running NYTProf with threads */
-        logwarn("NYTProf panic: stack is confused, giving up!\n");
+ logwarn("NYTProf panic: stack is confused, giving up! (Try running with subs=0)\n");
         /* limit the damage */
         disable_profile(aTHX);
         return prev_subr_entry_ix;
=======================================
--- /trunk/lib/Devel/NYTProf.pm Sun Sep 19 10:28:53 2010
+++ /trunk/lib/Devel/NYTProf.pm Fri Sep 24 03:28:23 2010
@@ -769,6 +769,12 @@
 NYTProf tries to ignore any activity from perl interpreters other than the
 first one that loaded it.

+=head2 Coro
+
+The C<Devel::NYTProf> subroutine profiler gets confused by the stack gymnastics +performed by the L<Coro> module and aborts. When profiling applications that +use Coro you should disable the subroutine profiler using the L</subs=0> option.
+
 =head2 For perl < 5.8.8 it may change what caller() returns

For example, the L<Readonly> module croaks with "Invalid tie" when profiled with

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