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

Commit 1e80b3b7 authored by Lucas Silva's avatar Lucas Silva Committed by Android Build Cherrypicker Worker
Browse files

Add JVM overloads to trace logger constructor

This allows TraceStateLogger to be more easily used within Java code.

Bug: 330902851
Test: built systemui using studio
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:007c2a5e7c8ed60b41960cffc727a840e04cde1e)
Merged-In: I7c78daeba0d9824a0c45d6026f8e3742a41f1e4d
Change-Id: I7c78daeba0d9824a0c45d6026f8e3742a41f1e4d
parent 26905304
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -34,7 +34,9 @@ import android.util.Log
 * This creates a new slice in a perfetto trace only if the state is different than the previous
 * one.
 */
class TraceStateLogger(
class TraceStateLogger
@JvmOverloads
constructor(
    private val trackName: String,
    private val logOnlyIfDifferent: Boolean = true,
    private val instantEvent: Boolean = true,