Search squid archive

'gprof squid squid.gmon' only shows the initial configuration functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:

                                  called/total       parents
index  %time    self descendents  called+self    name           index
                                  called/total       children
                                                     <spontaneous>
[1]     63.4    0.17        0.00                 _mcount [1]
-----------------------------------------------
                0.00        0.10       1/1           _start [3]
[2]     36.0    0.00        0.10       1         main [2]
                0.00        0.10       1/1           parseConfigFile [4]
<...>
-----------------------------------------------
                                                     <spontaneous>
[3]     36.0    0.00        0.10                 _start [3]
                0.00        0.10       1/1           main [2]
-----------------------------------------------
                0.00        0.10       1/1           main [2]
[4]     36.0    0.00        0.10       1         parseConfigFile [4]
                0.00        0.09       1/1           readConfigLines [5]
                0.00        0.00     169/6413        parse_line [6]
...
========================

System info:

# uname -m -r -s
FreeBSD 6.2-RELEASE-p9 amd64

# gcc -v
Using built-in specs.
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060305


There are 7 fork()s for unlinkd/diskd helpers.  Can these fork()s
affect profiling info?

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux