From owner-freebsd-questions Thu Feb 20 6:33:36 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9C9D37B401 for ; Thu, 20 Feb 2003 06:33:34 -0800 (PST) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6F1443F93 for ; Thu, 20 Feb 2003 06:33:33 -0800 (PST) (envelope-from flag@libero.it) Received: from southcross.skynet.org (151.29.207.33) by smtp3.libero.it (6.7.015) id 3E44E96700567EC8 for freebsd-questions@FreeBSD.ORG; Thu, 20 Feb 2003 15:33:32 +0100 Received: by southcross.skynet.org (Postfix, from userid 1001) id D926268EE; Thu, 20 Feb 2003 15:40:43 +0100 (CET) Date: Thu, 20 Feb 2003 15:40:43 +0100 From: Paolo Pisati To: FreeBSD_Questions Subject: Simple question about profiling Message-ID: <20030220144043.GB73452@southcross.skynet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've to confess this my first serious profile session, and i found something really strange (at least for me... =P) [flag@law3 src]$ gprof proto3 [snip] % cumulative self self total time seconds seconds calls ms/call ms/call name 74.4 39.26 39.26 .mcount (83) 6.7 42.82 3.56 111575600 0.00 0.00 checkRule2d [4] 6.6 46.30 3.48 1024 3.39 12.30 buildTree2d [3] 3.8 48.29 1.99 117334464 0.00 0.00 add_tail [6] 3.7 50.25 1.96 117234464 0.00 0.00 rem [7] 1.8 51.18 0.93 117234464 0.00 0.00 rem_head [5] 0.6 51.51 0.33 1600004 0.00 0.00 __qdivrem [13] 0.5 51.75 0.24 800004 0.00 0.00 __svfscanf [9] 0.4 51.96 0.21 9037 0.02 0.09 buildTree1d [10] 0.3 52.14 0.18 800000 0.00 0.00 strtoumax [12] 0.3 52.28 0.14 1078414 0.00 0.00 memset [20] 0.2 52.41 0.12 5658864 0.00 0.00 checkRule1d [21] 0.1 52.47 0.07 250129 0.00 0.00 count [23] 0.1 52.52 0.05 537809 0.00 0.00 malloc_bytes [22 ] 0.1 52.56 0.04 1166299 0.00 0.00 append_lists [25] 0.1 52.59 0.03 2411019 0.00 0.00 new_list [26] 0.1 52.62 0.03 536551 0.00 0.00 calloc [14] 0.0 52.64 0.02 70 0.24 0.42 tree2dHeight [29] [snip] i think this is the beef: what the hell is .mcount?!?! if i read the table correctly, .mcount is the guilty, isn't it? any help or pointer is appreciated, thank you... =) -- Paolo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message