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

Commit 59d34b59 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Show traces when side fps is shown or hidden (with reasons)

Bug: 262322084
Test: perfetto trace
Change-Id: I1fc36d9af72d529219d6d7742a7efd0bae4f36bc
parent ecfcdcb6
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ import com.android.systemui.flags.Flags
import com.android.systemui.keyguard.domain.interactor.AlternateBouncerInteractor
import com.android.systemui.recents.OverviewProxyService
import com.android.systemui.util.concurrency.DelayableExecutor
import com.android.systemui.util.traceSection
import java.io.PrintWriter
import javax.inject.Inject
import kotlinx.coroutines.CoroutineScope
@@ -211,7 +212,9 @@ constructor(
        requests.add(request)
        mainExecutor.execute {
            if (overlayView == null) {
                traceSection("SideFpsController#show(request=${request.name}, reason=$reason") {
                    createOverlayForDisplay(reason)
                }
            } else {
                Log.v(TAG, "overlay already shown")
            }
@@ -223,7 +226,7 @@ constructor(
        requests.remove(request)
        mainExecutor.execute {
            if (requests.isEmpty()) {
                overlayView = null
                traceSection("SideFpsController#hide(${request.name}") { overlayView = null }
            }
        }
    }