OS Manuals

/srv/gitlab/bin/rspec-stackprof

GitLab's core webapp, built with Ruby on Rails

From gitlab-rails-ce-18.7 18.7.7-r5 (enterprise-packages), captured 2026-11-08 by running rspec-stackprof --help (exit 0). permalink

Run rspec with stackprof enabled.

Usage:
  /srv/gitlab/bin/rspec-stackprof [--mode=<wall|cpu|object>] [--interval=<interval>] [--limit=<limit>] [--raw=false|true] [--speedscope=false|true] [--output=filename] filename [rspec options]

Examples:
  /srv/gitlab/bin/rspec-stackprof --mode=wall --interval=1000 --limit=20 --raw=true --output=tmp/example.dump spec/controllers/help_controller_spec.rb
  /srv/gitlab/bin/rspec-stackprof spec/policies/project_policy_spec.rb -e 'project visibility'
  /srv/gitlab/bin/rspec-stackprof --speedscope=true spec/controllers/help_controller_spec.rb
  /srv/gitlab/bin/rspec-stackprof --mode=cpu --limit=5 spec/controllers/help_controller_spec.rb

Options:
        --mode wall|cpu|object       sampling mode (default: wall) [$MODE]
        --interval integer           sample interval for mode selected. wall/cpu: microseconds with a default of 1000, object: seconds with a default of 1 [$INTERVAL]
        --limit integer              limit output to N entries (default: 20) [$LIMIT]
        --raw true|false             collect extra data required for flamegraph [$RAW]
        --output filename            output filename (default: tmp/rspec-filename.dump) [$OUTPUT]
        --speedscope true|false      output in speedscope format (default: false) [$SPEEDSCOPE]
Options (6)
OptionDescriptionSource
--mode wall|cpu|objectsampling mode (default: wall) [$MODE]help
--interval integersample interval for mode selected.help
--limit integerlimit output to N entries (default: 20) [$LIMIT]help
--raw true|falsecollect extra data required for flamegraph [$RAW]help
--output filenameoutput filename (default: tmp/rspec-filename.dump) [$OUTPUT]help
--speedscope true|falseoutput in speedscope format (default: false) [$SPEEDSCOPE]help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.