This might be a silly question... but something I'd use to do in the view system (like pre lollipop or something) would be to put a CircularProgressBar on the screen and if it stutters then you know you'd be doing something on the main thread. It was a trivial way to test for jank. This was later changed in views to render on the renderThread but you could disable the renderThread in the manifest or something.
Is there a way to do that in compose? i.e. I just want to put a circular progress bar on the screen and see if some of my background code is causing jank.
11/16/2023, 1:19 PM
11/16/2023, 7:50 PM
Maybe wire up JankStats as a State and display that? Turn the frame metrics into something visible?