cloudflare / cloudflare/foundations

Feature Request: API to expose underlying memory profiling stats

Open
#108 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.7k
Forks
133
Avg merge
1d 5h
Merged PRs (30d)
11

Description

Hi!

I'm working on a project that already uses `foundations` and exposes a telemetry server running in a background `tokio` task, with memory profiling enabled. I have a use case where I'd like to query my current memory usage from within this process to make some runtime determinations. I'm able to do this by importing `tikv_jemalloc_ctl` directly and using its API, but it feels in-scope for `foundations` to expose this without needing to reach for the lower-level library.

Would it be possible to pass-through `tikv_jemalloc_ctl::stats` in some way, to query the actual stats available there from within the process using foundations?

Thanks for your work on this, love the library!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.