Valgrind callgrind profile 多线程程序 命令

来源:互联网 发布:淘宝橱窗在什么位置 编辑:程序博客网 时间:2024/06/16 08:29

一句命令


valgrind --tool=callgrind --separate-threads=yes your_app your_app_opertion

这个命令执行结束后会产生   总线程数+1 个profile结果。


用kcachegrind打开没有线程编号的那个可以看到所有线程的执行情况。


原创粉丝点击