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:
Danila Gornushko 2025-05-19 10:15:31 +03:00 committed by GitHub
parent 7b7844a855
commit ec035d7a9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 11 deletions

View File

@ -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)

View File

@ -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");
}
}
}