Revision: 1089
Author: tim.bunce
Date: Mon Mar 1 09:07:54 2010
Log: Added some notes re stub DB::sub sub.
http://code.google.com/p/perl-devel-nytprof/source/detail?r=1089
Modified:
/trunk/lib/Devel/NYTProf.pm
=======================================
--- /trunk/lib/Devel/NYTProf.pm Wed Feb 24 02:50:05 2010
+++ /trunk/lib/Devel/NYTProf.pm Mon Mar 1 09:07:54 2010
@@ -34,7 +34,11 @@
? sub { goto &DB_profiler } # workaround bug in old perl
versions (slow)
: \&DB_profiler;
}
-sub sub { die "DB::sub" } # needed for perl <5.8.7
(<p...@24265)
+
+# DB::sub shouldn't be called, but needs to exist for perl <5.8.7
(<p...@24265)
+# Could be called in obscure cases, e.g. if "perl -d" (not -d:NYTProf)
+# was used with Devel::NYTProf loaded some other way
+sub sub { die "DB::sub called unexpectly" }
sub CLONE { DB::disable_profiler }
--
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]