{"id":17272568,"url":"https://github.com/rubyist/gohat","last_synced_at":"2025-04-14T08:20:49.856Z","repository":{"id":20019794,"uuid":"23287595","full_name":"rubyist/gohat","owner":"rubyist","description":"Go Heap Dump Analysis Tool","archived":false,"fork":false,"pushed_at":"2017-08-07T00:57:28.000Z","size":60,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T21:52:06.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/rubyist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-24T17:32:12.000Z","updated_at":"2023-10-20T07:34:56.000Z","dependencies_parsed_at":"2022-08-27T03:41:19.635Z","dependency_job_id":null,"html_url":"https://github.com/rubyist/gohat","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/rubyist%2Fgohat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyist%2Fgohat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyist%2Fgohat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubyist%2Fgohat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubyist","download_url":"https://codeload.github.com/rubyist/gohat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248844036,"owners_count":21170505,"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-15T08:48:56.550Z","updated_at":"2025-04-14T08:20:49.829Z","avatar_url":"https://github.com/rubyist.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gohat\n\nGohat is a heap dump analyzer tool for Go heap dumps written with `runtime.WriteHeapDump()`\n\n### Show the heap dump params\n```\n$ gohat params dumpfile.dump\nBig Endian\nPointer Size: 8\nChannel Header Size: 88\nHeap Starting Address 2081a4000\nHeap Ending Address: 2082a4000\nArchitecture: 54\nGOEXPERIMENT:\nnCPU: 8\n```\n\n### Show the memstats at the time of the dump\n```\n$ gohat memstats dumpfile.dump\nGeneral statistics\nAlloc: 174864\nTotalAlloc: 174880\nSys: 4327672\nLookups: 6\nMallocs: 110\nFrees: 1\n\nMain allocation heap statistics\nHeapAlloc: 174864\nHeapSys: 1048576\nHeapIdle: 737280\nHeapInuse: 311296\nHeapReleased: 0\nHeapObjects: 109\n\nLow-level fixed-size structure allocator statistics\nStackInuse: 57344\nStatckSys: 393216\nMSpanInuse: 2944\nMSpanSys: 16384\nBuckHashSys: 1440424\nGCSys: 1114112\nOtherSys: 298576\n\nGarbage collector statistics\nNextGC: 160256\nLastGC: 1408810400718324880\nPauseTotalNs: 104638\nNumGC: 1\nLast GC Pauses:\n[104638 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]\n```\n\n### List all of the objects on the heap\n```\n$ gohat objects dumpfile.dump\n00000002081c81e0 map.hdr[string]*unicode.RangeTable regular 48\n00000002081de000 os.File regular 8\n00000002081b2000 \u003cunknown\u003e conservatively scanned 1664\n00000002081ce9c0 map.bucket[string]*unicode.RangeTable array 208\n00000002081a6000 runtime.g regular 288\n00000002081a8000 \u003cunknown\u003e regular 96\n00000002081d2000 map.bucket[string]int array 416\n00000002081c8150 map.hdr[string]*unicode.RangeTable regular 48\n00000002081cc000 \u003cunknown\u003e regular 576\n00000002081a4070 errors.errorString regular 16\n000000c208499df0 string regular 16\n...\n```\n\n### Show a single object\n```\n$ gohat object dumpfile.dump 000000c208499df0\n000000c208499df0 regular 16 16\nstring\n\n[128 8 73 8 194 0 0 0 54 0 0 0 0 0 0 0]\n\nField List:\nString 0x0000000000000000  [128 8 73 8 194 0 0 0 54 0 0 0 0 0 0 0]\n```\n\n```\n$ gohat object dumpfile.dump 000000c208490880 --string\n000000c208490880 regular 64 64\n\nTÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı\n```\n\n### Show objects that are the same in two heap files\n```\n$ gohat same dumpfile.dump dumpfile.dump2\n00000002081be140 regular 80 80\n\n[48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]\n\n\n\n00000002081a40c0 regular 16 16\nerrors.errorString\n\n[112 145 14 0 0 0 0 0 29 0 0 0 0 0 0 0]\n\nField List:\nString 0x0000000000000000  [112 145 14 0 0 0 0 0 29 0 0 0 0 0 0 0]\n...\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyist%2Fgohat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyist%2Fgohat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyist%2Fgohat/lists"}