Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Linear Report with Devel-NYTProf

by hexcoder (Curate)
on Jul 28, 2014 at 20:47 UTC ( [id://1095422]=note: print w/replies, xml ) Need Help??


in reply to Linear Report with Devel-NYTProf

I have not tried this out myself, but from the documentation of Devel-NYTProf it seems like the calls=N option might be worth to try. If your loop body is more or less a subroutine call, the following might be useful.

From the documentation (emphasis done by me):

calls=N

This option is new and experimental.

With calls=1 (the default) subroutine call return events are emitted into the data stream as they happen. With calls=2 subroutine call entry events are also emitted. With calls=0 no subroutine call events are produced. This option depends on the subs option being enabled, which it is by default.

The nytprofcalls utility can be used to process this data. It too is new and experimental and so likely to change.

The subroutine profiler normally gathers data in memory and outputs a summary when the profile data is being finalized, usually when the program has finished. The summary contains aggregate information for all the calls from one location to another, but the details of individual calls have been lost. The calls option enables the recording of individual call events and thus more detailed analysis and reporting of that data.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-24 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found