DENX . Training2 . LddProfiling

5.4.4. Profiling techniques

simple session (multiply example taken from [1])

# initalize oprof
$ opcontrol --init

# where's our kernel?
$ opcontrol --vmlinux=/tmp/vmlinux

# clear old data
$ opcontrol --reset

# available events?
$ opcontrol -l

# start daemon and start collecting data
$ opcontrol --start

# run application
$ while ./multiply; do ./multiply; echo -n .; done
......... 

# dump data to daemon
$ opcontrol --dump

# stop daemon
$ opcontrol --stop

# examine
$ opcontrol -l ./multiply

# annotate
$ opannotate -s ./multiply

----- Revision r1.1 - 24 Jul 2008 - 09:07 - MarkusKlotzbuecher
Copyright © 2002-2019 by DENX Software Engineering