>However, the cost seems to include overhead from valgrind itself, such 
>as malloc & other hooks.
>(I see in the call graph that malloc calls "malloc_hook_ini" 
>once with a 
>cost of around 60,000 Ir.
>Having only one a few mallocs in a particluar algorithm this overhead 
>greatly distorts test results.
>
>A second problem are symbol resolutions in the C library. Apparently 
>'_dl_runtime_resolve' is called once for each symbol used from 
>the C lib 
>(such as sprintf).  This is also unwanted overhead.

Are you sure these hooks are from valgrind ?
I think there are rather from glibc and similar, and callgrind properly
shows that your code (indirectly) implies these calls.

(I did a grep for malloc_hook_ini on recent Valgrind sources, and found
no hit in .c or .h files).

Philippe


____
 
This message and any files transmitted with it are legally privileged and 
intended for the sole use of the individual(s) or entity to whom they are 
addressed. If you are not the intended recipient, please notify the sender by 
reply and delete the message and any attachments from your system. Any 
unauthorised use or disclosure of the content of this message is strictly 
prohibited and may be unlawful.
 
Nothing in this e-mail message amounts to a contractual or legal commitment on 
the part of EUROCONTROL, unless it is confirmed by appropriately signed hard 
copy.
 
Any views expressed in this message are those of the sender.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to