* Adding malloc_debug.h that exposes the malloc_debug API.
* Moving some functions around, removing and adding others for the public API. I've written a blog post at haiku-os.org to go as documentation for this introducing the API and the other helpful bits. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35431 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright 2010, Haiku Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef MALLOC_DEBUG_H
|
||||
#define MALLOC_DEBUG_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern status_t heap_debug_start_wall_checking(int msInterval);
|
||||
extern status_t heap_debug_stop_wall_checking();
|
||||
|
||||
extern void heap_debug_set_paranoid_validation(bool enabled);
|
||||
extern void heap_debug_validate_heaps();
|
||||
extern void heap_debug_validate_walls();
|
||||
|
||||
extern void heap_debug_dump_allocations(bool statsOnly, thread_id thread);
|
||||
extern void heap_debug_dump_heaps(bool dumpAreas, bool dumpBins);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* MALLOC_DEBUG_H */
|
||||
Reference in New Issue
Block a user