How to build an executable with profiling?
Nathan Whitehorn
nwhitehorn at freebsd.org
Thu Jan 20 19:57:47 UTC 2011
On 01/20/11 12:54, Roman Divacky wrote:
> ok, I sat down and implemented what Hans Ottevanger told me to do :)
>
> http://lev.vlakno.cz/~rdivacky/clang-gprof.patch
>
> This patch does three things:
>
> 1) emits "call .mcount" at the begining of every function body
It's not always called .mcount. See /sys/$ARCH/include/profile.h
-Nathan
More information about the freebsd-toolchain
mailing list