From 0b13f3e026c842facf65743450246b15a8c2e064 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 24 Oct 2014 23:12:25 +0100 Subject: py: Improve memory usage debugging; better GC AT dumping. In unix port, mem_info(1) now prints pretty GC alloc table. --- py/gc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/gc.h') diff --git a/py/gc.h b/py/gc.h index fd48d2664..dc276dd2b 100644 --- a/py/gc.h +++ b/py/gc.h @@ -40,7 +40,7 @@ void gc_collect_end(void); void *gc_alloc(mp_uint_t n_bytes, bool has_finaliser); void gc_free(void *ptr); -mp_uint_t gc_nbytes(void *ptr); +mp_uint_t gc_nbytes(const void *ptr); void *gc_realloc(void *ptr, mp_uint_t n_bytes); typedef struct _gc_info_t { -- cgit v1.2.3