From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23926 invoked by alias); 14 Dec 2007 20:40:43 -0000 Received: (qmail 23917 invoked by uid 22791); 14 Dec 2007 20:40:43 -0000 X-Spam-Check-By: sourceware.org Received: from web32709.mail.mud.yahoo.com (HELO web32709.mail.mud.yahoo.com) (68.142.207.253) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 14 Dec 2007 20:40:30 +0000 Received: (qmail 94827 invoked by uid 60001); 14 Dec 2007 20:40:28 -0000 X-YMail-OSG: qULWODEVM1kUxjGc4596lE7RTHiFD95eSczwIaM9mF8tV2HD0CPOHvyRB7H4_Dtj.wFfVdQwVGAzhn4RIV_UFnQx7Zm5KRnnLBBkojU9H_1Y20YD9KA- Received: from [200.32.90.66] by web32709.mail.mud.yahoo.com via HTTP; Fri, 14 Dec 2007 17:40:28 ART Date: Fri, 14 Dec 2007 20:40:00 -0000 From: Juan Carlos Franzoy Subject: profiling question To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <414116.94719.qm@web32709.mail.mud.yahoo.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00275.txt.bz2 Hello. I am trying to profile an application that start running consuming less than 1% of CPU and 10 hours later it takes 20%. I compiled it with -pg and -g and installed it. After 24 hours it took more than 25% and we killed -15 it. It generates a gmon.out. Out surprise was when we run gprof myapp gmon.out. All counters except where in zero. What am I doing wrong? thaks in advance. gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20) uname -a Linux aquila.ats-ar.com.ar 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux ------------------------------------------------------------ Juan Carlos Franzoy Analista Programador Tel: +54-11-4780-2634 mailto:JCFranzoy@ats.com.ar http://www.ats.com.ar ------------------------------------------------------------ Yahoo! Encuentros. Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros http://yahoo.cupidovirtual.com/servlet/NewRegistration