Added a leak detective method to report current memory usage with backtraces

This commit is contained in:
Martin Willi
2011-05-16 15:22:21 +02:00
parent f37e8252a3
commit fce3b5c3ba
2 changed files with 101 additions and 0 deletions
+7
View File
@@ -42,6 +42,13 @@ struct leak_detective_t {
*/
void (*report)(leak_detective_t *this, bool detailed);
/**
* Report current memory usage to out.
*
* @param out target to write usage report to
*/
void (*usage)(leak_detective_t *this, FILE *out);
/**
* Destroy a leak_detective instance.
*/