{"id":16681860,"url":"https://github.com/tobz/tracking-allocator","last_synced_at":"2025-07-05T11:33:10.410Z","repository":{"id":40403014,"uuid":"413219662","full_name":"tobz/tracking-allocator","owner":"tobz","description":"global allocator for Rust that provides hooks for tracking allocations","archived":false,"fork":false,"pushed_at":"2023-04-17T16:27:32.000Z","size":128,"stargazers_count":47,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-13T14:11:43.060Z","etag":null,"topics":["allocator","rust","telemetry"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tobz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-10-03T23:21:03.000Z","updated_at":"2024-09-27T07:20:57.000Z","dependencies_parsed_at":"2024-02-01T22:10:19.386Z","dependency_job_id":"7ecf47a4-53f0-4fe5-9e28-3213939a84c7","html_url":"https://github.com/tobz/tracking-allocator","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.2142857142857143,"last_synced_commit":"8d1e79b025011e5b8d445856eb51ab98ee915b6c"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobz%2Ftracking-allocator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobz%2Ftracking-allocator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobz%2Ftracking-allocator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobz%2Ftracking-allocator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobz","download_url":"https://codeload.github.com/tobz/tracking-allocator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221669381,"owners_count":16860861,"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":["allocator","rust","telemetry"],"created_at":"2024-10-12T14:05:30.884Z","updated_at":"2024-10-27T11:35:50.629Z","avatar_url":"https://github.com/tobz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tracking-allocator\n\nA [`GlobalAlloc`](https://doc.rust-lang.org/stable/std/alloc/trait.GlobalAlloc.html)-compatible allocator implementation that provides the ability to track allocation events.\n\n## examples\n\nAs allocators are specialized bits of code, we've included an example in the `examples/` folder to\nshow how to use `tracking_allocator`, rather than putting abbreviated snippets in the README.  It is\nextensively documented, and explains the finer points of using this crate, and what can be acheived\nwith it.\n\nThe actual Rust-level documentation is present, and should hopefully be clear and concise, but the\nexample is meant to be how you learn to use the crate, with the Rust-level documentation as a\nrote \"what's that type signature again?\" style of reference.\n\nWhen running the example, you should end up seeing output similar to this:\n\n```\nallocation -\u003e addr=0x55e882b744f0 size=80 group_id=Some(0) tags=None\ndeallocation -\u003e addr=0x55e882b74490\nallocation -\u003e addr=0x55e882b74550 size=12 group_id=Some(1) tags=None\nallocation -\u003e addr=0x55e882b74570 size=96 group_id=Some(1) tags=None\ndeallocation -\u003e addr=0x55e882b74550\ndeallocation -\u003e addr=0x55e882b74570\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobz%2Ftracking-allocator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobz%2Ftracking-allocator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobz%2Ftracking-allocator/lists"}