Skip to content

feat: expose mi_stats_get_json and a safe wrapper around it#161

Draft
svix-jbrown wants to merge 1 commit intopurpleprotocol:masterfrom
svix-jbrown:feat/stats-json
Draft

feat: expose mi_stats_get_json and a safe wrapper around it#161
svix-jbrown wants to merge 1 commit intopurpleprotocol:masterfrom
svix-jbrown:feat/stats-json

Conversation

@svix-jbrown
Copy link
Copy Markdown

mimalloc v3 added the cool new mi_stats_get_json() function to expose a ton of useful information about the allocator as semistructured JSON. This is a pretty minimal API that exposes this function and lets users bring their own parser/etc for reading the data.

A perhaps more elegant alternative would be exposing mi_stats_get() instead, but that requires bridging the mi_stats structure into Rust, which would probably bring us into the realm of bindgen.

See #150 for a related request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant