aboutsummaryrefslogtreecommitdiffstats
path: root/man1/sprof.1
diff options
context:
space:
mode:
Diffstat (limited to 'man1/sprof.1')
-rw-r--r--man1/sprof.118
1 files changed, 9 insertions, 9 deletions
diff --git a/man1/sprof.1 b/man1/sprof.1
index 900190d4ab..9e40f7d424 100644
--- a/man1/sprof.1
+++ b/man1/sprof.1
@@ -41,7 +41,7 @@ If the profiling data pathname is omitted, then
.B sprof
will attempt to deduce it using the soname of the shared object,
looking for a file with the name
-.IR <soname>.profile
+.I <soname>.profile
in the current directory.
.SH OPTIONS
The following command-line options specify the profile output
@@ -67,7 +67,7 @@ The following additional command-line options are available:
.BR \-? ", " \-\-help
Display a summary of command-line options and arguments and exit.
.TP
-.BR \-\-usage
+.B \-\-usage
Display a short usage message and exit.
.TP
.BR \-V ", " \-\-version
@@ -102,9 +102,9 @@ main(int argc, char *argv[])
.in
.PP
The functions
-.IR x1()
+.IR x1 ()
and
-.IR x2()
+.IR x2 ()
are defined in the following source file that is used to
construct the shared object:
.PP
@@ -188,7 +188,7 @@ $ \fBldd prog\fP
.PP
In order to get profiling information for the shared object,
we define the environment variable
-.BR LD_PROFILE
+.B LD_PROFILE
with the soname of the library:
.PP
.in +4n
@@ -198,7 +198,7 @@ $ \fBexport LD_PROFILE=libdemo.so.1\fP
.in
.PP
We then define the environment variable
-.BR LD_PROFILE_OUTPUT
+.B LD_PROFILE_OUTPUT
with the pathname of the directory where profile output should be written,
and create that directory if it does not exist already:
.PP
@@ -234,7 +234,7 @@ libdemo.so.1.profile
.in
.PP
We then use the
-.BR "sprof \-p"
+.B sprof \-p
option to generate a flat profile with counts and ticks:
.PP
.in +4n
@@ -253,7 +253,7 @@ Each sample counts as 0.01 seconds.
.in
.PP
The
-.BR "sprof \-q"
+.B sprof \-q
option generates a call graph:
.PP
.in +4n
@@ -284,7 +284,7 @@ are outside of the profiled object (in this example, these are instances of
.IR main() ).
.PP
The
-.BR "sprof \-c"
+.B sprof \-c
option generates a list of call pairs and the number of their occurrences:
.PP
.in +4n