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
signature.asc
Description: Detta är en digitalt signerad meddelandedel
