-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Improve bevy_ecs
inspectability and add debugging methods.
#17331
base: main
Are you sure you want to change the base?
Improve bevy_ecs
inspectability and add debugging methods.
#17331
Conversation
Example still doesn't work, but it's a start.
@@ -0,0 +1,115 @@ | |||
//! In this example, we use a system to print diagnostic information about the world. |
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.
It might be good to elaborate more on this. For example, what diagnostic info do we get and why is this useful to see?
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.
I mostly get the functionality. I think the docs could use some work. But maybe that can be done in a different PR? Ill approve.
You might want to add some PR tags like ‘needs review’ and then request some people like Alice to see it if you can. That way other people can find it easier |
I don't think I have permission to do either of those, unless I am missing something. |
My attempt at adopting #7758.
Solution
len
,is_empty
, anditer
methods toBundle
.World
,Schedules
,Dag
, andComponentId
.Schedules
andWorld
also include adiagnose_with_flattened
method that includes a flattened version of the dependancy graph. This was moved to a separate method as getting the flattened graph requires mutable access.Example output:
This is an example output for
World::diagnose_with_flattened
: