diff options
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt b/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt index 6b3dfe1b90ad..2d952385affb 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt +++ b/packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt @@ -1087,7 +1087,12 @@ constructor( inner class StateChangeRunnable(private val state: QSTile.State) : Runnable { override fun run() { - traceSection("QSTileViewImpl#handleStateChanged") { handleStateChanged(state) } + var traceTag = "QSTileViewImpl#handleStateChanged" + if (!state.spec.isNullOrEmpty()) { + traceTag += ":" + traceTag += state.spec + } + traceSection(traceTag.take(Trace.MAX_SECTION_NAME_LEN)) { handleStateChanged(state) } } // We want all instances of this runnable to be equal to each other, so they can be used to |