You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Clear widget rebuild stats table when "Track widget rebuild counts" is turned off #4886
We'll need to make sure we still show the stats in offline mode but seems reasonable. "latest frame" is definitely misleading if you have turned the feature off.
I'd like to pick this up. Before writing anything I wanted to check which behavior you want, because clearing on disable has a couple of side effects in the current code:
RebuildCountModel.clearAllCounts() also drops the per-frame rebuilds, and the Frame Analysis tab reads those. So if you record with tracking on and then turn it off, every earlier frame loses its rebuild table.
toJson() returns null once the per-frame map is empty, so the rebuild stats would be left out of an export made after disabling.
ServiceExtensionManager.vmServiceClosed() resets every extension state to disabled, so a plain "clear when disabled" listener would also fire on disconnect. That needs a guard to keep the stats available for offline review, which is the case @jacob314 mentioned above.
Two options I see:
Clear everything when the setting is turned off by the user (with the disconnect guard). Simple, but loses the Frame Analysis and export data as described.
Keep the data and only stop showing the "Latest frame" column while tracking is off, since that is the part that is misleading. "Overall" and "Selected frame" stay, and the Clear button is still there for anyone who wants an empty table.
I lean towards 2. Either way I'd put the listener in the performance controller rather than in RebuildStatsView, because the setting can also be toggled from the Frame Analysis tab and the "More debugging options" menu before the Rebuild Stats tab is ever built.
Activity
jacob314 commentedon Dec 5, 2022
We'll need to make sure we still show the stats in offline mode but seems reasonable. "latest frame" is definitely misleading if you have turned the feature off.
bubnov commentedon Mar 12, 2023
Hi! How can I find these stats in dev tools? Is it available?
kenzieschmoll commentedon Mar 13, 2023
This feature is under construction - hopefully this will be available soon! FYI @jacob314
MiniSuperDev commentedon Apr 19, 2024
Hi, Is this stats view now available?
Thanks
hkarmoush commentedon Nov 30, 2026
I'd like to pick this up. Before writing anything I wanted to check which behavior you want, because clearing on disable has a couple of side effects in the current code:
RebuildCountModel.clearAllCounts()also drops the per-frame rebuilds, and the Frame Analysis tab reads those. So if you record with tracking on and then turn it off, every earlier frame loses its rebuild table.toJson()returns null once the per-frame map is empty, so the rebuild stats would be left out of an export made after disabling.ServiceExtensionManager.vmServiceClosed()resets every extension state to disabled, so a plain "clear when disabled" listener would also fire on disconnect. That needs a guard to keep the stats available for offline review, which is the case @jacob314 mentioned above.Two options I see:
I lean towards 2. Either way I'd put the listener in the performance controller rather than in
RebuildStatsView, because the setting can also be toggled from the Frame Analysis tab and the "More debugging options" menu before the Rebuild Stats tab is ever built.@kenzieschmoll @srawlins which one would you prefer?