[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-dev
Subject:    Re: more profiling
From:       Henrik Nordstrom <henrik () henriknordstrom ! net>
Date:       2006-09-19 20:47:04
Message-ID: 1158698824.32122.32.camel () henrik ! localdomain
[Download RAW message or body]


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" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic