debug logs, calculate stat when window is partially full