Re: more profiling

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Tue, 19 Sep 2006 22:47:04 +0200

tis 2006-09-19 klockan 21:10 +0300 skrev Andres Kroonmaa:

> Because gprof call graph is determinate, but profile
> information is statistical approximation. For vast
> majority of cases its good enough. For eg. in this
> case it seems that gprof wasn't that much off afterall
> as Adrian found a bug that caused abnormal cleanups.
> Sometimes gprof can produce stats that are misleading.

The gprof manual has some good guidelines on what thresholds to use in
determining if the "self" profile result is meaningful or not. It's in
principle a direct relation to sampling period and reported runtime.

The callgraph based runtime accounting (children, and total including
children) is more difficult as it evenly distributes the run time among
the different call paths going via the function so some paths may get a
heavier weight than they should and others less..

Regards
Henrik

Received on Tue Sep 19 2006 - 14:47:10 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:06 MDT