首页 > 其他 > 详细

quickstack is a tool to take call stack

时间:2016-05-15 08:10:53      阅读:177      评论:0      收藏:0      [点我收藏+]

https://github.com/yoshinorim/quickstack

quickstack is a tool to take call stack traces with minimal overheads.

There are a couple of tools to take stack traces such as gdb, pstack, but these tools
have serious overheads. In many cases, target process stops for 0.2-N seconds.
So it is dangerous to use such tools in production environment.
quickstack makes it possible to take stack traces in less than 1 milliseconds. This is
much smaller overhead so you can frequently take stack traces in production environment.

quickstack internally scans stack frames and guesses caller functions.
For 64bit applications, it is highly recommended to build with -fno-omit-frame-pointer.

How to build:
* Install binutils 2.22+ and elfutils-libelf-devel
* Install cmake
* cmake .
* make
* make install

Install dependencies (Ubuntu):
sudo apt-get install binutils-dev
sudo apt-get install elfutils-dev
sudo apt-get install libiberty-dev


Example:
[user$] quickstack -p `pidof mysqld`

 

quickstack is a tool to take call stack

原文:http://www.cnblogs.com/zengkefu/p/5494434.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!