summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-18 22:57:22 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:52 -0800
commit1999b2c915bd5b7df70cffa7777e411d3032d2d5 (patch)
tree8482ccb83fc413c0766fec890f9e5f882cba2b8a /src/test
parent129e07ccc9b8a33491a905a91ca6c5b0509aba9c (diff)
altos/lisp: Include memory stats for test program
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ao_lisp_os.h3
1 files changed, 3 insertions, 0 deletions
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,