simpleperf: Delay processing ETM data until the buffer is half full
When using --decode-etm, the main thread is busy processing ETM data
and can miss flushing ETM data. To fix this, we can delay processing
ETM data after recording.
This patch triggers ETM data processing when the buffer is at least
half full. In the default configuration, the buffer is large enough
to hold ETM data for several seconds. So effectively, this delays
processing ETM data after recording.
Bug: 336375740
Test: run simpleperf_unit_test
Change-Id: Ib892aeea402773b1cab785f2c14886bb9f96d851
2 files changed