about summary refs log tree commit diff
path: root/src/base/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/system.h')
-rw-r--r--src/base/system.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/base/system.h b/src/base/system.h
index fdbfe72d..e7c3586f 100644
--- a/src/base/system.h
+++ b/src/base/system.h
@@ -885,7 +885,6 @@ int net_would_block();
 int net_socket_read_wait(NETSOCKET sock, int time);
 
 void mem_debug_dump();
-int mem_allocated();
 
 void swap_endian(void *data, unsigned elem_size, unsigned num);
 
@@ -897,6 +896,15 @@ void dbg_logger_file(const char *filename);
 
 typedef struct
 {
+	int allocated;
+	int active_allocations;
+	int total_allocations;
+} MEMSTATS;
+
+const MEMSTATS *mem_stats();
+
+typedef struct
+{
 	int sent_packets;
 	int sent_bytes;
 	int recv_packets;