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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Profiling Serial and Shared-Memory Code

  • Raymond J. Spiteri,
  • Kyle Klenk

摘要

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.