library/src/memory_profiling/BP_LibraryMemoryProfiling.cc
// This must be called once per application run.  It initializes
// semaphores and insures global data is in the right configuration
// before any allocations are performed.  Not calling this function
// can result in undefined behavior.
This must be called once per application run.  It initializes
semaphores and insures global data is in the right configuration
before any allocations are performed.  Not calling this function
can result in undefined behavior.
This must be called once per application run . It initializes semaphores and insures global data is in the right configuration before any allocations are performed . Not calling this function can result in undefined behavior .
BP_ERROR_T BP_InitMemProfilerSubsystem
(
	size_t log_chunk_min_size,
	size_t diag_bpstrdup,
	size_t diag_bpstrndup,
	size_t diag_bprealloc,
	size_t diag_bpmalloc,
	size_t diag_bpcalloc,
	size_t diag_bpfree
)
{
	if(!BP_GLOBAL_MEMPROF_HASH_TABLE_INIT_OK)
			return ERR_FAILURE;
	BP_GLOBAL_MEMPROF_HASH_TABLE_INIT;
	return ERR_SUCCESS;
}
BP_ERROR_T BP_InitMemProfilerSubsystem ( size_t log_chunk_min_size , size_t diag_bpstrdup , size_t diag_bpstrndup , size_t diag_bprealloc , size_t diag_bpmalloc , size_t diag_bpcalloc , size_t diag_bpfree ) { if ( ! BP_GLOBAL_MEMPROF_HASH_TABLE_INIT_OK ) return ERR_FAILURE ; BP_GLOBAL_MEMPROF_HASH_TABLE_INIT ; return ERR_SUCCESS ; }
This must be called once per application run.
This must be called once per application run .
// only init if no init has already occured // initialize the hash table // return indicating success