{"id":17210442,"url":"https://github.com/samth/gcstats","last_synced_at":"2026-01-05T14:51:19.672Z","repository":{"id":139587024,"uuid":"2496981","full_name":"samth/gcstats","owner":"samth","description":"GC statistics for Racket","archived":false,"fork":false,"pushed_at":"2014-07-13T14:03:41.000Z","size":132,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T18:01:22.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Racket","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/samth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-01T22:36:42.000Z","updated_at":"2023-02-07T23:23:37.000Z","dependencies_parsed_at":"2023-03-12T15:16:02.730Z","dependency_job_id":null,"html_url":"https://github.com/samth/gcstats","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/samth%2Fgcstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fgcstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fgcstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fgcstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samth","download_url":"https://codeload.github.com/samth/gcstats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245458729,"owners_count":20618697,"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-15T02:54:20.137Z","updated_at":"2026-01-05T14:51:19.628Z","avatar_url":"https://github.com/samth.png","language":"Racket","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n\n### For Racket with Planet2\n\n    % raco pkg install gcstats\n\n### For Racket 5.3.1\n\n    % git clone git://github.com/samth/gcstats.git\n    % raco link gcstats\n    % raco setup gcstats\n\n## Running\n\n    % racket -l gcstats normal-racket-arguments\n\nFor example:\n\n    % racket -l gcstats -t \"foo.rkt\"\n\nor\n\n    % racket -l gcstats -l drracket\n\n## Example Output\n\n```\n  2,715,625,408 bytes allocated in the heap\n  2,687,494,428 bytes collected by GC\n     73,728,640 bytes max heap size\n     66,748,764 bytes max slop\n     85,884,928 bytes peak total memory use\n\nGeneration 0:     147 collections,    1,120ms, 1,157.53ms elapsed\nGeneration 1:       6 collections,      596ms,   605.63ms elapsed\n\nINIT  time       260 ms\nMUT   time     8,996 ms (  9,038.51 ms elapsed)\nGC    time     1,716 ms (  1,763.16 ms elapsed)\nTOTAL time    10,972 ms ( 11,061.67 ms elapsed)\n\n%GC time       16.02%   ( 16.32% elapsed)\n\nAlloc rate     301,870,321 bytes per MUT second\n```\n\n### Line-by-line explanation\n\n```\n  2,715,625,408 bytes allocated in the heap\n```\n\nHow many bytes, total, were allocated by the program\n\n```\n  2,687,494,428 bytes collected by GC\n```\n\nHow many bytes, total, were collected during the run of the program\n\n```\n     73,728,640 bytes max heap size\n```\n\nThe largest heap size observed at any GC\n\n```\n     66,748,764 bytes max slop\n```\n\nThe largest difference between the memory allocated and the memory\n  the GC has servered.\n\n```\n     85,884,928 bytes peak total memory use\n```\n\nThe largest total memory use, including GC overhead.\n\n```\nGeneration 0:     147 collections,    1,120ms, 1,157.53ms elapsed\n```\n\nHow many nursery collections there were, and how long they took, in\n  both process and elapsed time.\n\n```\nGeneration 1:       6 collections,      596ms,   605.63ms elapsed\n```\n\nHow many major collections there were, and how long they took, in\n  both process and elapsed time.\n\n```\nINIT  time       260 ms\n```\n\nTime spent in the process prior to the logging happening.  This is primarily Racket startup time, and code loading time.\n\n```\nMUT   time     8,996 ms (  9,038.51 ms elapsed)\n```\n\nHow much time the \"mutator\", i.e. your program, was running.\n\n```\nGC    time     1,716 ms (  1,763.16 ms elapsed)\n```\n\nHow much time the GC took.\n\n```\nTOTAL time    10,972 ms ( 11,061.67 ms elapsed)\n```\n\nThe total time from the initial invocation.\n\n```\n%GC time       16.02%   ( 16.32% elapsed)\n```\n\nWhat percentage of the time (after initialization) was spent in GC.\n\n```\nAlloc rate     301,870,321 bytes per MUT second\n```\n\nThe average rate of allocation, not counting GC time.\n\n\n###### Output formatting borrowed from GHC\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamth%2Fgcstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamth%2Fgcstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamth%2Fgcstats/lists"}