altos/lisp: Include memory stats for test program
authorKeith Packard <keithp@keithp.com>
Sat, 19 Nov 2016 06:57:22 +0000 (22:57 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 20 Feb 2017 19:16:52 +0000 (11:16 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
src/test/ao_lisp_os.h

index dedcca28f7e5b051bfb287f79b7116c0fb3e6431..9ff2e1feb71cafb65ce1a8445b3dc49d8be731f8 100644 (file)
@@ -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,