Closed GoogleCodeExporter closed 9 years ago
Is there any reason why you are not just using the standard method for running
the cpu profiler? A patch was added recently to the main trunk allow you to
have better control over turning the cpu profiler on/off at runtime without
having to instrument your code. Refer to "Running the Code(2)" below:
http://gperftools.googlecode.com/svn/trunk/doc/cpuprofile.html
Original comment by chapp...@gmail.com
on 23 Dec 2012 at 3:03
Yes, at first, I add a signal handler to call ProfilerStart/Stop operation just
like the way mentioned in "Running the Code(2)".
( Btw, the patch for turning on/off at runtime was submitted by me:) )
But when the program crashed, I worried about it is the signal handler was
executed in an improper context that causes the crash. So I create a new thread
to call the ProfilerStart/Stop operation. But unfortunately and fortunately
it's not the case.
Unfortunately for my issue is still unascertainable.
Fortunately for this is not a bad case for the "Running the Code(2)" usage.
Original comment by qifa.z...@gmail.com
on 21 Jan 2013 at 6:31
Please try patch at
https://github.com/alk/gperftools/commit/2d061481ecff44bddd21f9d862ba9878ee76989
9
I haven't had any problems like that but given it's similar to issue 66 I hope
it will help.
Original comment by alkondratenko
on 19 May 2013 at 5:03
Hm. Another rhel 4 user.
Any news? I believe my patch does address this problem.
Original comment by alkondratenko
on 7 Jul 2013 at 12:08
Thanks for advice, using libunwind-0.99-beta instead of version 1.0.1 solved my
problem.
When I encounter this problem once more, I will try your patch:)
I think this issue can be merged into issue 66.
Original comment by qifa.z...@gmail.com
on 12 Jul 2013 at 5:21
Looked at gdb.out and found that libunwind died unwinding signal frame. So my
patch for issue 66 should actually help.
Original comment by alkondratenko
on 30 Aug 2013 at 2:58
is this patch committed to trunk?
Original comment by surajn.v...@gmail.com
on 16 Oct 2013 at 8:56
[deleted comment]
yes
Original comment by alkondratenko
on 16 Oct 2013 at 3:58
Original issue reported on code.google.com by
qifa.z...@gmail.com
on 21 Sep 2012 at 11:02Attachments: