[CC'd to the mailing list]
On Sat, Feb 16, 2013 at 05:02:19PM -0500, Sir Woody Hackswell wrote:
> Hello! I was wondering if you could help me a bit with Devel::NYTProf.
>
> I have a CGI::Fast application in perl (not mod_perl... =sigh=) that
> I'm trying to profile. [Please don't hate on the code I inherited
> that I cannot rewrite... ;) ]
I'm not given to hating anything :)
> When I run nytprofhtml, I get an undesirable entry for FCGI::Accept
> (buried within CGI::Fast). I'd like to measure the time spent
> processing pages, not waiting for requests to come in. So I tried
> this:
>
> DB::disable_profile();
> while ($cgi = new CGI::Fast)
> {
> DB::enable_profile();
> ...
> DB::disable_profile();
> }
>
> Now I get an entry for DB::disable_profile()! (but not FCGI::Accept
> which is good, but oddly not for enable_profile) Oi-vey!
> Am I doing something wrong? Shouldn't DB::disable_profile() itself be
> on an excluded list from profiling?
> It'd be absolutely fab to have post-filtering to exclude unwanted
> functions from nytprofhtml, but if that's not easy or possible,
It would need to be done within the profiler, like it already does
for the accept() builtin function. You're not the first to ask
so I've created a ticket: https://rt.cpan.org/Ticket/Display.html?id=83381
> is it
> possible to exclude disable_profile() itself from the profiling? If
> not, could you lend me your reasoning so that I can better understand?
In what way is having DB::disable_profile in the profile a problem?
I think there is code in NYTProf to hide the disable_profile, so
perhaps that's not working. I'll look into it.
> Thank you very much for your time!
Thanks.
Tim.
p.s. Please post any further emails to the mailing list via
[email protected] or
https://groups.google.com/forum/?fromgroups#!forum/develnytprof-dev
--
--
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.
Group hosted at: http://groups.google.com/group/develnytprof-dev
Project hosted at: http://perl-devel-nytprof.googlecode.com
CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf
To post, email: [email protected]
To unsubscribe, email: [email protected]
---
You received this message because you are subscribed to the Google Groups
"Devel::NYTProf Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.