bevy/crates/bevy_diagnostic/src
IceSentry 7763b5ec74 log system info on startup (#5454)
# Objective

- We already log the adapter info on startup when bevy_render is present. It would be nice to have more info about the system to be able to ask users to submit it in bug reports

## Solution

- Use the `sysinfo` crate to get all the information
  - I made sure it _only_ gets the required informations to avoid unnecessary system request
- Add a system that logs this on startup
  - This system is currently in `bevy_diagnostics` because I didn't really know where to put it.

Here's an example log from my system:
```log
INFO bevy_diagnostic: SystemInformation { os: "Windows 10 Pro", kernel: "19044", cpu: "AMD Ryzen 7 5800X 8-Core Processor", core_count: "8", memory: "34282242 KB" }
```
---

## Changelog

- Added a new default log when starting a bevy app that logs the system information
2022-12-26 15:16:46 +00:00
..
diagnostic.rs Add Exponential Moving Average into diagnostics (#4992) 2022-10-24 13:46:37 +00:00
entity_count_diagnostics_plugin.rs Cleanups in diagnostics (#3871) 2022-06-20 17:02:25 +00:00
frame_time_diagnostics_plugin.rs Add Exponential Moving Average into diagnostics (#4992) 2022-10-24 13:46:37 +00:00
lib.rs log system info on startup (#5454) 2022-12-26 15:16:46 +00:00
log_diagnostics_plugin.rs Add Exponential Moving Average into diagnostics (#4992) 2022-10-24 13:46:37 +00:00