commit | 6168f7a58b63b0498bd6decb4992c0fc5d16d7e1 | [log] [tgz] |
---|---|---|
author | Aaron Green <aarongreen@google.com> | Tue Dec 19 23:15:40 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Dec 19 23:15:40 2023 +0000 |
tree | 0d471d302056fb04b8a88026f554db6251e8fe60 | |
parent | c06726f2ad32df7661db30c40a2880e02d5d2ef2 [diff] |
pw_allocator: Add WithMetrics interface This CL adds a `WithMetrics` pure virtual base class that can be implemented by classes like `AllocatorMetricProxy` and `FallbackAllocator` that provide metrics. It refactors `AllocatorMerticProxyForTest` and `AllocatorForTestWithBuffer` into a single `AllocatorForTest` class, and updates unit tests that used those. Change-Id: I9152abf79c5d56b92751a67fa846f2830ad4586a Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/185296 Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Aaron Green <aarongreen@google.com> Reviewed-by: Taylor Cramer <cramertj@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.