{"id":16643418,"url":"https://github.com/sonots/fluent-gcprofiler","last_synced_at":"2025-10-29T05:18:19.219Z","repository":{"id":19585228,"uuid":"22835341","full_name":"sonots/fluent-gcprofiler","owner":"sonots","description":"Start and stop GC::Profiler from outside of fluentd ","archived":false,"fork":false,"pushed_at":"2014-09-21T05:15:36.000Z","size":160,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-05T20:19:02.390Z","etag":null,"topics":["fluentd","gc","profile","ruby"],"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/sonots.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-11T10:26:50.000Z","updated_at":"2018-10-16T05:29:16.000Z","dependencies_parsed_at":"2022-09-09T01:01:51.546Z","dependency_job_id":null,"html_url":"https://github.com/sonots/fluent-gcprofiler","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sonots/fluent-gcprofiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonots%2Ffluent-gcprofiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonots%2Ffluent-gcprofiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonots%2Ffluent-gcprofiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonots%2Ffluent-gcprofiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonots","download_url":"https://codeload.github.com/sonots/fluent-gcprofiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonots%2Ffluent-gcprofiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281563814,"owners_count":26522710,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fluentd","gc","profile","ruby"],"created_at":"2024-10-12T08:08:27.790Z","updated_at":"2025-10-29T05:18:19.205Z","avatar_url":"https://github.com/sonots.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluent-gcprofiler\n\nUsing fluent-gcprofiler, you can start and stop [GC::Profiler](http://docs.ruby-lang.org/ja/2.1.0/class/GC=3a=3aProfiler.html) dynamically from outside of fluentd without any configuration changes.\n\n## Installation\n\n```\n$ fluent-gem install fluent-gcprofiler\n```\n\n## Prerequisite\n\n`in_debug_agent` plugin is required to be enabled.\n\n```\n\u003csource\u003e\n  type debug_agent\n  port 24230\n\u003c/source\u003e\n```\n\nGC::Profiler is a ruby built-in profiler, you do not need to install another gem.\n\n## Usage\n\nStart\n\n```\n$ fluent-gcprofiler start -h localhost -p 24230\n```\n\nStop and write a profiling result.\n\n```\n$ fluent-gcprofiler stop -h localhost -p 24230 -o /tmp/fluent-gcprofiler.txt\n```\n\n## Options\n\n|parameter|description|default|\n|---|---|---|\n|-h, --host HOST|fluent host|127.0.0.1|\n|-p, --port PORT|debug_agent port|24230|\n|-u, --unix PATH|use unix socket instead of tcp||\n|-o, --output PATH|output file|/tmp/fluent-gcprofiler.txt|\n\n## Sample Output\n\n`/tmp/fluent-gcprofiler.txt` as default:\n\n```\nGC 21 invokes.\nIndex    Invoke Time(sec)       Use Size(byte)     Total Size(byte)         Total Object                    GC Time(ms)\n    1               0.452               722640              1668720                83436         5.05216200000002046977\n    2               0.458               722600              1668720                83436         3.76476800000001832203\n```\n\nMEMO: `Invoke Time` is the elapsed *CPU* time from ruby starts.\n\n## ChangeLog\n\nSee [CHANGELOG.md](./CHANGELOG.md)\n\n## Contributing\n\n1. Fork it ( http://github.com/sonots/fluent-gcprofiler/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Copyright\n\nSee [LICENSE.txt](./LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonots%2Ffluent-gcprofiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonots%2Ffluent-gcprofiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonots%2Ffluent-gcprofiler/lists"}