renamed thread_buffer to trace_buffer