Increase the buffer size allocated to the "small" buffer.
With a ratio of 1/32 of the total buffer size traces were reporting
that the "small" buffer was not large enough. Increasing the ratio
to 1/8 seems to help.
Bug: 370730027
Test: Take some traces and check traced_buf_bytes_overwritten[1]
in the "Info and stats" report after loading the trace.
Change-Id: Idb060b449d496a13141e3f6343d256fcf07a94c2
diff --git a/src_common/com/android/traceur/PerfettoUtils.java b/src_common/com/android/traceur/PerfettoUtils.java
index d456fdd..02962c9 100644
--- a/src_common/com/android/traceur/PerfettoUtils.java
+++ b/src_common/com/android/traceur/PerfettoUtils.java
@@ -63,7 +63,7 @@
// The total amount of memory allocated to the two target buffers will be divided according to a
// ratio of (BUFFER_SIZE_RATIO - 1) to 1.
- private static final int BUFFER_SIZE_RATIO = 32;
+ private static final int BUFFER_SIZE_RATIO = 8;
private static final int SYSTEM_INFO_BUFFER_SIZE_KB = 512;