|
From: Philippe W. <phi...@sk...> - 2009-05-21 23:20:40
|
To implement in callgrind/kcachegrind the heap status, I am using the needs_malloc_replacement with the preload mechanism. However, I would like to use this mechanism only when option --collect-alloc=yes is given (to replace the "real" functions only when tracking the heap). So, when --collect-alloc=no, I am not calling VG_(needs_malloc_replacement). However, having a "preload" and not calling VG_(needs_malloc_replacement) does not work: I get debug messages such as: --11913-- VG_USERREQ__CLIENT_CALL1: func=0x0 and then it crashes. Is there a way to "de-activate" the malloc replacement during the command line processing of the tool ? |