Loading
MM: Add performance tracing to MotionValueCollection
Adds `systrace` markers to the main animation loop within `MotionValueCollection` to improve performance analysis and debugging. This change introduces a new static flag, `MotionValueCollection.isTraceEnabled`, which can be toggled to globally enable or disable tracing for all instances. When enabled, each frame processed within the `withFrameNanos` block will be wrapped in a trace section. This trace includes valuable metadata: - The duration of the frame's computation in microseconds. - The number of currently unstable (actively animating) computations. - The total number of managed computations. Test: Manually tested in the demo app Bug: 392535471 Flag: com.android.systemui.scene_container Change-Id: Icfc7a8338b257e03195438df03aef9393b2cbe49