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

Commit 007c2a5e authored by Lucas Silva's avatar Lucas Silva
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
Change-Id: I7c78daeba0d9824a0c45d6026f8e3742a41f1e4d
parent 50a66a22
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,