Repository navigation
add process.memory.malloc-heap metric - #5491
Merged
Merged
Conversation
dmkozh
previously approved these changes
Nov 2, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The malloc-bytes metric remains unchanged after its first registration because subsequent requests do not update the counter, so it fails to track allocations and frees.
2 open issues
What changed in this PR
Adds process.memory.malloc-heap to Stellar Core’s process metrics to expose allocator memory usage.
Changes:
- Samples allocator memory usage during process metric synchronization.
- Documents the new counter in the metrics reference.
| File | Description |
|---|---|
| src/main/ApplicationImpl.cpp | Adds the allocator helper include and heap-memory counter. |
| docs/metrics.md | Documents the new metric and its byte units. |
Review effort: Balanced
graydon
force-pushed
the
malloc-heap-metric
branch
from
November 2, 2026 22:55
bb7d5ba to
15101ad
Compare
dmkozh
approved these changes
Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Just adds a metric that monitors the size of the tcmalloc heap