{"id":16190039,"url":"https://github.com/brson/megamalloc","last_synced_at":"2025-08-30T15:32:01.733Z","repository":{"id":66303287,"uuid":"178919359","full_name":"brson/megamalloc","owner":"brson","description":null,"archived":false,"fork":false,"pushed_at":"2019-06-10T18:30:31.000Z","size":9,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-15T17:51:16.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-01T18:05:38.000Z","updated_at":"2020-05-31T14:02:14.000Z","dependencies_parsed_at":"2023-02-20T21:00:55.991Z","dependency_job_id":null,"html_url":"https://github.com/brson/megamalloc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brson%2Fmegamalloc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brson%2Fmegamalloc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brson%2Fmegamalloc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brson%2Fmegamalloc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brson","download_url":"https://codeload.github.com/brson/megamalloc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231501580,"owners_count":18386285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T07:38:16.652Z","updated_at":"2024-12-27T14:54:09.009Z","avatar_url":"https://github.com/brson.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"The megamalloc crate packages up all the Rust allocator crates,\nexposing their metrics through a consistent interface,\nproviding tools to compare performance and tweak configurations.\n\nIt supports the following features:\n\n- global - Define the global allocator (default)\n- system_alloc - Use the system allocator (default)\n- jemalloc - Use jemalloc\n- ralloc - Use ralloc\n- tcmalloc - Use tcmalloc\n\nThe megamalloc global allocator wraps the global allocator of\nwhichever implementation is selected, and provides additional methods.\n\n```rust\n/// Returns a string uniquely naming the allocator\npub fn name(\u0026self) -\u003e \u0026'static str;\n\n/// Returns allocator-dependent metrics as a `Vec` of `(str, usize)`\npub fn fetch_stats(\u0026self) -\u003e Result\u003cOption\u003cAllocStats\u003e\u003e;\n```\n\nMetrics are implemented for glibc malloc (the system allocator on most\nlinux targets), jemalloc, and tcmalloc.\n\nThat's all for now. More in the future.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrson%2Fmegamalloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrson%2Fmegamalloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrson%2Fmegamalloc/lists"}