-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix issues in log_diagnostics example #18652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issues in log_diagnostics example #18652
Conversation
7857795
to
038fb7b
Compare
Hmm it looks like there should be render diagnostics, I'll try to figure out why it doesn't print anything and add it back. |
I hate commented out code T_T Thanks for fixing this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should really have the render diagnostic plugin too
I re-added it and modified the example so it actually prints something. Without anything drawn it did nothing which just made it's inclusion in the example confusing. |
# Objective Adopts / builds on top of #18435. The `log_diagnostics` example has bit-rotted and accumulated multiple issues: - It didn't explain the ordering constraint on DefaultPlugins, as noted by the original PR - Apparently `AssetCountDiagnosticsPlugin` no longer exists (?!). I couldn't figure out when or why it was removed, maybe it got missed in Assets v2? - The comments didn't explain what kind of info you get by the various plugins, making you do work to figure it out - ~As far as I can tell `RenderDiagnosticsPlugin` currently doesn't register any diagnostics in the traditional sense, but is only focused on rendering spans? At least it doesn't print anything extra when added for me, so having it here is misleading.~ It didn't print anything because there was nothing to render in this example ## Solution - Make all plugins be commented in to prevent further bit-rot - Remove reference to the missing plugin - Add extra comments describing the diagnostics in more detail - Add something to render so we get render diagnostics ## Testing Run the example, see relevant diagnostics printed out
Objective
Adopts / builds on top of #18435.
The
log_diagnostics
example has bit-rotted and accumulated multiple issues:AssetCountDiagnosticsPlugin
no longer exists (?!). I couldn't figure out when or why it was removed, maybe it got missed in Assets v2?As far as I can tellIt didn't print anything because there was nothing to render in this exampleRenderDiagnosticsPlugin
currently doesn't register any diagnostics in the traditional sense, but is only focused on rendering spans? At least it doesn't print anything extra when added for me, so having it here is misleading.Solution
Testing
Run the example, see relevant diagnostics printed out