Profiling on openmoko (or ARM generally)
Gennady Kupava
gb at bsdmn.com
Wed Jun 30 11:00:26 CEST 2010
Hi, mobi phil,
heh, sent again occasionally :)
I am using oprofile. It is excellent profiler, even no need to recompile
anything. It is way better than grof. If you want more details/help/examples you
can find me on irc. Currently i am planning some optimizations based on
profiling data.
Result is something like this (this is for mplayer):
TIMER:0|
samples| %|
------------------
3782 48.7057 vmlinux_b13
2316 29.8261 mplayer
TIMER:0|
samples| %|
------------------
1136 49.0501 libavcodec.so.52.20.1
682 29.4473 libswscale.so.0.7.1
168 7.2539 ld-2.11.2.so
109 4.7064 vmlinux_b13
97 4.1883 mplayer
93 4.0155 libc-2.11.2.so
11 0.4750 libfontconfig.so.1.4.4
5 0.2159 libfreetype.so.6.3.22
4 0.1727 libX11.so.6.3.0
2 0.0864 libgcc_s.so.1
2 0.0864 libpthread-2.11.2.so
2 0.0864 libexpat.so.1.5.2
2 0.0864 libxcb.so.1.1.0
1 0.0432 libdl-2.11.2.so
1 0.0432 libncurses.so.5.7
1 0.0432 libopenal.so.1.12.854
1419 18.2743 Xorg
TIMER:0|
samples| %|
------------------
1376 96.9697 libc-2.11.2.so
31 2.1846 vmlinux_b13
7 0.4933 glamo_drv.so
5 0.3524 Xorg
99 1.2750 bash
TIMER:0|
samples| %|
------------------
45 45.4545 vmlinux_b13
38 38.3838 bash
14 14.1414 libc-2.11.2.so
1 1.0101 xfs
1 1.0101 ld-2.11.2.so
67 0.8628 oprofiled
TIMER:0|
Gennady.
-------------- next part --------------
CPU: CPU with timer interrupt, speed 0 MHz (estimated)
Profiling through timer interrupt
samples % linenr info image name app name symbol name
3782 48.7371 (no location information) vmlinux_b13 vmlinux_b13 /vmlinux_b13
1374 17.7062 memcpy.S:60 libc-2.11.2.so Xorg memcpy
1136 14.6392 (no location information) libavcodec.so.52.20.1 mplayer /usr/lib/libavcodec.so.52.20.1
682 8.7887 (no location information) libswscale.so.0.7.1 mplayer /usr/lib/libswscale.so.0.7.1
109 1.4046 (no location information) vmlinux_b13 mplayer /vmlinux_b13
108 1.3918 dl-lookup.c:82 ld-2.11.2.so mplayer do_lookup_x
45 0.5799 (no location information) vmlinux_b13 bash /vmlinux_b13
43 0.5541 memset.S:25 libc-2.11.2.so mplayer memset
38 0.4897 (no location information) bash bash /bin/bash
37 0.4768 (no location information) vmlinux_b13 oprofiled /vmlinux_b13
31 0.3995 (no location information) vmlinux_b13 Xorg /vmlinux_b13
22 0.2835 (no location information) reiserfs oprofiled /reiserfs
14 0.1804 strchr.c:46 ld-2.11.2.so mplayer index
13 0.1675 dl-lookup.c:132 ld-2.11.2.so mplayer check_match.8383
13 0.1675 vo_x11.c:525 mplayer mplayer draw_slice
13 0.1675 m_config.c:185 mplayer mplayer m_config_add_option
13 0.1675 font_load_ft.c:958 mplayer mplayer read_font_desc_ft
13 0.1675 (no location information) vmlinux_b13 grep /vmlinux_b13
11 0.1418 (no location information) libfontconfig.so.1.4.4 mplayer /usr/lib/libfontconfig.so.1.4.4
9 0.1160 strcmp.c:38 ld-2.11.2.so mplayer strcmp
9 0.1160 (no location information) vmlinux_b13 cat /vmlinux_b13
8 0.1031 dl-load.c:1958 ld-2.11.2.so mplayer _dl_map_object
8 0.1031 skeleton.c:395 libc-2.11.2.so bash __gconv_transform_ascii_internal
8 0.1031 vd_ffmpeg.c:452 mplayer mplayer draw_slice
8 0.1031 input.c:1357 mplayer mplayer mp_input_get_cmd
8 0.1031 (no location information) vmlinux_b13 id /vmlinux_b13
7 0.0902 (no location information) glamo_drv.so Xorg /usr/lib/xorg/modules/drivers/glamo_drv.so
7 0.0902 malloc.c:4765 libc-2.11.2.so mplayer _int_free
7 0.0902 strncpy.c:36 libc-2.11.2.so mplayer strncpy
7 0.0902 mplayer.c:2505 mplayer mplayer main
6 0.0773 (no location information) vmlinux_b13 mawk /vmlinux_b13
5 0.0644 (no location information) Xorg Xorg /usr/bin/Xorg
More information about the community
mailing list