I could be wrong, but I think there are already cases of this.
I’ve seen cases of special key combinations, an option in a menu, or it could be a setting stored in a file on disk.
If the inspector isn’t created / attached to anything then it shouldn’t be receiving callbacks so I think it’s relatively safe in that regard.
I appreciate the feedback and I see your point, I’ll give this some thought. You could approximate total UI paint cost in a single frame by listening to the top-level component but that is only part of the story. Ultimately this wasn’t the focus of the work and I think that would be a separate chunk of work.
The work carried out here mostly came off the back of the component paint refactoring, the demo that was added to demonstrate that work (which in-itself came off the back of a talk I did in Japan last year and later a talk I did for ADC), and this FR: Callback or other mechanism for exposing Component debugging/timing
Maybe all that’s needed for now is an easy way to add some sort of global component listener?
