commit | 8e7e8a92844818afc5d9158d83647d028dd942b4 | [log] [tgz] |
---|---|---|
author | Ryan Zuklie <rzuklie@google.com> | Wed May 03 16:18:59 2023 -0700 |
committer | Ryan Zuklie <rzuklie@google.com> | Thu Jun 01 22:43:00 2023 +0000 |
tree | 8697e394da9f74c87c6c4bf266686b8aec7e5cb4 | |
parent | 12cfa774f1a9512fb7bc620e6a6b271fda3cd239 [diff] |
Try to fix and diagnose Perfetto flush errors. Around 10% of the traces with Nettrace have "traced_final_flush_failed" errors. It is believed that Network Tracing isn't writing enough data to fill one "Chunk" in Perfetto's buffer. Although this should still be saved by Perfetto, it doesn't seem to be. This change records the number of packets read from the ring buffer to understand whether the error coincided with low-data cases. It also tries to flush the data OnStop to potentially fix the issue. Bug: 285411033 Test: flash and run trace (cherry picked from https://android-review.googlesource.com/q/commit:80d705566be6ea8a822eebd088c1f37758fdf0f6) Merged-In: I92c8d2d8d47d1ed123585e1cfdde802d286f120f Change-Id: I92c8d2d8d47d1ed123585e1cfdde802d286f120f