Made queuebuf statistics configurable, and off by default

This commit is contained in:
adamdunkels 2010-02-08 21:10:32 +00:00
parent 8ec88e2fcb
commit 2eba08e8f6

View file

@ -33,7 +33,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: queuebuf.c,v 1.15 2009/10/19 21:28:59 adamdunkels Exp $
* $Id: queuebuf.c,v 1.16 2010/02/08 21:10:32 adamdunkels Exp $
*/
/**
@ -84,7 +84,10 @@ MEMB(refbufmem, struct queuebuf_ref, QUEUEBUF_REF_NUM);
#define PRINTF(...)
#endif
#define QUEUEBUF_STATS 1
#ifdef QUEUEBUF_CONF_STATS
#define QUEUEBUF_STATS QUEUEBUF_CONF_STATS
#endif /* QUEUEBUF_CONF_STATS */
#if QUEUEBUF_STATS
uint8_t queuebuf_len, queuebuf_ref_len, queuebuf_max_len;
#endif /* QUEUEBUF_STATS */