问题描述
您是否使用过任何像Intel Vtune分析器这样的配置工具?
您对Linux和Windows上的C ++多线程应用程序有何建议?我主要对缓存未命中,内存使用率,内存泄漏和CPU使用率感兴趣.
我使用valgrind(仅在UNIX上),但主要用于查找内存错误和泄漏.
以下是多线程应用程序的良好工具.您可以尝试评估版.
编辑:英特尔线程检查器可用于诊断数据争用,死锁,停顿的线程,废弃的锁等.请耐心分析结果,因为这很容易引起混淆. /p>
一些提示:
- 禁用不需要的功能.(在识别死锁的情况下,可以禁用数据争用,反之亦然.)
- 根据需要使用检测级别. "All Function"和"Full Image"等级别用于数据争用,而"API Imports"可用于死锁检测)
- 经常使用上下文相关菜单诊断帮助".
Have you used any profiling tool like Intel Vtune analyzer?
What are your recommendations for a C++ multi threaded application on Linux and windows? I am primarily interested in cache misses, memory usage, memory leaks and CPU usage.
I use valgrind (only on UNIX), but mainly for finding memory errors and leaks.
Following are the good tools for multithreaded applications. You can try evaluation copy.
- Runtime sanity check tool
- Thread Checker -- Intel Thread checker / VTune, here
- Memory consistency-check tools (memory usage, memory leaks) - Memory Validator, here
- Performance Analysis. (CPU usage) - AQTime , here
EDIT: Intel thread checker can be used to diagnose Data races, Deadlocks, Stalled threads, abandoned locks etc. Please have lots of patience in analyzing the results as it is easy to get confused.
Few tips:
- Disable the features that are not required.(In case of identifying deadlocks, data race can be disabled and vice versa.)
- Use Instrumentation level based on your need. Levels like "All Function" and "Full Image" are used for data races, where as "API Imports" can be used for deadlock detection)
- use context sensitive menu "Diagnostic Help" often.
这篇关于对C ++多线程应用程序进行性能分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!