Difference between revisions of "Gprof Tutorial"
Jump to navigation
Jump to search
Line 85: | Line 85: | ||
{ | { | ||
|type="()"} | |type="()"} | ||
− | - | + | - An android app to show incoming callers |
− | + | || | |
− | + | + | + A hierarchy diagram of function calls in a given profile |
− | + | || True | |
− | - | + | - Instructions of how to call for help during emergencies |
− | + | || | |
</quiz> | </quiz> | ||
{{hidden end}} | {{hidden end}} | ||
Line 100: | Line 100: | ||
{ | { | ||
|type="()"} | |type="()"} | ||
− | - | + | - gprof --call-graph |
− | + | || | |
− | - | + | - gprof |
− | || | + | || |
− | + | + | + gprof --graph |
− | || | + | || True |
</quiz> | </quiz> | ||
{{hidden end}} | {{hidden end}} | ||
Line 114: | Line 114: | ||
{ | { | ||
|type="()"} | |type="()"} | ||
− | + | + | + Third party script for call graph visualization via the "dot" library |
− | + | || True | |
− | + | - Gprof feature to export profiles as a pdf | |
− | || Gprof feature to export profiles as a pdf | + | || |
− | + | - A fork of the beta version of gprof2 | |
− | || A fork of the beta version of gprof2 | + | || |
</quiz> | </quiz> | ||
{{hidden end}} | {{hidden end}} | ||
Line 128: | Line 128: | ||
{ | { | ||
|type="()"} | |type="()"} | ||
− | - | + | - No, gprof only works with sequential applications |
− | + | || | |
− | + | - Yes, parallel profiling is the main use case of gprof | |
− | || Yes, parallel profiling is the main use case of gprof | + | || |
− | + | + Yes, but gprof cannot differentiate between individual threads/processes | |
− | || Yes, but gprof cannot differentiate between individual threads/processes | + | || True |
</quiz> | </quiz> | ||
{{hidden end}} | {{hidden end}} | ||
Line 142: | Line 142: | ||
{ | { | ||
|type="()"} | |type="()"} | ||
− | - | + | - None |
− | || | + | || |
− | + | + | + Little |
− | || | + | || True |
− | - | + | - Much |
− | || | + | || |
</quiz> | </quiz> | ||
{{hidden end}} | {{hidden end}} |
Revision as of 13:00, 2 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.
Gprof Introduction + Pascal Example
Quiz
C++ + Fortran Examples
Show gprof in real world examples and introduce call graph.
Quiz
{{hidden begin |title = 3. What is gprof2dot?
{{hidden begin |title = 4. Does gprof work with MPI applications?
{{hidden begin |title = 5. How much overhead does gprof produce?