Enable mallinfo2 behind feature flag (#2864)

## Proposed Changes

Add `mallinfo2` behind a feature flag so that we can get accurate memory metrics during debugging. It can be enabled when building Lighthouse like so (so long as the platform supports it):

```
cargo install --path lighthouse --features "malloc_utils/mallinfo2"
```
This commit is contained in:
Michael Sproul
2021-12-15 20:39:50 +00:00
parent 4dcb262c2d
commit 10dac51c6f
2 changed files with 32 additions and 19 deletions

View File

@@ -11,3 +11,6 @@ lighthouse_metrics = { path = "../lighthouse_metrics" }
lazy_static = "1.4.0"
libc = "0.2.79"
parking_lot = "0.11.0"
[features]
mallinfo2 = []