Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pocke/stackprof-run
Run a ruby script with stackprof.
https://github.com/pocke/stackprof-run
Last synced: about 2 months ago
JSON representation
Run a ruby script with stackprof.
- Host: GitHub
- URL: https://github.com/pocke/stackprof-run
- Owner: pocke
- Created: 2017-01-03T06:41:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-09T04:11:57.000Z (almost 5 years ago)
- Last Synced: 2024-10-14T04:07:42.518Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 14.6 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stackprof-run
Run a ruby script with [stackprof](https://github.com/tmm1/stackprof).
## Installation
```sh
$ gem install stackprof-run
```## Basic Usage
`stackprof-run` executes received command with stackprof.
```sh
# Run RuboCop with stackprof
$ stackprof-run rubocop some_ruby_file.rb# Run a rake task
$ stackprof-run bin/rake some_task
```### Options
```bash
$ stackprof-run --help
Usage: stackprof-run [options] command [command options]
-m, --mode=MODE :cpu(default), :wall, :object
-o, --out=FILE Output file name. (default: stackprof-out)
-i, --interval=INTERVAL
-no-aggregate
-r, --raw
```## Known issue
This gem dependents `which` command, so, it does not work in Windows.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/pocke/stackprof-run.
License
-------These codes are licensed under CC0.
[![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png "CC0")](http://creativecommons.org/publicdomain/zero/1.0/deed.en)