PGPROF/en: Difference between revisions

Jump to navigation Jump to search
Updating to match new version of source page
(Updating to match new version of source page)
 
(Updating to match new version of source page)
Line 4: Line 4:
There are two profiling modes: Command-line profiling and Visual profiling.   
There are two profiling modes: Command-line profiling and Visual profiling.   


= Quickstart guide =  
= Quickstart guide =
Using PGPROF usually consists of two steps:  
Using PGPROF usually consists of two steps:  
# Data collection: Run the application with profiling enabled.
# Data collection: Run the application with profiling enabled.
Line 24: Line 24:
To get useful information from Pgprof, you first need to compile your code with one of the PGI compilers (<code>pgcc</code> for C, <code>pgc++</code> for C++ , <code>pgfortran</code> for Fortran). A source in Fortran may need to be compiled with the <code>-g</code> flag.
To get useful information from Pgprof, you first need to compile your code with one of the PGI compilers (<code>pgcc</code> for C, <code>pgc++</code> for C++ , <code>pgfortran</code> for Fortran). A source in Fortran may need to be compiled with the <code>-g</code> flag.


== Working in command-line mode ==  
== Working in command-line mode ==
In command-line mode, two distinct commands are used to collect timing data and to analyze it.  
In command-line mode, two distinct commands are used to collect timing data and to analyze it.  


Line 119: Line 119:
* CPU details: shows performance details for the CPU functions
* CPU details: shows performance details for the CPU functions
* The Property tab: shows all the details for a selected function in the timeline window
* The Property tab: shows all the details for a selected function in the timeline window
<br clear=all>


= References =
= References =
38,897

edits

Navigation menu