Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the devel-nytprof CPAN distribution.

Report information
The Basics
Id: 50354
Status: resolved
Priority: 0/
Queue: devel-nytprof

People
Owner: Nobody in particular
Requestors: marcoep [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.10
Fixed in: (no value)



Subject: Weird results with Apache/mod-perl/Catalyst
Hi there, I'm doing some profiling of a quite big application based on Apache/mod-perl/Catalyst. In short, I get some very strange times in correspondence of this statement (see the attached report for details): [NYTPROF=optimize=0;savesrc=1;use_db_sub=1;clock=4 (MONOTONIC RAW clock)] 17 1 58.6s 58.6s if (GE::Justice::Data::Clone->is_cloned($class->db_table)) { (my $clone_class = $class) =~ s/^DM::/DM::Clone::/; return $clone_class; } where db_table() just returns a string and is_cloned() does a regex match. Somewhat more realistic (?) times (~6-8s) with options NYTPROF=optimize=0;savesrc=1[;usecputime=1[;clock=0]] (REALTIME) The funny thing is that this equivalent version "seems" much faster: 17 1 2.85s 2.85s my $table = $class->db_table; if (GE::Justice::Data::Clone->is_cloned($table)) { (my $clone_class = $class) =~ s/^DM::/DM::Clone::/; return $clone_class; } but indeed, according to the logs, no more than ~1s is ever spent in there. Puzzling: who's right? Am I missing any key configuration parameter? The same happens on Solaris/Perl 5.8.7, but *not* on a local instance of the application running via Catalyst::Engine::HTTP (i.e. outside Apache/mod_perl). So that's possibly an artifact of mod_perl... Cheers, Marco
Subject: prof.report
Download prof.report
application/octet-stream 5.5k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #50354] Weird results with Apache/mod-perl/Catalyst
Date: Fri, 9 Oct 2009 15:52:05 +0100
To: Marco Emilio Poleggi via RT <bug-devel-nytprof [...] rt.cpan.org>
From: Tim Bunce <Tim.Bunce [...] pobox.com>
Try using the current trunk code in http://code.google.com/p/perl-devel-nytprof/source/checkout (Don't worry if you see test failures) Tim.
Any news?
Le Sam. Oct. 24 10:24:48 2009, TIMB a écrit : Show quoted text
> Any news?
Not yet, 'cause I need a newer perl installation (it requires >=5.8.8, I have 5.8.7), so I'm setting up a 5.10. Cheers, ^m'e
Ping! (Please retry with svn trunk head, or Devel-NYTProf-2.11_80.tar.gz which I've just uploaded to CPAN)
I'll mark this as stalled till I hear from you.
I'm going to mark this closed because usecputime was badly broken previously. I've added tests and fixes for the next release.