Skip to content

Feature Request: API to expose underlying memory profiling stats #108

@ReppCodes

Description

@ReppCodes

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions