Re: [squid-users] 'gprof squid squid.gmon' only shows the initial configuration functions

From: Robert Collins <robertc_at_robertcollins.net>
Date: Wed, 09 Dec 2009 21:04:22 +1100

On Tue, 2009-12-08 at 15:32 -0800, Guy Bashkansky wrote:
> I've built squid with the -pg flag and run it in the no-daemon mode
> (-N flag), without the initial fork().
>
> I send it the SIGTERM signal which is caught by the signal handler, to
> flag graceful exit from main().
>
> I expect to see meaningful squid.gmon, but 'gprof squid squid.gmon'
> only shows the initial configuration functions:

gprof isn't terribly useful anyway - due to squids callback based model,
it will see nearly all the time belonging to the event loop.

oprofile and/or squids built in analytic timers will get much better
info.

-Rob

Received on Wed Dec 09 2009 - 10:04:33 MST

This archive was generated by hypermail 2.2.0 : Wed Dec 09 2009 - 12:00:01 MST