Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: NYTProf doesn't profile through a system or exec call

by moritz (Cardinal)
on Oct 22, 2013 at 07:11 UTC ( #1059191=note: print w/replies, xml ) Need Help??


in reply to Re: NYTProf doesn't profile through a system or exec call
in thread NYTProf doesn't profile through a system or exec call

I'm pretty sure that you'll get erroneous results if you try to profile both simultaneously.

But there's a simple solution to that: set the environment variable NYTPROF to addpid=1, then the profile for each process is written to a different file.

Then one can either analyze each file separately with nytprofhtml -f nytprof.out.$PID, or run nytprofmerge -o nytprof.merged nytprof.out.*; nytprofhtml -f nytprof.merged to merge them all into one report.

And to make sure that all perl processes are profiled, one can set the PERL5OPT environment variable to -d:NYTPProf.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1059191]
help
Chatterbox?
[LanX]: never seen trainspotting in OV ... :(
[karlgoethebier]: LanX
[LanX]: They should teach Scottish in continental schools after Brexit !!!
[marto]: I'm all for that

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2018-02-19 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (262 votes). Check out past polls.

    Notices?