Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Troubles with getting NYTProf to work properly in a CGI program

by ted.byers (Scribe)
on Feb 22, 2013 at 02:46 UTC ( #1020057=note: print w/ replies, xml ) Need Help??


in reply to Re: Troubles with getting NYTProf to work properly in a CGI program
in thread Troubles with getting NYTProf to work properly in a CGI program

Thanks. That works fine with a script executed from a commandline, or within an environment like Emacs. However, even there, no variation I have tried lets me use "slowops=0". The documentation for Devel::NYTProf says to use slowops if some of the functions have negative timings, but I can not tell from the documentation where such an assignment is supposed to be set. From the behaviour I see, that seems to be a way to use NYTProf within a CGI script as an alternative to setting the configuration parameters I'd used in httpd.conf.

Thus, the problem remains as to how to use slowops, and some of the other items I see in the documentation for NYTProf.

Thanks

Ted


Comment on Re^2: Troubles with getting NYTProf to work properly in a CGI program
Replies are listed 'Best First'.
Re^3: Troubles with getting NYTProf to work properly in a CGI program
by Anonymous Monk on Feb 22, 2013 at 03:09 UTC

      That's what I'd missed.

      It ignores the path for the output file I'd specified, but that's OK, as I found it anyway.

      Thanks

      Ted

        Well :) you used the delimiter character : without escaping it, as part of the filename

        I imagine  file=C\:/....../ would work

        And while escaping might work, I think it is a bit of a bug (at least a documentation bug)

        OTOH, if it accepted something standard like JSON the parsing is greatly simplified

        export NYTPROF='{"start":"init","file":"C:/..."}'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2015-07-30 01:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls