Difference between revisions of "Gprof Tutorial"
Jump to navigation
Jump to search
m (Fix video link to update video consolidate quiz) |
m (Fix numbering of quizzes, replace esoteric programming language in first question, and write short intro text) |
||
Line 3: | Line 3: | ||
{{Hpc_nrw_tutorial_box}} | {{Hpc_nrw_tutorial_box}} | ||
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. | ||
+ | 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. | ||
__TOC__ | __TOC__ | ||
Line 20: | Line 24: | ||
+ C/C++, Fortran, Pascal | + C/C++, Fortran, Pascal | ||
|| True | || True | ||
− | - Haskell, Cobol, | + | - Haskell, Cobol, Whitespace |
|| | || | ||
</quiz> | </quiz> | ||
Line 54: | Line 58: | ||
{{hidden begin | {{hidden begin | ||
− | |title = How should the parameters be when running the instrumented application? | + | |title = 4. How should the parameters be when running the instrumented application? |
}} | }} | ||
<quiz display=simple> | <quiz display=simple> | ||
Line 69: | Line 73: | ||
{{hidden begin | {{hidden begin | ||
− | |title = | + | |title = 5. What is a call graph? |
}} | }} | ||
<quiz display=simple> | <quiz display=simple> | ||
Line 84: | Line 88: | ||
{{hidden begin | {{hidden begin | ||
− | |title = | + | |title = 6. How do you generate a callgraph of a gprof profile? |
}} | }} | ||
<quiz display=simple> | <quiz display=simple> | ||
Line 99: | Line 103: | ||
{{hidden begin | {{hidden begin | ||
− | |title = | + | |title = 7. What is gprof2dot? |
}} | }} | ||
<quiz display=simple> | <quiz display=simple> | ||
Line 114: | Line 118: | ||
{{hidden begin | {{hidden begin | ||
− | |title = | + | |title = 8. Does gprof work with MPI applications? |
}} | }} | ||
<quiz display=simple> | <quiz display=simple> | ||
Line 129: | Line 133: | ||
{{hidden begin | {{hidden begin | ||
− | |title = | + | |title = 9. How much overhead does gprof produce? |
}} | }} | ||
<quiz display=simple> | <quiz display=simple> |
Revision as of 10:20, 20 November 2020
HPC.NRW | |
---|---|
Associated Pages | |
+ | This is an #HPC.NRW course |
HPC Courses | |
1. | Introduction to Linux in HPC |
2. | Gprof Tutorial |
3. | OpenMP in Small Bites
|
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?