Feb 10, 2022
Ah, you are anticipating one of my favorite parts about this API, which I didn't talk about because it's not there yet. I plan to instrument some key AndroidX libraries to inject state, just as you suggest. So ideally, developers will be able to get some basic useful information from JankStats without instrumenting their own code at all.
It's not there yet (in alpha) because we didn't want to create dependencies of other stable libraries on this new library. But by 1.0 we should have at least a couple of these pieces working.