Difference between revisions of "Gprof Tutorial"
Jump to navigation
Jump to search
m (Marc-andre-hermanns-bc32@rwth-aachen.de moved page Gprof Tutorial to Gprof Tutorial: Adapt to common spelling of Gprof) |
m (Remove initial blank lines and infobox to HPC.NRW tutorials) |
||
Line 1: | Line 1: | ||
− | [[Category:Tutorials]] [[Category:Basics]] | + | [[Category:Tutorials]] [[Category:Basics]]<nowiki /> |
− | [[Category:Tutorials | | + | [[Category:Tutorials | Gprof Tutorial]]<nowiki /> |
− | + | ||
Gprof is a free and easy-to-use profiler. | Gprof is a free and easy-to-use profiler. | ||
Profiling applications gives valuable insights into the program structure. | Profiling applications gives valuable insights into the program structure. |
Revision as of 13:47, 20 November 2020
Gprof is a free and easy-to-use profiler. Profiling applications gives valuable insights into the program structure. It exposes performance bottlenecks and points to sections of the code where optimization is most effective.
This tutorial covers the necessary basics to get started with gprof.
Quiz
1. What lanuages can Gprof profile?
2. How does gprof profiles an application?
3. What compiler flag is used to instrument the application?
4. How should the parameters be when running the instrumented application?
5. What is a call graph?
6. How do you generate a callgraph of a gprof profile?
7. What is gprof2dot?
8. Does gprof work with MPI applications?
9. How much overhead does gprof produce?