|
From: Nicholas N. <n.n...@gm...> - 2009-08-05 22:50:11
|
On Thu, Aug 6, 2009 at 2:37 AM, xiaoming gu<xia...@gm...> wrote: > Hi, all. Does anyone know the purpose of the first argument for VG_(malloc)? > The function is with the prototype "extern void* VG_(malloc)(HChar* cc, > SizeT nbytes);". I checked the available tools and only found some magic > strings such as "mc.acb.1". Thanks. It's an identifier used by Valgrind's internal heap profiler, turned on with --profile-heap=yes. It just needs to be a unique string, the exact form doesn't really matter but it would make sense to follow the general pattern of the others. Nick |