{"id":16068697,"url":"https://github.com/fryguy/memory_analyzer","last_synced_at":"2025-09-08T03:43:39.505Z","repository":{"id":66780961,"uuid":"43964031","full_name":"Fryguy/memory_analyzer","owner":"Fryguy","description":"Ruby heap analyzer","archived":false,"fork":false,"pushed_at":"2017-11-14T17:48:10.000Z","size":20,"stargazers_count":3,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T19:29:13.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fryguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2015-10-09T15:26:09.000Z","updated_at":"2022-09-16T19:11:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9005146-a774-474d-b5e1-359e432c483e","html_url":"https://github.com/Fryguy/memory_analyzer","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/Fryguy%2Fmemory_analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fryguy%2Fmemory_analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fryguy%2Fmemory_analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fryguy%2Fmemory_analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fryguy","download_url":"https://codeload.github.com/Fryguy/memory_analyzer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232654813,"owners_count":18556470,"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-09T06:40:21.133Z","updated_at":"2025-01-05T23:44:20.557Z","avatar_url":"https://github.com/Fryguy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MemoryAnalyzer\n\nRuby heap analyzer\n\n## Installation\n\nClone the repo.\n\n## Usage\n\n```\nbin/memory_analyzer /path/to/heap.json\n```\n\nThis will parse the file and drop you into an IRB session\n\n```\nParsing: |======================================================| Time: 00:00:03\n[1] pry(main)\u003e\n```\n\nFrom this point you have access to the heap in a variable called `$heap` upon\nwhich you can call helper methods.\n\n- `.file`: The file that was parsed\n- `.nodes`: An `Array` of all memory objects\n- `.by_address`: A `Hash` of all memory objects indexed by address\n- `.by_location`: A `Hash` of all memory objects grouped by location, where\n  location is `\"#{file}:#{line}\"`\n- `.by_parent`: A `Hash` of all memory objects grouped by their parents address.\n- `.roots`: A `Set` of all root objects\n- `.find_by_location(regex)`: Finds the first object whose location matches the\n  provided `regex`\n- `.walk_references(address)`: Walks the object graph, printing objects in a\n  tree structure, starting from the given `address`\n- `.walk_parents(address)`: Walks the object graph, in reverse, printing objects\n  in a tree structure, starting from the given `address`\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/Fryguy/memory_analyzer.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffryguy%2Fmemory_analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffryguy%2Fmemory_analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffryguy%2Fmemory_analyzer/lists"}