Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 768cead5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Extend Perfetto data source parameters" into main

parents a9ad3d5f 59842ce5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ public class DataSourceParams {
    @IntDef(value = {
        PERFETTO_DS_BUFFER_EXHAUSTED_POLICY_DROP,
        PERFETTO_DS_BUFFER_EXHAUSTED_POLICY_STALL_AND_ABORT,
        PERFETTO_DS_BUFFER_EXHAUSTED_POLICY_STALL_AND_DROP
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface PerfettoDsBufferExhausted {}
@@ -46,6 +47,11 @@ public class DataSourceParams {
    // after a while.
    public static final int PERFETTO_DS_BUFFER_EXHAUSTED_POLICY_STALL_AND_ABORT = 1;

    // If the data source runs out of space when trying to acquire a new chunk,
    // it will stall, retry and eventually drop data if a free chunk is not
    // acquired after a few seconds.
    public static final int PERFETTO_DS_BUFFER_EXHAUSTED_POLICY_STALL_AND_DROP = 2;

    public static DataSourceParams DEFAULTS = new DataSourceParams.Builder().build();

    private DataSourceParams(@PerfettoDsBufferExhausted int bufferExhaustedPolicy,