{"id":21056938,"url":"https://github.com/fluent-plugins-nursery/fluent-stackprof","last_synced_at":"2025-05-15T23:33:33.163Z","repository":{"id":19334382,"uuid":"22573132","full_name":"fluent-plugins-nursery/fluent-stackprof","owner":"fluent-plugins-nursery","description":"Start and stop stackprof dynamically from outside of fluentd","archived":false,"fork":false,"pushed_at":"2017-03-14T15:18:14.000Z","size":7,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-09T04:23:41.043Z","etag":null,"topics":["fluentd","ruby","stackprof"],"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/fluent-plugins-nursery.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-03T10:58:12.000Z","updated_at":"2023-04-04T08:24:23.000Z","dependencies_parsed_at":"2022-07-23T03:04:29.907Z","dependency_job_id":null,"html_url":"https://github.com/fluent-plugins-nursery/fluent-stackprof","commit_stats":null,"previous_names":["sonots/fluent-stackprof"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Ffluent-stackprof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Ffluent-stackprof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Ffluent-stackprof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluent-plugins-nursery%2Ffluent-stackprof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluent-plugins-nursery","download_url":"https://codeload.github.com/fluent-plugins-nursery/fluent-stackprof/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254442429,"owners_count":22071864,"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":["fluentd","ruby","stackprof"],"created_at":"2024-11-19T16:55:12.958Z","updated_at":"2025-05-15T23:33:28.132Z","avatar_url":"https://github.com/fluent-plugins-nursery.png","language":"Ruby","readme":"# Fluent::Stackprof\n\nUsing fluent-stackprof, you can start and stop [stackprof](https://github.com/tmm1/stackprof) dynamically from outside of fluentd without any configuration changes.\n\n## Pareparation for Fluentd\n\nYou must run your fluentd daemon with `in_debug_agent` plugin and `stackprof` gem installed.\nAlso, ruby \u003e= 2.1 is required to run `stackprof`. \n\nInstall `stackprof` gem,\n\n```\n$ fluent-gem install stackprof\n```\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\n## Install\n\n`fluent-stackprof` is a command line utility which connects to your fluentd daemon from outside.\nPrepare ruby \u003e= 2.1, and install as:\n\n```\n$ gem install fluent-stackprof\n$ gem install stackprof\n```\n\n## Usage\n\n\nStart\n\n```\n$ fluent-stackprof start -h localhost -p 24230\n```\n\nStop and write a profiling result.\n\n```\n$ fluent-stackprof stop -h localhost -p 24230 -o /tmp/fluent-stackprof.dump\n```\n\nThen, use `stackprof` to analyze the resulting file:\n\n```\n$ stackprof /tmp/fluent-stackprof.dump --text --limit 1\n```\n\nSee [stackprof#run](https://github.com/tmm1/stackprof#run) for more details. \nThe author's blog article is also helpful [Ruby 2.1: Profiling Ruby by @tmm1](http://tmm1.net/ruby21-profiling).\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-stackprof.txt|\n|-m, --mode MODE|stackprof measure mode. See [stackprof#sampling](https://github.com/tmm1/stackprof#sampling)|cpu|\n\n## ChangeLog\n\nSee [CHANGELOG.md](./CHANGELOG.md)\n\n## Contributing\n\n1. Fork it ( http://github.com/sonots/fluent-stackprof/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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluent-plugins-nursery%2Ffluent-stackprof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluent-plugins-nursery%2Ffluent-stackprof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluent-plugins-nursery%2Ffluent-stackprof/lists"}