{"id":18728850,"url":"https://github.com/rubyonworld/heapfrag","last_synced_at":"2025-06-13T09:35:01.890Z","repository":{"id":174007936,"uuid":"542157430","full_name":"RubyOnWorld/heapfrag","owner":"RubyOnWorld","description":"This is a library for dumping and visualizing your heap in MRI. This code is not for the feint of heart. I don't know what versions of Ruby this will work on, and I make no guarantees about which versions I support or anything. If it doesn't work for you, please send a PR!","archived":false,"fork":false,"pushed_at":"2022-09-27T17:11:55.000Z","size":430,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T14:27:20.234Z","etag":null,"topics":["frag","headp","library","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/RubyOnWorld.png","metadata":{"files":{"readme":"README.markdown","changelog":"CHANGELOG.rdoc","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":"2022-09-27T15:27:52.000Z","updated_at":"2022-09-27T17:49:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bb4b0ad-cceb-4ee7-8b9f-6797e147cf56","html_url":"https://github.com/RubyOnWorld/heapfrag","commit_stats":null,"previous_names":["rubyonworld/heapfrag"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fheapfrag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fheapfrag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fheapfrag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fheapfrag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyOnWorld","download_url":"https://codeload.github.com/RubyOnWorld/heapfrag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239599040,"owners_count":19665911,"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":["frag","headp","library","ruby"],"created_at":"2024-11-07T14:24:31.839Z","updated_at":"2025-02-19T04:50:06.203Z","avatar_url":"https://github.com/RubyOnWorld.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heapfrag\n\n* https://github.com/tenderlove/heapfrag\n\n## DESCRIPTION:\n\nThis is a library for dumping and visualizing your heap in MRI.  This code is\nnot for the feint of heart.  I don't know what versions of Ruby this will work\non, and I make no guarantees about which versions I support or anything.  If\nit doesn't work for you, please send a PR!\n\nThis. Is. A. Huge. Hack.\n\n## FEATURES/PROBLEMS:\n\n* All of them\n\nOne problem is that the heap dumped as JSON is really big.  I'm having\nproblems dumping it fast enough.  You can adjust the timer interval when you\ncall `Heapfrag.start`, so if you have a large heap, then a slower interval\nmight be better.\n\n## SYNOPSIS:\n\nIn one terminal:\n\n```\n$ ruby bin/heap2raster.rb /tmp/sock\n```\n\nIn a different terminal:\n\n```\n$ ruby --disable-gem -Ilib -rsocket -rheapfrag -S irb\nirb(main):001:0\u003e Heapfrag.start(500_000, UNIXSocket.open(\"/tmp/sock\"))\n=\u003e true\nirb(main):002:0\u003e GC.start\n=\u003e nil\nirb(main):003:0\u003e x = 5000.times.map { Object.new }; nil\n=\u003e nil\n```\n\nHopefully this gif will help:\n\n![demo](demo.gif)\n\n## REQUIREMENTS:\n\n* opengl\n* glu\n* glut\n\n## INSTALL:\n\nYou should use this from Git.\n\n```\nbundle install\nrake compile:heapfrag\n```\n\n## LICENSE:\n\n(The MIT License)\n\nCopyright (c) 2016 Aaron Patterson\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fheapfrag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyonworld%2Fheapfrag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fheapfrag/lists"}