bevy/crates/bevy_diagnostic/src
onbjerg 1525dff7ad
Add max_history_length to EntityCountDiagnosticsPlugin (#20085)
# Objective

I was building out a diagnostics panel in egui when I noticed that I
could specify the max history length for the
`FrameTimeDiagnosticsPlugin`, but not for the
`EntityCountDiagnosticsPlugin`. The objective was to harmonize the two,
making the diagnostic history length configurable for both.

## Solution

I added a `EntityCountDiagnosticsPlugin::new`, and a `Default` impl that
matches `FrameTimeDiagnosticsPlugin`.

This is a breaking change, given the plugin had no fields previously.

## Testing

I did not test this.
2025-07-12 23:00:38 +00:00
..
diagnostic.rs Add missing docs for diagnostics.rs (#19264) 2025-05-26 20:27:46 +00:00
entity_count_diagnostics_plugin.rs Add max_history_length to EntityCountDiagnosticsPlugin (#20085) 2025-07-12 23:00:38 +00:00
frame_count_diagnostics_plugin.rs Remove bevy_core (#16897) 2024-12-19 18:36:51 +00:00
frame_time_diagnostics_plugin.rs Add newlines before impl blocks (#19746) 2025-06-22 23:07:02 +00:00
lib.rs bevyengine.org -> bevy.org (#19503) 2025-06-05 23:09:28 +00:00
log_diagnostics_plugin.rs Upgrade to Rust 1.88 (#19825) 2025-06-26 19:38:19 +00:00
system_information_diagnostics_plugin.rs updating: very very minorly (#19827) 2025-06-26 21:48:20 +00:00