From 2645747abcb43997cd79b20042e7c4a4b69b176c Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 5 Aug 2009 22:51:17 +0000 Subject: [PATCH] Document the 'cc' param of VG_(malloc) et al. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10723 --- include/pub_tool_mallocfree.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/pub_tool_mallocfree.h b/include/pub_tool_mallocfree.h index efab2c2318..fc3649fdd9 100644 --- a/include/pub_tool_mallocfree.h +++ b/include/pub_tool_mallocfree.h @@ -35,6 +35,8 @@ // These can be for allocating memory used by tools. // Nb: the allocators *always succeed* -- they never return NULL (Valgrind // will abort if they can't allocate the memory). +// The 'cc' is a string that identifies the allocation point. It's used when +// --profile-heap=yes is specified. extern void* VG_(malloc) ( HChar* cc, SizeT nbytes ); extern void VG_(free) ( void* p ); extern void* VG_(calloc) ( HChar* cc, SizeT n, SizeT bytes_per_elem ); -- 2.47.2