{"id":18104718,"url":"https://github.com/springmt/rack-gc_stats","last_synced_at":"2025-07-17T23:14:20.733Z","repository":{"id":66034646,"uuid":"104701712","full_name":"SpringMT/rack-gc_stats","owner":"SpringMT","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-01T12:05:49.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T11:52:04.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SpringMT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-09-25T04:00:18.000Z","updated_at":"2017-09-25T04:02:20.000Z","dependencies_parsed_at":"2023-03-19T01:55:48.811Z","dependency_job_id":null,"html_url":"https://github.com/SpringMT/rack-gc_stats","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/SpringMT%2Frack-gc_stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringMT%2Frack-gc_stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringMT%2Frack-gc_stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpringMT%2Frack-gc_stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpringMT","download_url":"https://codeload.github.com/SpringMT/rack-gc_stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441058,"owners_count":20939239,"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-31T22:15:37.712Z","updated_at":"2025-04-06T06:17:53.118Z","avatar_url":"https://github.com/SpringMT.png","language":"Ruby","readme":"# Rack::GCStats [![Build Status](https://travis-ci.org/SpringMT/rack-gc_stats.svg?branch=master)](https://travis-ci.org/SpringMT/rack-gc_stats)\n\nWelcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rack/gc_stat`. To experiment with that code, run `bin/console` for an interactive prompt.\n\nTODO: Delete this and the text above, and describe your gem\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rack-gc_stats'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rack-gc_stats\n\n## Usage\n\n### Rackup files\n\n```\n# In config.ru\nuse Rack::GCStats, scoreboard_path: './tmp', enabled: true\n```\n\n### Get GC Stats under Ruby 2.3.1\n\nLaunch the rack server using 8080 port with Rack::GCStats.\n\nThen access gc_stats path(default: /gc_stats).\n\nWhen add `?json` query parameter, return JSON formatted response.\n\n```\n% curl -s localhost:8080/gc_stats?json | jq .\n{\n  \"total_gc_count\": 32,\n  \"total_minor_gc_count\": 28,\n  \"total_major_gc_count\": 4,\n  \"stats\": [\n    {\n      \"count\": 30,\n      \"heap_allocated_pages\": 181,\n      \"heap_sorted_length\": 181,\n      \"heap_allocatable_pages\": 0,\n      \"heap_available_slots\": 73775,\n      \"heap_live_slots\": 73031,\n      \"heap_free_slots\": 744,\n      \"heap_final_slots\": 0,\n      \"heap_marked_slots\": 42416,\n      \"heap_eden_pages\": 181,\n      \"heap_tomb_pages\": 0,\n      \"total_allocated_pages\": 181,\n      \"total_freed_pages\": 0,\n      \"total_allocated_objects\": 332752,\n      \"total_freed_objects\": 259721,\n      \"malloc_increase_bytes\": 223552,\n      \"malloc_increase_bytes_limit\": 16777216,\n      \"minor_gc_count\": 26,\n      \"major_gc_count\": 4,\n      \"remembered_wb_unprotected_objects\": 328,\n      \"remembered_wb_unprotected_objects_limit\": 584,\n      \"old_objects\": 39244,\n      \"old_objects_limit\": 74280,\n      \"oldmalloc_increase_bytes\": 224000,\n      \"oldmalloc_increase_bytes_limit\": 16777216,\n      \"pid\": 40389,\n      \"ppid\": 40376,\n      \"time\": 1506525908,\n      \"uptime\": 1506525815\n    }\n  ]\n}\n```\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/[USERNAME]/rack-gc_stat. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\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## Code of Conduct\n\nEveryone interacting in the Rack::GcStat project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rack-gc_stat/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringmt%2Frack-gc_stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringmt%2Frack-gc_stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringmt%2Frack-gc_stats/lists"}