mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 12:20:56 +00:00
Remove the Unused section for esp-alloc stats (#3486)
* remove the Unused section for esp-alloc stats * added changes to the CHANGELOG.md
This commit is contained in:
parent
7b7844a855
commit
ec035d7a9c
@ -11,8 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- `allocator_api2` to support allocator APIs on stable Rust. (#3318)
|
||||
- `AnyMemory`, `InternalMemory`, `ExternalMemory` allocators. (#3318)
|
||||
- Removed the `Unused` section for `stats()` to make the output cleaner (#3486)
|
||||
|
||||
### Changed
|
||||
|
||||
- Bump Rust edition to 2024, bump MSRV to 1.85. (#3391)
|
||||
- Update `defmt` to 1.0 (#3416)
|
||||
|
||||
|
@ -130,8 +130,6 @@
|
||||
//! Total allocated: 46148
|
||||
//! Memory Layout:
|
||||
//! Internal | ████████████░░░░░░░░░░░░░░░░░░░░░░░ | Used: 35% (Used 46148 of 131068, free: 84920)
|
||||
//! Unused | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ |
|
||||
//! Unused | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ |
|
||||
//! ```
|
||||
//! ## Feature Flags
|
||||
#![doc = document_features::document_features!()]
|
||||
@ -338,11 +336,6 @@ impl Display for HeapStats {
|
||||
if let Some(region) = region.as_ref() {
|
||||
region.fmt(f)?;
|
||||
writeln!(f)?;
|
||||
} else {
|
||||
// Display unused memory regions
|
||||
write!(f, "Unused | ")?;
|
||||
write_bar(f, 0)?;
|
||||
writeln!(f, " |")?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
@ -365,10 +358,6 @@ impl defmt::Format for HeapStats {
|
||||
for region in self.region_stats.iter() {
|
||||
if let Some(region) = region.as_ref() {
|
||||
defmt::write!(fmt, "{}\n", region);
|
||||
} else {
|
||||
defmt::write!(fmt, "Unused | ");
|
||||
write_bar_defmt(fmt, 0);
|
||||
defmt::write!(fmt, " |\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user