Automate gdb: show backtrace every 10 ms.

Posted by osgx on Stack Overflow See other posts from Stack Overflow or by osgx
Published on 2010-03-25T00:54:59Z Indexed on 2010/03/25 14:53 UTC
Read the original article Hit count: 421

Filed under:
|
|

Hello

I want to write a script for gdb, which will save backtrace (stack) of process every 10 ms. How can I do this?

It can be smth like call graph profiling for 'penniless' (for people, who can't use any sort of advanced profiler).

Yes, there are a lot of advanced profilers. For popular CPUs and for popular OSes. Shark is very impressive and easy to use, but I want to get a basic functionality with such script, working with gdb.

© Stack Overflow or respective owner

Related posts about gdb

Related posts about backtrace