Using Opreport On A Single Executable - Red Hat ENTERPRISE LINUX 4 System Administration Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

Chapter 40. OProfile
1
0.0038 libwnck-1.so.4.9.0
Each executable is listed on its own line. The first column is the number of samples recorded for the
executable. The second column is the percentage of samples relative to the total number of samples.
The third column is the name of the executable.
Refer to the opreport man page for a list of available command line options, such as the -r option
used to sort the output from the executable with the smallest number of samples to the one with the
largest number of samples.

40.5.2. Using opreport on a Single Executable

To retrieve more detailed profiled information about a specific executable, use opreport:
opreport <mode><executable>
<executable> must be the full path to the executable to be analyzed. <mode> must be one of the
following:
-l
List sample data by symbols. For example, the following is part of the output from running the
command opreport -l /lib/tls/libc-<version>.so:
samples
%
12
21.4286
5
8.9286
4
7.1429
3
5.3571
3
5.3571
3
5.3571
3
5.3571
2
3.5714
2
3.5714
2
3.5714
2
3.5714
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
1
1.7857
The first column is the number of samples for the symbol, the second column is the percentage of
samples for this symbol relative to the overall samples for the executable, and the third column is
the symbol name.
To sort the output from the largest number of samples to the smallest (reverse order), use -r in
conjunction with the -l option.
360
symbol name
__gconv_transform_utf8_internal
_int_malloc
malloc
__i686.get_pc_thunk.bx
_dl_mcount_wrapper_check
mbrtowc
memcpy
_int_realloc
_nl_intern_locale_data
free
strcmp
__ctype_get_mb_cur_max
__unregister_atfork
__write_nocancel
_dl_addr
_int_free
_itoa_word
calc_eclosure_iter
fopen@@GLIBC_2.1
getpid
memmove
msort_with_tmp
strcpy
strlen
vfprintf
write

Advertisement

Table of Contents
loading

Table of Contents