Skip to content

CPU Profiling

Peter Shih edited this page Aug 16, 2017 · 3 revisions

Considerations

  1. g++ with pg option (deprecated after gcc 6.x)
  2. Visual Studio profiling tool
  3. gperftools

gperftools

Installation

sudo apt-get install google-perftools graphviz

Usage

Integrated gperftools with gcc-7 makefile:

make cpu

Run the computation for a while, and gracefully exit. The result should be opened in a browser (or any other default program to open the svg file)

References

https://wiki.geany.org/howtos/profiling/gperftools

Clone this wiki locally