Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by ted.byers (Monk)
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?
[ambrus]: I'm currently in the process of rewriting my proof of concept programs. They sort of developped organically as I was experimenting, so now I've got an ugly mess of multiple programs and one-liners held together by nothing. I'll have to rewrite them to som
[ambrus]: ething that's both cleanly organized and mostly automated.
LanX in train, bad connection
[Corion]: ambrus: Yeah - we're in that situation too, except that there is no time to do the reorganizing :-/
[LanX]: ... so my boss started a project with the newest sun servers and invited the traders to come on weekend to test it... and they were so pleased, that they forced him to keep it in production...
[ambrus]: Corion: sure, this is the long-term plan. The short term is that I have to run this ungodly mess to get results from the new input data today.
[Corion]: ambrus: Most of our "automation" is tied to process exit codes and a shell pipeline :-\
[LanX]: ... a week later they realized that one of the databases - which recorded how much the other banks due to this bank - was not correctly plugged
[ambrus]: Corion: I have no problem with exit codes and shell pipeline. My problem is that the current process requires a lot of manual intervention from me, including editing the source codes.
[ambrus]: (Also a lot of manual intervention by two or three other co-workers, who do other parts of the process.)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (16)
As of 2017-03-29 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (350 votes). Check out past polls.