This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Deprecating mtrace?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]