From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28015 invoked by alias); 8 Jul 2005 20:28:50 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 27976 invoked by uid 22791); 8 Jul 2005 20:28:46 -0000 Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.200) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 08 Jul 2005 20:28:46 +0000 Received: by zproxy.gmail.com with SMTP id i11so237274nzi for ; Fri, 08 Jul 2005 13:28:44 -0700 (PDT) Received: by 10.36.81.11 with SMTP id e11mr627174nzb; Fri, 08 Jul 2005 13:28:44 -0700 (PDT) Received: by 10.36.106.11 with HTTP; Fri, 8 Jul 2005 13:28:44 -0700 (PDT) Message-ID: <9230b363050708132843f4cbed@mail.gmail.com> Date: Fri, 08 Jul 2005 20:28:00 -0000 From: Brandon Heller Reply-To: Brandon Heller To: gcc-help@gcc.gnu.org Subject: GCC with gprof In-Reply-To: <9230b3630507081326f04af7c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9230b3630507081326f04af7c@mail.gmail.com> X-SW-Source: 2005-07/txt/msg00093.txt.bz2 I'm trying to use gprof to profile an application that is compiled with GCC v3.4.3. I can compile the application and run it, but the profile information lists all of two functions, with no time listed for both of them. To get a better of idea of why this is happening, I'd like to have gprof add basic-block counting to its profile by using the -a switch as part of CFLAGS in the ./configure script. One problem is that the -a option doesn't seem to be recognized. A post to the gcc-help list implied that -a was deprecated around the 3.0 GCC release, but I couldn't confirm it, as the gprof site at gnu.org indicated that it was available. The other problem is that gprof's profile shows no useful info. It could be the settings not getting passed in to the linker phase or being put in only some files by the makefile script. Any ideas, and are the any other recommended profilers out there? Thanks for any help, Brandon Heller