From: Keith Packard Date: Sat, 19 Nov 2016 06:57:22 +0000 (-0800) Subject: altos/lisp: Include memory stats for test program X-Git-Tag: 1.7~126 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=1999b2c915bd5b7df70cffa7777e411d3032d2d5 altos/lisp: Include memory stats for test program Signed-off-by: Keith Packard --- diff --git a/src/test/ao_lisp_os.h b/src/test/ao_lisp_os.h index dedcca28..9ff2e1fe 100644 --- a/src/test/ao_lisp_os.h +++ b/src/test/ao_lisp_os.h @@ -24,6 +24,7 @@ #define AO_LISP_POOL_TOTAL 3072 #define AO_LISP_SAVE 1 +#define DBG_MEM_STATS 1 extern int ao_lisp_getc(void); @@ -47,6 +48,8 @@ ao_lisp_os_led(int led) static inline void ao_lisp_os_delay(int delay) { + if (!delay) + return; struct timespec ts = { .tv_sec = delay / 1000, .tv_nsec = (delay % 1000) * 1000000,