Closed GoogleCodeExporter closed 9 years ago
You're probably experiencing
https://code.google.com/p/gperftools/issues/detail?id=335
Original comment by alkondratenko
on 27 May 2014 at 7:28
Thanks for a quick reply.
The scenario in the attachment is bit different than me. When I write a sample
code that returns from main function profiling works perfectly.
However, I am trying to profile a server in which code execution never reach to
the end of "main()" function. The server runs continuously spawning threads.
Do we have to implement something like signal handler to hand kill signal to
flush the profiler data?
Original comment by gaurav...@gmail.com
on 28 May 2014 at 6:27
I don't think you need to do anything special to hand-flush profiler data. Are
you really sure you're not being affected by "gperftools profiler only profiles
main thread by default" ? You mention threads and unless you register all of
them via ProfilerRegisterThread you should be affected by that issue.
Original comment by alkondratenko
on 28 May 2014 at 5:13
Indeed your case is different. ProfilerFlush seems to be the call you need.
Original comment by alkondratenko
on 5 Aug 2014 at 6:26
Assuming it's ProfilerFlush that you needed here. Sorry for confusion.
Original comment by alkondratenko
on 5 Aug 2014 at 6:48
Original issue reported on code.google.com by
gaurav...@gmail.com
on 27 May 2014 at 4:20