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

Peter Scott Peter at PSDT.com
Mon Jul 30 10:27:57 PDT 2007


At 01:41 AM 7/28/2007, Jer A wrote:
>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.

Consider Log::Log4Perl then.  I don't think this is going to be 
easy.  You'll hav to add a line to every method you want to trace.

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

I don't understand.  The tracing will be in the code, so it will trace 
from whatever thread it is in.  You can't write something that will 
poke at another process or thread to see what it's doing.
-- 
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com/
http://www.perlmedic.com/



More information about the Victoria-pm mailing list