相关疑难解决方法(0)

如何分析在Linux上运行的C++代码?

我有一个在Linux上运行的C++应用程序,我正在优化它.如何确定代码的哪些区域运行缓慢?

c++ unix profiling

1732
推荐指数
12
解决办法
49万
查看次数

在程序执行过程中将 callgrind/valgrind 附加到程序

我使用 Valgrind 通过从头开始运行程序来检测问题。现在我在程序的一个非常特定的时刻遇到了内存/性能问题。不幸的是,没有可行的方法从一开始就可以走捷径到达这个地方。

有没有办法在 c++ 程序( Valgrind/Callgrind )的中途执行中进行检测,例如附加到进程?

已经在这里回答: How use callgrind to profiling only a certain period of programexecution?

c++ valgrind callgrind

2
推荐指数
1
解决办法
2395
查看次数

标签 统计

c++ ×2

callgrind ×1

profiling ×1

unix ×1

valgrind ×1