From owner-freebsd-stable@FreeBSD.ORG Tue Jun 7 10:23:21 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7583F16A41C for ; Tue, 7 Jun 2005 10:23:21 +0000 (GMT) (envelope-from markir@paradise.net.nz) Received: from linda-5.paradise.net.nz (bm-5a.paradise.net.nz [202.0.58.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A0DD43D1F for ; Tue, 7 Jun 2005 10:23:20 +0000 (GMT) (envelope-from markir@paradise.net.nz) Received: from smtp-1.paradise.net.nz (smtp-1a.paradise.net.nz [202.0.32.194]) by linda-5.paradise.net.nz (Paradise.net.nz) with ESMTP id <0IHP007F5M6VB9@linda-5.paradise.net.nz> for freebsd-stable@freebsd.org; Tue, 07 Jun 2005 22:23:19 +1200 (NZST) Received: from [192.168.1.11] (218-101-45-144.paradise.net.nz [218.101.45.144]) by smtp-1.paradise.net.nz (Postfix) with ESMTP id 91D2182767 for ; Tue, 07 Jun 2005 22:23:19 +1200 (NZST) Date: Tue, 07 Jun 2005 22:23:16 +1200 From: Mark Kirkwood To: freebsd-stable@freebsd.org Message-id: <42A57594.4030406@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050511) Subject: 5.4R - gcc/gprof profile not showing %time information X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2005 10:23:21 -0000 I profiled a program today, and discovered that the end result seems to be missing information in the '%time' column - it is always zero. Has something changed with respect to obtaining a profile? Any suggestions welcome :-) A simple example follows... $ gcc -g -pg -o test test.c $ ./test $ gprof ./test test.gmon> test.gprof test.c: int main() { int i; for (i=0;i<1000000;i++) { } return 0; } test.gprof: % cumulative self self total time seconds seconds calls ms/call ms/call name 0.0 0.00 0.00 1 0.00 0.00 __cxa_finalize [236] 0.0 0.00 0.00 1 0.00 0.00 __sys___sysctl [237] 0.0 0.00 0.00 1 0.00 0.00 _mcleanup (238) 0.0 0.00 0.00 1 0.00 0.00 _profil [239] 0.0 0.00 0.00 1 0.00 0.00 exit [1] 0.0 0.00 0.00 1 0.00 0.00 moncontrol [2] 0.0 0.00 0.00 1 0.00 0.00 sysctl [3] Index by function name [236] __cxa_finalize [239] _profil [3] sysctl [237] __sys___sysctl [1] exit (238) _mcleanup [2] moncontrol regards Mark