Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Dreaming of a Better Profiler

by theorbtwo (Prior)
on May 27, 2004 at 15:10 UTC ( #356930=note: print w/replies, xml ) Need Help??

in reply to Dreaming of a Better Profiler

If I were you, and were a unix man (the two being somewhat redundant), then I'd look at using a sepperate process to that running perl, and using the ptrace system call (probably from C) to periodicly find the curop. You'll have to be able to find the address of the curop variable, which probably means using a perl compiled for debugging. Note that this requires a fair bit of system-specificness (ptrace(2) is documented, on linux, as conforming to a fair number of standards, and being quite system specific. Win32, OTOH, does it's debugging in a completely different way.)

This would allow you to use all the normal methods to sleep, write, whatever. It, however, has a fair bit of slowness associated with it.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://356930]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2021-10-23 12:22 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (88 votes). Check out past polls.