Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
10fa68ae
Commit
10fa68ae
authored
1 month ago
by
AMOUSSOU Z. Kenneth
Browse files
Options
Downloads
Patches
Plain Diff
Remove ENV support from rspec-stackprof
Issue:
#356084
parent
cdcea06e
No related branches found
Branches containing commit
No related tags found
1 merge request
!179436
Remove ENV support from rspec-stackprof
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/rspec-stackprof
+6
-6
6 additions, 6 deletions
bin/rspec-stackprof
doc/development/performance.md
+2
-2
2 additions, 2 deletions
doc/development/performance.md
with
8 additions
and
8 deletions
bin/rspec-stackprof
+
6
−
6
View file @
10fa68ae
...
...
@@ -16,12 +16,12 @@ defaults = {
}
options
=
{
mode:
ENV
.
fetch
(
'MODE'
,
defaults
[
:mode
])
||
defaults
[
:mode
],
interval:
ENV
[
'INTERVAL'
]
,
limit:
ENV
.
fetch
(
'LIMIT'
,
nil
)
||
defaults
[
:limit
],
raw:
ENV
.
fetch
(
'RAW'
,
false
)
===
'true'
||
defaults
[
:raw
],
output:
ENV
.
fetch
(
'OUTPUT'
,
nil
)
,
speedscope:
ENV
.
fetch
(
'SPEEDSCOPE'
,
false
)
===
'true'
||
defaults
[
:speedscope
]
mode:
defaults
[
:mode
],
interval:
nil
,
limit:
defaults
[
:limit
],
raw:
defaults
[
:raw
],
output:
nil
,
speedscope:
defaults
[
:speedscope
]
}
OptionParser
.
new
do
|
opt
|
...
...
This diff is collapsed.
Click to expand it.
doc/development/performance.md
+
2
−
2
View file @
10fa68ae
...
...
@@ -191,7 +191,7 @@ exercises the troublesome code path, then run it using the `bin/rspec-stackprof`
helper, for example:
```
shell
$
LIMIT
=
10
bin/rspec-stackprof spec/policies/project_policy_spec.rb
$
bin/rspec-stackprof
--limit
=
10
spec/policies/project_policy_spec.rb
8/8 |
======
100
======>
| Time: 00:00:18
...
...
@@ -292,7 +292,7 @@ qcachegrind project_policy_spec.callgrind # Mac
```
You can also generate and view the resultant flame graph. To view a flame graph that
`bin/rspec-stackprof`
creates, you must
set
the
`
RAW`
environment variable to
`true`
when running
`bin/rspec-stackprof`
creates, you must
add
the
`
--raw=true`
option
when running
`bin/rspec-stackprof`
.
It might take a while to generate based on the output file size:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment