[RFC] Deprecating mtrace?
Ondřej Bílka
neleai@seznam.cz
Mon Nov 4 10:13:00 GMT 2013
On Mon, Nov 04, 2013 at 10:44:48AM +0100, Florian Weimer wrote:
> On 11/04/2013 10:34 AM, OndÅej BÃlka wrote:
>
> >$ time valgrind gcc -O3 m.c -fPIC -shared
>
> This runs valgrind on the compiler driver.
>
> >LD_PRELOAD=./m.so MALLOC_TRACE=x time gcc -O3 m.c -fPIC -shared
>
> This enables mtrace for the compiler driver and compiler, assembler,
> and linker.
>
I should notice that it is odd that valgrind is faster expected.
This changes situation as frequent forks slow valgrind down.
valgrind --trace-children=yes gcc -O3 m3.c -fPIC -shared
real 0m20.255s
user 0m18.953s
sys 0m1.216s
still for big files performance is comparable.
valgrind --trace-children=yes gcc -O3 iconvdata/big5.c
real 0m51.237s
user 0m49.607s
sys 0m1.424s
More information about the Libc-alpha
mailing list