<br><br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>hello all<br><br>I would like to be able to trace/capture script subroutine calls without
<br>affecting performance to much.</blockquote><div><br>Are you hoping to get a stack trace from a regular perl script?&nbsp; Are you in doing object oriented programming, or web development (mod_perl)?&nbsp; What sort of performance range are you looking at?&nbsp; What is too slow, and what is acceptable?
<br><br>I usually use the Carp module classes to give stack traces (confess, croak):<br><br><a href="http://perldoc.perl.org/Carp.html">http://perldoc.perl.org/Carp.html</a><br><br>I believe that Carp is now internal to Perl, and it is mature, but, as with many object oriented modules, there is some overhead involved when using them.
<br><br>There is also Dave Rolsky&#39;s Devel::Stacktrace:<br><br><a href="http://search.cpan.org/~drolsky/Devel-StackTrace-1.15/lib/Devel/StackTrace.pm">http://search.cpan.org/~drolsky/Devel-StackTrace-1.15/lib/Devel/StackTrace.pm
</a><br><br>Usually, when I want a stack trace, I am debugging, but I see your question is concerned w/performance, so I am assuming that you want a dump to a log someplace while the script is executing, and so the traditional perl functions die and warn, probably aren&#39;t much use.
<br><br>A perl profiler can help w/monitoring performance with scripts.<br><br><a href="http://search.cpan.org/~ilyaz/DProf-19990108/DProf.pm">http://search.cpan.org/~ilyaz/DProf-19990108/DProf.pm</a><br><br>hth, <br><br>
Chuck<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">how do I do this.<br><br>Thanks in advance for all replies.<br><br>Jeremy A.
<br><br>_________________________________________________________________<br>Windows Live Hotmail is the next generation of MSN Hotmail. It's fast,<br>simple, and safer than ever and best of all – it's still free. Try it today!
<br><a href="http://www.newhotmail.ca?icid=WLHMENCA146">www.newhotmail.ca?icid=WLHMENCA146</a><br><br><br><br>------------------------------<br><br>_______________________________________________<br>Victoria-pm mailing list
<br><a href="mailto:Victoria-pm@pm.org">Victoria-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/victoria-pm">http://mail.pm.org/mailman/listinfo/victoria-pm</a><br><br>End of Victoria-pm Digest, Vol 39, Issue 5
<br>******************************************<br></blockquote></div><br>