Skip to content

Add more system information as a diagnostics #5464

Closed
@IceSentry

Description

@IceSentry

What problem does this solve or what need does it fill?

When debugging performance it can be helpful to know things like cpu usage and memory usage

What solution would you like?

Add a SystemInformationDiagnosticsPlugin to bevy_diagnostics that queries the cpu usage and memory usage and adds them as a diagnostic.

This plugin could also add the SystemInfo from #5454 as a Res to make this data accessible to other parts of the engine.

What alternative(s) have you considered?

None

Additional context

#5454 added a log on startup to give more information about the system, The same crate used in that PR should be used to query this data each frame.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-DiagnosticsLogging, crash handling, error reporting and performance analysisC-FeatureA new feature, making something new possibleD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions