Profiling Serial and Shared-Memory Code
摘要
Once a program is working as expected, we can shift our focus to performance optimization. One common way to improve the performance of a program is to identify bottlenecks in its execution. The method of identifying how a code spends its time is called profiling. In this chapter, we introduce two tools to help profile programs.