{"id":13580323,"url":"https://github.com/matt-kimball/allocscope","last_synced_at":"2025-08-29T13:38:31.734Z","repository":{"id":65906801,"uuid":"596742969","full_name":"matt-kimball/allocscope","owner":"matt-kimball","description":"allocscope  -  a memory tracking tool","archived":false,"fork":false,"pushed_at":"2023-02-23T20:22:09.000Z","size":72,"stargazers_count":554,"open_issues_count":1,"forks_count":16,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-27T08:50:48.091Z","etag":null,"topics":["c-programming","cplusplus","memory-allocation","memory-leak-detection","memory-leaks","memory-profiler","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matt-kimball.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-02-02T20:52:45.000Z","updated_at":"2025-05-25T02:48:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6d30d99-143f-4954-ab58-9b394b3d9dee","html_url":"https://github.com/matt-kimball/allocscope","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/matt-kimball/allocscope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-kimball%2Fallocscope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-kimball%2Fallocscope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-kimball%2Fallocscope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-kimball%2Fallocscope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matt-kimball","download_url":"https://codeload.github.com/matt-kimball/allocscope/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matt-kimball%2Fallocscope/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272693571,"owners_count":24977566,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c-programming","cplusplus","memory-allocation","memory-leak-detection","memory-leaks","memory-profiler","rust-lang"],"created_at":"2024-08-01T15:01:49.822Z","updated_at":"2025-08-29T13:38:31.710Z","avatar_url":"https://github.com/matt-kimball.png","language":"Rust","readme":"![allocscope banner](https://allocscope.com/banner.png)\n\n# allocscope\n### a memory tracking tool\n\nallocscope is a tool for tracking down where the most egregiously large allocations are occurring\nin a C, C++ or Rust codebase.  It is particilarly intendend to be useful for developers who want to\nget a handle on excessive allocations and are working in a large codebase with multiple\ncontributors with allocations occuring in many modules or libraries.\n\nIt is composed of two commands:\n\n`allocscope-trace` attaches to another process as a debugger.  By using breakpoints on memory\nallocation functions such as `malloc` it tracks allocations made by that process.  During the\ntrace, the callstack of all allocations are recorded to an `.atrace` file.  Tracing programs\nwhich spawn multiple threads and tracing calls through shared libraries are supported.  You can\nspawn a process to trace by specifying a full commandline to `allocscope-trace`, or you can\nattach to an existing running process.\n\n`allocscope-view` reads the `.atrace` file produced by `allocscope-trace`.  It presents a summary\nof all allocations made in a call tree format, which can be sorted by largest concurrent\nallocation, total number of blocks, number of unfreed allocation blocks, or the sequence of\nthe allocation.  The summary can be navigated interactively through a curses-based terminal user\ninterface, or a text report suitable for non-interactive use can be generated.\n\n## Installing prebuilt binaries\n\nThe easiest way to get started with allocscope is to install prebuilt binaries.\n\nTo install the latest version:\n\n`curl -s https://allocscope.com/install.sh | sudo sh`\n\nCurrently only Linux on x86_64 processors is supported, but I'd like to support more operating systems\nand processors in the future.\n\n## Getting started\n\nWhile it will likely be most useful to use allocscope on a program with symbols, which you\nhave compiled yourself, you can verify that it functions correctly by performing a trace on a \nstandard system command, such as `ls`:\n\n```\nallocscope-trace ls -l\nallocscope-view ls.atrace\n```\n\n## Building from source\n\nOn recent Ubuntu releases, allocscope can be built from source with the following sequence\nof commands:\n\n```\napt-get update\napt-get install cargo git libclang-dev libiberty-dev libncurses-dev libsqlite3-dev libunwind-dev\ngit clone https://github.com/matt-kimball/allocscope.git\ncd allocscope\ncargo install --path allocscope-trace\ncargo install --path allocscope-view\n```\n\nIf you are modifying the functionality of allocscope, you can run integration tests by executing\nthe `test.sh` script in the root directory of the repository.\n\nStatically linked binaries can also be built using the `build-static/build.sh` script, though this requires\nDocker installed on the build system.\n\n## Support development\n\nIf you find allocscope useful, please consider supporting development.\n\nVisit https://allocscope.com/support\n\n## License\n\nallocscope is licensed GNU General Public License version 3.\n","funding_links":[],"categories":["Rust","Multiple languages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatt-kimball%2Fallocscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatt-kimball%2Fallocscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatt-kimball%2Fallocscope/lists"}