[oe] profiling howto?

Steffen Sledz sledz at dresearch.de
Wed Feb 2 12:59:25 UTC 2011


Am 02.02.2011 10:54, schrieb Steffen Sledz:
> Has anybody some instructions/hints how to enable profiling
> support for selected libs and/or binaries in OE?

The local.conf.sample does contain this section:

# Uncomment these to build a package such that you can use gprof to profile it.
# NOTE: This will only work with 'linux' targets, not
# 'linux-uclibc', as uClibc doesn't provide the necessary
# object files.  Also, don't build glibc itself with these
# flags, or it'll fail to build.
#
# PROFILE_OPTIMIZATION = "-pg"
# SELECTED_OPTIMIZATION = "${PROFILE_OPTIMIZATION}"
# LDFLAGS =+ "-pg"

This seems to do the work for the complete image.

But is it possible to enable profiling for selected libs and/or binaries only?

Steffen






More information about the Openembedded-devel mailing list