Linux Debug tools
来源:互联网 发布:js api 编辑:程序博客网 时间:2024/06/05 06:08
valgrind– a suite of tools for debugging and profiling programs
Very powerful tool to debug linux program,just for x86 platform
strace -trace system calls and signals
In the simplest case strace runs thespecified command until it exits. It intercepts and records the system calls which are called by a process and the signalswhich are received by a process. The name of each system call, itsarguments and its return value are printed on standard error or to the file specifiedwith the -o option.
pstack -print a stack trace of a running process
It’s often used to check the stack of hungprocess.
mtrace, muntrace - malloc debugging
The function mtrace() installs handlers for malloc(), realloc() and free(). The functionmuntrace() disables these handlers.
The environment variable MALLOC_TRACE defines a file where mtrace() writes itsoutput. This file must be writable to the user or mtrace()will do nothing. If the file is not empty it will be truncated.
Usage: call the two function before and after the code you want to pay attention on.
- Linux Debug tools
- Linux debug tools
- linux debug tools
- Linux Debug tools
- linux-------debug tools ---printk level
- JavaScript debug and tools
- Android Debug Tools
- windows debug tools
- debug tools:perf
- siebel tools debug配置
- gstreamer debug tools
- [Debug]GNU tools
- [django]django-debug-tools
- opengl debug tools
- django-debug-tools 使用
- Reverse Engineering and Debug Tools
- Debug Tools for xp win7
- Memory,CPU,IO Debug Tools
- Python 编程笔记(二)
- CentOS6.4下Mysql数据库的安装与配置
- 2017年含金量最高的机器学习技能或知识有哪些? 翻译 2017年10月20日 14:22:44 标签: 机器学习 / quora 7504 原文:As of 2017, what set of
- java链接mysql数据库
- JS Math数学函数中一些常用的方法
- Linux Debug tools
- xtjc
- nginx+gunicorn+django部署
- C++定义类时,为什么不能在类中声明自身类型的成员变量?
- 圆的周长与面积
- VM虚拟机上安装Eclipse和Hadoop上文件命令操作的java代码实现
- Top k Largest Numbers II
- Qt窗体透明
- C++分析——常用技巧(二)