{"id":59214,"library":"jemalloc-ctl","title":"jemalloc-ctl","description":"A safe wrapper over jemalloc's control and introspection APIs for runtime memory management.","status":"active","version":"0.5.4","language":"rust","source_language":null,"source_url":"https://github.com/tikv/jemallocator","tags":["jemalloc","memory","stats","profiling"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\njemalloc-ctl = \"0.5.4\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add jemalloc-ctl","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"allocated","correct":"use jemalloc_ctl::stats::allocated;"}],"quickstart":{"code":"use jemalloc_ctl::stats::allocated;\n\nfn main() {\n    let allocated = allocated::read().unwrap();\n    println!(\"Allocated bytes: {}\", allocated);\n}","lang":"rust","description":"Reads the total allocated memory from jemalloc."},"warnings":[{"fix":"Set jemalloc as global allocator with `#[global_allocator] static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;`","message":"Requires jemalloc as the global allocator; otherwise, reads may be invalid.","severity":"gotcha","affected_versions":">=0.5.0"}],"env_vars":null,"search_vec":"'api':13 'control':10 'ctl':3 'introspect':12 'jemalloc':2,8,18 'jemalloc-ctl':1 'manag':17 'memori':16,19 'profil':21 'runtim':15 'safe':5 'stat':20 'wrapper':6","created_at":"2026-06-16T16:54:39.423957+00:00","updated_at":"2026-06-16T16:54:39.423957+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/tikv/jemallocator","github":"https://github.com/tikv/jemallocator","docs":"https://docs.rs/jemalloc-ctl/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}