Option to skip slow addr2line resolution in leak-detective
This commit is contained in:
@@ -23,6 +23,8 @@
|
||||
|
||||
typedef struct leak_detective_t leak_detective_t;
|
||||
|
||||
#include <library.h>
|
||||
|
||||
/**
|
||||
* Leak detective finds leaks and bad frees using malloc hooks.
|
||||
*
|
||||
@@ -33,6 +35,13 @@ typedef struct leak_detective_t leak_detective_t;
|
||||
*/
|
||||
struct leak_detective_t {
|
||||
|
||||
/**
|
||||
* Report leaks to stderr.
|
||||
*
|
||||
* @param detailed TRUE to resolve line/filename of leak (slow)
|
||||
*/
|
||||
void (*report)(leak_detective_t *this, bool detailed);
|
||||
|
||||
/**
|
||||
* Destroy a leak_detective instance.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user