add ringbuffer stats output