Presumably what you want is to track the systime of an allocation as part of
the allocated chunk later to be retrieved during leak_check(), and print
it?.

The structure "MC_Chunk" in memcheck/mc_include.h is (I think) allocated
every time a malloc-like call is replaced by MC_(new_block). You could
insert a timer there as part of the allocation and later correlate it with a
leak detection? I'm not sure how memcheck works internally or where it
stores the info for a particular leak once it finds it but this may be a
good place to start looking. Hopefully this was more helpful than not.
-Tommy








--
View this message in context: 
http://valgrind.10908.n7.nabble.com/time-stamp-of-memory-allocation-tp44081p44084.html
Sent from the Valgrind - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to