added allocStats() in debug mode to know where the buffers have been allocated