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

Commit ecaf8dc1 authored by Kean Mariotti's avatar Kean Mariotti
Browse files

IME tracing: use "stall and drop" policy

Adapt ImeTracingPerfettoImpl to use the tracing policy
PERFETTO_DS_BUFFER_EXHAUSTED_POLICY_STALL_AND_DROP.

Flag: EXEMPT trivial
Bug: 418676887
Test: presubmit

Change-Id: I98fcf418d2cda9f4fe4b49ebe82b30d655dc2870
parent 3611e34c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

package com.android.internal.inputmethod;

import static android.tracing.perfetto.DataSourceParams.PERFETTO_DS_BUFFER_EXHAUSTED_POLICY_STALL_AND_ABORT;
import static android.tracing.perfetto.DataSourceParams.PERFETTO_DS_BUFFER_EXHAUSTED_POLICY_STALL_AND_DROP;

import android.annotation.NonNull;
import android.annotation.Nullable;
@@ -55,7 +55,7 @@ final class ImeTracingPerfettoImpl extends ImeTracing {
        DataSourceParams params =
                new DataSourceParams.Builder()
                        .setBufferExhaustedPolicy(
                                PERFETTO_DS_BUFFER_EXHAUSTED_POLICY_STALL_AND_ABORT)
                                PERFETTO_DS_BUFFER_EXHAUSTED_POLICY_STALL_AND_DROP)
                        .setNoFlush(true)
                        .setWillNotifyOnStop(false)
                        .build();