39 #ifndef _MALLOC_EXTENSION_C_H_ 40 #define _MALLOC_EXTENSION_C_H_ 43 #include <sys/types.h> 46 #ifndef PERFTOOLS_DLL_DECL 48 # define PERFTOOLS_DLL_DECL __declspec(dllimport) 50 # define PERFTOOLS_DLL_DECL 58 #define kMallocExtensionHistogramSize 64 65 int histogram[kMallocExtensionHistogramSize]);
PERFTOOLS_DLL_DECL void MallocExtension_MarkThreadIdle(void)
PERFTOOLS_DLL_DECL int MallocExtension_SetNumericProperty(const char *property, size_t value)
PERFTOOLS_DLL_DECL void MallocExtension_MarkThreadBusy(void)
PERFTOOLS_DLL_DECL int MallocExtension_VerifyAllMemory(void)
MallocExtension_Ownership
PERFTOOLS_DLL_DECL size_t MallocExtension_GetAllocatedSize(const void *p)
PERFTOOLS_DLL_DECL size_t MallocExtension_GetEstimatedAllocatedSize(size_t size)
PERFTOOLS_DLL_DECL int MallocExtension_VerifyArrayNewMemory(const void *p)
PERFTOOLS_DLL_DECL void MallocExtension_ReleaseFreeMemory(void)
PERFTOOLS_DLL_DECL int MallocExtension_MallocMemoryStats(int *blocks, size_t *total, int histogram[kMallocExtensionHistogramSize])
PERFTOOLS_DLL_DECL int MallocExtension_VerifyMallocMemory(const void *p)
PERFTOOLS_DLL_DECL MallocExtension_Ownership MallocExtension_GetOwnership(const void *p)
PERFTOOLS_DLL_DECL void MallocExtension_ReleaseToSystem(size_t num_bytes)
PERFTOOLS_DLL_DECL int MallocExtension_GetNumericProperty(const char *property, size_t *value)
PERFTOOLS_DLL_DECL int MallocExtension_VerifyNewMemory(const void *p)
PERFTOOLS_DLL_DECL void MallocExtension_GetStats(char *buffer, int buffer_length)