{"id":23385547,"url":"https://github.com/souravgoswami/sunburst","last_synced_at":"2026-05-02T03:31:17.793Z","repository":{"id":56896818,"uuid":"355806010","full_name":"Souravgoswami/sunburst","owner":"Souravgoswami","description":"Run a process for a given time, kill it with SIGKILL, report CPU time and memory usage","archived":false,"fork":false,"pushed_at":"2021-09-22T19:20:08.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T20:48:04.266Z","etag":null,"topics":["linux","process","sigkill","sunburst"],"latest_commit_sha":null,"homepage":"","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/Souravgoswami.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":"2021-04-08T07:29:51.000Z","updated_at":"2021-09-22T19:20:11.000Z","dependencies_parsed_at":"2022-08-21T01:50:10.611Z","dependency_job_id":null,"html_url":"https://github.com/Souravgoswami/sunburst","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/Souravgoswami%2Fsunburst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Souravgoswami%2Fsunburst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Souravgoswami%2Fsunburst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Souravgoswami%2Fsunburst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Souravgoswami","download_url":"https://codeload.github.com/Souravgoswami/sunburst/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247838421,"owners_count":21004576,"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":["linux","process","sigkill","sunburst"],"created_at":"2024-12-22T00:19:20.695Z","updated_at":"2026-05-02T03:31:17.761Z","avatar_url":"https://github.com/Souravgoswami.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sunburst\nSunburst lets you run a command for a given time.\nWhen the time expires, the program will be SIGKILLed.\nSunburst will then report the total CPU time and last known memory usage\nof the program.\n\nFor example:\n\n```\n$ sunburst \"while : ; do echo hi ; sleep 1 ; done\" --time=3\n:: Running \"while : ; do echo hi ; sleep 1 ; done\" for 3.0 seconds\n                      Logging Standard Output and Error\nhi\nhi\nhi\n\n    ------------------------------------------------------------------------\n:: Total Execution Time: 3.00195 seconds\n:: Total CPU Time: 0.0 seconds (00.00% exec time)\n:: Memory Usage During Exit: 577536 bytes (0.007% system mem)\n:: Avg. Memory Usage: 476655 (0.007% system mem)\n:: Max Memory Usage: 577536 bytes (0.007% system mem)\n:: Avg. CPU Usage: 00.00%\n:: The Max CPU Usage Can't be Logged\n:: Max Threads: 1\n```\n\nOr\n\n```\n$ sunburst \"while : ; do : ; done\" --time=3\n:: Running \"while : ; do : ; done\" for 3.0 seconds\n                      Logging Standard Output and Error\n\n    ------------------------------------------------------------------------\n:: Total Execution Time: 3.00195 seconds\n:: Total CPU Time: 2.99 seconds (99.60% exec time)\n:: Memory Usage During Exit: 356352 bytes (0.004% system mem)\n:: Avg. Memory Usage: 356267 (0.004% system mem)\n:: Max Memory Usage: 356352 bytes (0.004% system mem)\n:: Avg. CPU Usage: 24.91%\n:: Max CPU Usage: 25.00%\n:: Max Threads: 1\n```\n\nOr Even\n\n```\n$ sunburst \"while : ; do : ; done\" --time=3 --progress --humanize\n:: Running \"while : ; do : ; done\" for 3.0 seconds\n                                                                       Logging Stats, Ignoring Standard Output and Error\n:: Exec T: 03.00s | CPU T: 02.82s | Mem: 364.544 KB | Threads: 1 | State: R | CPU U: 25.00%\n    ---------------------------------------------------------------------------------------------------------------------\n:: Total Execution Time: 3.00195 seconds\n:: Total CPU Time: 2.82 seconds (93.94% exec time)\n:: Memory Usage During Exit: 364.544 KB (0.004% system mem)\n:: Avg. Memory Usage: 364.304 KB (0.004% system mem)\n:: Max Memory Usage: 364.544 KB (0.004% system mem)\n:: Avg. CPU Usage: 23.55%\n:: Max CPU Usage: 25.00%\n:: Max Threads: 1\n```\n\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'sunburst'\n```\n\nAnd then execute:\n\n```\n$ bundle install\n```\n\nOr install it yourself as:\n```\n$ gem install sunburst\n```\n\n## Usage\nRun sunbust -h for instruction.\n\n```\nArguments:\n    --time=N          Run the program for N seconds\n    -h | --help       Show this help section\n    -p | --progress   Show realtime stats of the process\n    --humanize        Human readable memory units\n\nExample:\n    sunburst echo hello world --time=0.05 --humanize\n    sunburst \"echo hello world\" --time=0.05 --humanize\n    sunburst \"ruby -e 'while true do end'\" --time=3 --humanize\n    sunburst \"ruby -e 'p :Hello'\" --time=3\n    sunburst \"while : ; do : ; done\" --time=3 --humanize --progress\n```\n\nIf no time is specified, it will run until the command exits.\n\n## Contributing\nBug reports and pull requests are welcome on GitHub at https://github.com/Souravgoswami/sunburst.\n\n## License\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouravgoswami%2Fsunburst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouravgoswami%2Fsunburst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouravgoswami%2Fsunburst/lists"}