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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Charset: utf8
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1255081824-2295-1020"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 1284
Download (untitled) / with headers
text/plain 1.2k
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
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1255081824-2295-1019"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Charset: utf8
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
Content-Type: application/octet-stream; name="prof.report"
Content-Disposition: inline; filename="prof.report"
Content-Transfer-Encoding: base64
Content-Length: 5728
Download prof.report
application/octet-stream 5.5k

Message body not shown because it is not plain text.

MIME-Version: 1.0
X-Spam-Status: No, hits=1.1 required=8.0 tests=DK_SIGNED,RCVD_IN_SORBS_WEB,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-2295-1255081831-1288.50354-4-0 [...] rt.cpan.org>
Content-Disposition: inline
References: <RT-Ticket-50354 [...] rt.cpan.org> <rt-3.6.HEAD-2295-1255081831-1288.50354-4-0 [...] rt.cpan.org>
Message-ID: <20091009145205.GB10666 [...] timac.local>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id 213804D8048 for <bug-devel-nytprof [...] rt.cpan.org>; Fri, 9 Oct 2009 10:52:23 -0400 (EDT)
Received: (qmail 23065 invoked by uid 103); 9 Oct 2009 14:52:22 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 9 Oct 2009 14:52:22 -0000
Received: from mail-ew0-f225.google.com (HELO mail-ew0-f225.google.com) (209.85.219.225) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Fri, 09 Oct 2009 07:52:15 -0700
Received: by ewy25 with SMTP id 25so661652ewy.45 for <bug-devel-nytprof [...] rt.cpan.org>; Fri, 09 Oct 2009 07:52:11 -0700 (PDT)
Received: by 10.216.85.65 with SMTP id t43mr940316wee.92.1255099931623; Fri, 09 Oct 2009 07:52:11 -0700 (PDT)
Received: from timac.local ([89.204.225.217]) by mx.google.com with ESMTPS id f13sm5136924gvd.21.2009.10.09.07.52.09 (version=SSLv3 cipher=RC4-MD5); Fri, 09 Oct 2009 07:52:10 -0700 (PDT)
Delivered-To: cpan-bug+devel-nytprof [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #50354] Weird results with Apache/mod-perl/Catalyst
User-Agent: Mutt/1.5.17 (2007-11-01)
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=TEZRHs/KzEYMIRdgcAnL3W9sodaHyHoyRIK9jfBxPI7Gfdz3A7+/jwFD5ZdCli9gN8 DJ5i7SPl996VUhxH+vYucBf71ZCssByWe0VpubL8ZTpZaDVxFe2q7bzBOU9u1kiX/Rl3 HhXoauoch9XXW8WdiriyKrfeygGrJORqkfUL0=
Return-Path: <tim.bunce [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=KUM1cdqDqXZ3VXIYXyfCt9aFTgXdZhp2JGmyI6BHua4=; b=byNfRlgs+QTUSec15lEJWDBi4nZ0g400xOBXWC4exRvY6FLZO1KnSPvCRjkMVwDE3C hTdZVqkd5omV4DDBsf1o6l5JmZhZ75sqN1qu/RdRMIZ3tq0attPM6Z4Jiey7encmSuKS Ny5cTlp8qbPkmCjU3sNZu4AvdpbVrcAoSq9GI=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-devel-nytprof [...] rt.cpan.org
Date: Fri, 9 Oct 2009 15:52:05 +0100
Sender: Tim Bunce <tim.bunce [...] gmail.com>
X-Spam-Level: *
To: Marco Emilio Poleggi via RT <bug-devel-nytprof [...] rt.cpan.org>
From: Tim Bunce <Tim.Bunce [...] pobox.com>
RT-Message-ID: <rt-3.6.HEAD-2295-1255099953-907.50354-0-0 [...] rt.cpan.org>
Content-Length: 142
Download (untitled) / with headers
text/plain 142b
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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-3617-1256394288-1071.50354-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 9
Any news?
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-3617-1256394288-1071.50354-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
References: <rt-3.6.HEAD-3617-1256394288-1071.50354-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-3617-1256562888-1736.50354-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 187
Download (untitled) / with headers
text/plain 187b
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-6514-1258377361-1029.50354-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 108
Download (untitled) / with headers
text/plain 108b
Ping! (Please retry with svn trunk head, or Devel-NYTProf-2.11_80.tar.gz which I've just uploaded to CPAN)
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-6514-1258377416-1291.50354-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 47
I'll mark this as stalled till I hear from you.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-14826-1266680389-1058.50354-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 127
Download (untitled) / with headers
text/plain 127b
I'm going to mark this closed because usecputime was badly broken previously. I've added tests and fixes for the next release.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.