lighthouse/validator_client
Michael Sproul 8faaa35b58 Enable malloc metrics for the VC (#3279)
## Issue Addressed

Following up from https://github.com/sigp/lighthouse/pull/3223#issuecomment-1158718102, it has been observed that the validator client uses vastly more memory in some compilation configurations than others. Compiling with Cross and then putting the binary into an Ubuntu 22.04 image seems to use 3x more memory than compiling with Cargo directly on Debian bullseye.

## Proposed Changes

Enable malloc metrics for the validator client. This will hopefully allow us to see the difference between the two compilation configs and compare heap fragmentation. This PR doesn't enable malloc tuning for the VC because it was found to perform significantly worse. The `--disable-malloc-tuning` flag is repurposed to just disable the metrics.
2022-06-20 23:20:30 +00:00
..
slashing_protection Replace OpenOptions::new with File::options to be readable (#3059) 2022-03-07 06:30:18 +00:00
src Enable malloc metrics for the VC (#3279) 2022-06-20 23:20:30 +00:00
Cargo.toml Enable malloc metrics for the VC (#3279) 2022-06-20 23:20:30 +00:00