[VPM] sub call trace, was : Re: Victoria-pm Digest, Vol 39, Issue 5

Jer A jeremygwa at hotmail.com
Sat Jul 28 01:41:23 PDT 2007


Charles,

Thank you for your response.

performance is an issue... it is for a web application, using a "mod-perl 
like daemon" process.

I am not going to be logging , eg. writing to disk, but storing the 
log..(array) in memory, then processing it at a later time. the data will be 
piped to another daemon process.

I dont want to be tracing every single call, but only calls I specify, eg. 
basically the structure (classes/methods, etc) of my own code.

also can I trace method calls from another thread, outside of the main 
thread?

I hope I have given you enough info for you to help me.

Thank you very much for your help so far.

-Jeremy A.

>From: "Charles Frank" <charlespfrank at gmail.com>
>To: victoria-pm at pm.org
>Subject: Re: [VPM] Victoria-pm Digest, Vol 39, Issue 5
>Date: Fri, 27 Jul 2007 13:41:08 -0700
>
> > hello all
> >
> > I would like to be able to trace/capture script subroutine calls without
> > affecting performance to much.
>
>
>Are you hoping to get a stack trace from a regular perl script?  Are you in
>doing object oriented programming, or web development (mod_perl)?  What 
>sort
>of performance range are you looking at?  What is too slow, and what is
>acceptable?
>
>I usually use the Carp module classes to give stack traces (confess, 
>croak):
>
>http://perldoc.perl.org/Carp.html
>
>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.
>
>There is also Dave Rolsky's Devel::Stacktrace:
>
>http://search.cpan.org/~drolsky/Devel-StackTrace-1.15/lib/Devel/StackTrace.pm
>
>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't much use.
>
>A perl profiler can help w/monitoring performance with scripts.
>
>http://search.cpan.org/~ilyaz/DProf-19990108/DProf.pm
>
>hth,
>
>Chuck
>
>
>how do I do this.
> >
> > Thanks in advance for all replies.
> >
> > Jeremy A.
> >
> > _________________________________________________________________
> > Windows Live Hotmail is the next generation of MSN Hotmail. It's fast,
> > simple, and safer than ever and best of all – it's still free. Try it
> > today!
> > www.newhotmail.ca?icid=WLHMENCA146
> >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > Victoria-pm mailing list
> > Victoria-pm at pm.org
> > http://mail.pm.org/mailman/listinfo/victoria-pm
> >
> > End of Victoria-pm Digest, Vol 39, Issue 5
> > ******************************************
> >


>_______________________________________________
>Victoria-pm mailing list
>Victoria-pm at pm.org
>http://mail.pm.org/mailman/listinfo/victoria-pm

_________________________________________________________________
Put Your Face In Your Space with Windows Live Spaces 
http://spaces.live.com/?mkt=en-ca



More information about the Victoria-pm mailing list