Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cf0b2dc7
Commit
cf0b2dc7
authored
Feb 22, 2022
by
Roy Zwambag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require 'rspec' to fix bin/rspec-stackprof
parent
c4a9ac20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
bin/rspec-stackprof
bin/rspec-stackprof
+2
-3
No files found.
bin/rspec-stackprof
View file @
cf0b2dc7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment