summaryrefslogtreecommitdiff
path: root/shared-module/memorymonitor/__init__.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-07-16 19:01:43 -0700
committerScott Shawcroft <scott@tannewt.org>2020-07-17 17:15:03 -0700
commita1e4814a27713bd08b836cbae2afa9c858bfd4e4 (patch)
treea68e5fe0195dc0296cf70ee94eaa124c64409473 /shared-module/memorymonitor/__init__.c
parent518d909b2c20aed5b3ff1ca849731cdadea4ba4c (diff)
Get AllocationAlarm working
Diffstat (limited to 'shared-module/memorymonitor/__init__.c')
-rw-r--r--shared-module/memorymonitor/__init__.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared-module/memorymonitor/__init__.c b/shared-module/memorymonitor/__init__.c
index 4c24c2587..6cb424153 100644
--- a/shared-module/memorymonitor/__init__.c
+++ b/shared-module/memorymonitor/__init__.c
@@ -32,3 +32,8 @@ void memorymonitor_track_allocation(size_t block_count) {
memorymonitor_allocationalarms_allocation(block_count);
memorymonitor_allocationsizes_track_allocation(block_count);
}
+
+void memorymonitor_reset(void) {
+ memorymonitor_allocationalarms_reset();
+ memorymonitor_allocationsizes_reset();
+}