Work with debugger trace buffer.
IDA memorizes various types of trace events in a circular buffer: instruction tracing, function call and return, breakpoint access ...