Option to skip slow addr2line resolution in leak-detective

This commit is contained in:
Martin Willi
2010-05-20 17:37:18 +02:00
parent 36c1650b19
commit 091d178060
7 changed files with 80 additions and 53 deletions
+9
View File
@@ -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.
*/