add profiler state for clearing the buffer