summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-02-24 09:14:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-24 09:14:06 +0000
commit563c8efdee39233f80f4dc7b20b38d417b26f055 (patch)
tree7b86eec1a8205b63c358f1004f20e5fbb52f1b4a /bin
parent89bfc148f90c410512f9c470ca1e50485b7000b2 (diff)
downloadgitlab-ce-563c8efdee39233f80f4dc7b20b38d417b26f055.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rspec-stackprof5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/rspec-stackprof b/bin/rspec-stackprof
index 018bfe7da4b..06f931240f5 100755
--- a/bin/rspec-stackprof
+++ b/bin/rspec-stackprof
@@ -2,13 +2,12 @@
require_relative '../config/bundler_setup'
require 'stackprof'
-$:.unshift 'spec'
-require 'spec_helper'
+require 'rspec'
filename = ARGV[0].split('/').last
interval = ENV.fetch('INTERVAL', 1000).to_i
limit = ENV.fetch('LIMIT', 20)
-raw = ENV.fetch('RAW', false) == 'true'
+raw = ENV.fetch('RAW', false) == 'true' # Set this to true if you want to generate a flamegraph
output_file = "tmp/#{filename}.dump"
StackProf.run(mode: :wall, out: output_file, interval: interval, raw: raw) do