diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-07-16 19:01:43 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-07-17 17:15:03 -0700 |
| commit | a1e4814a27713bd08b836cbae2afa9c858bfd4e4 (patch) | |
| tree | a68e5fe0195dc0296cf70ee94eaa124c64409473 /shared-bindings/memorymonitor/AllocationAlarm.c | |
| parent | 518d909b2c20aed5b3ff1ca849731cdadea4ba4c (diff) | |
Get AllocationAlarm working
Diffstat (limited to 'shared-bindings/memorymonitor/AllocationAlarm.c')
| -rw-r--r-- | shared-bindings/memorymonitor/AllocationAlarm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-bindings/memorymonitor/AllocationAlarm.c b/shared-bindings/memorymonitor/AllocationAlarm.c index 836bf7833..71a156f32 100644 --- a/shared-bindings/memorymonitor/AllocationAlarm.c +++ b/shared-bindings/memorymonitor/AllocationAlarm.c @@ -76,6 +76,8 @@ STATIC mp_obj_t memorymonitor_allocationalarm_make_new(const mp_obj_type_t *type return MP_OBJ_FROM_PTR(self); } +// TODO: Add .countdown(count) to skip allocations and alarm on something after the first. + //| def __enter__(self) -> memorymonitor.AllocationAlarm: //| """Enables the alarm.""" //| ... |
