oops, DEBUG was left on in buffer.c

argh, this was burning a lot of CPU for no reason

added a thing to warn if this is left on again
This commit is contained in:
John Cupitt 2015-12-14 14:06:16 +00:00
parent 66a6a96c61
commit 3d163bb4e5

View File

@ -52,8 +52,8 @@
/*
#define DEBUG_VERBOSE
#define DEBUG_CREATE
*/
#define DEBUG
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
@ -68,7 +68,7 @@
#include <vips/thread.h>
#ifdef DEBUG
/* Track all regions here for debugging.
/* Track all buffers here for debugging.
*/
static GSList *vips__buffer_all = NULL;
#endif /*DEBUG*/
@ -608,6 +608,14 @@ vips__buffer_init( void )
if( buffer_cache_max_reserve < 1 )
printf( "vips__buffer_init: buffer reserve disabled\n" );
#ifdef DEBUG
printf( "vips__buffer_init: DEBUG enabled\n" );
#endif /*DEBUG*/
#ifdef DEBUG_CREATE
printf( "vips__buffer_init: DEBUG_CREATE enabled\n" );
#endif /*DEBUG_CREATE*/
}
void