summaryrefslogtreecommitdiff
path: root/py/gc.h
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-22 15:25:25 +0100
committerDamien <damien.p.george@gmail.com>2013-10-22 15:25:25 +0100
commiteefcc79022ee3b506cc067d7b69e123873fc6b19 (patch)
tree40dd5c0e814dfc5227c0afe9a0de1a2d25de9289 /py/gc.h
parent3f69aca2e23c9479320b9de545eae1d3d8983d35 (diff)
Clear ATBs on gc_init; better gc_info.
Diffstat (limited to 'py/gc.h')
-rw-r--r--py/gc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/py/gc.h b/py/gc.h
index e8bb80780..4fe87b830 100644
--- a/py/gc.h
+++ b/py/gc.h
@@ -6,3 +6,14 @@ void gc_collect();
void *gc_alloc(machine_uint_t n_bytes);
machine_uint_t gc_nbytes(void *ptr_in);
void *gc_realloc(void *ptr, machine_uint_t n_bytes);
+
+typedef struct _gc_info_t {
+ machine_uint_t total;
+ machine_uint_t used;
+ machine_uint_t free;
+ machine_uint_t num_1block;
+ machine_uint_t num_2block;
+ machine_uint_t max_block;
+} gc_info_t;
+
+void gc_info(gc_info_t *info);