gprofng-display-gmon1
Convert a gmon profile data to a gprofng experiment
Usage
gprofng display
gmon
[option(s)]
[target
[gmon-file]]
Overview
Reads the gmon.out file and the profiled executable. With the executable, we can reconstruct information about the profiled symbols and the memory map layout. The gmon.out file provides details about the execution duration for each symbol, as well as data used to build the call graph. The profile data is taken from the call graph profile file (gmon.out default) which is created by programs that are compiled with profile arches (i.e., the -pg option of "cc").
For example, this command converts the profile data (gmon.out) for an executable called a.out and stores the data collected in an experiment directory with the name example.er.
$ gprofng display gmon -o example.er ./a.out gmon.out
Options
-
--version -
Print the version number and exit.
-
--help -
Print usage information and exit.
-
-o <exp_name> -
Specify the name for the experiment directory. The name has to end with
.erand may contain an absolute path (e.g. /tmp/experiment.er). An existing experiment with the same name will not be overwritten.
-
-O <exp_name> -
This is the same as the
-ooption, but unlike this option, silently overwrites an existing experiment directory with the same name.
Notes
Any executable in the ELF (Executable and Linkable Format) object format can be used for profiling with gprofng. If target is missing, the default executable name is a.out. If gmon-file is missing, the default profile data file name is gmon.out.