2012-10-26 55 views
3

我要分析我的多线程C++应用程序,并发现它的瓶颈。问题是:我需要看到挂钟配置文件。我已经使用oprofileperf。没有人能为我提供这样的信息。你使用什么工具来分析你的C++应用程序的挂钟?

我用perf record -g -e sched:sched_stat_sleep <cmd>perf record下降与SIGFPE异常。这让我很生气。

Valgrind不适合我,因为我使用了fanotify_mark系统调用,这个工具没有实现。

我不知道谷歌的perftools可以做挂钟分析 - 我还没有看到他们的文档中的任何信息。

任何人都可以建议吗?谢谢。

+0

重复的http://stackoverflow.com/questions/2803930/get-gprof-to-profile-based-on-wall-clock -时间 ? – simonc

+1

在我看来,这不是一个愚蠢的做法,因为它专注于'gprof',但其中的一个答案可能确实有助于:http://stackoverflow.com/a/9206184/694576 – alk

+0

如果您关注@ alk's(Thank you!)链接及以后,你会发现也http://stackoverflow.com/a/378024/1741542,http://stackoverflow.com/a/927773/1741542和http://poormansprofiler.org/ –

回答

相关问题