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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
2e06800b
Commit
2e06800b
authored
Aug 01, 2016
by
Ahmad Sherif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RequestProfiler::Middleware error when code is reloaded in development
Closes #20452
parent
8c6b85ec
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
CHANGELOG
CHANGELOG
+1
-0
config/initializers/request_profiler.rb
config/initializers/request_profiler.rb
+2
-0
lib/gitlab/request_profiler/middleware.rb
lib/gitlab/request_profiler/middleware.rb
+1
-0
No files found.
CHANGELOG
View file @
2e06800b
...
...
@@ -40,6 +40,7 @@ v 8.11.0 (unreleased)
- Change requests_profiles resource constraint to catch virtually any file
- Reduce number of queries made for merge_requests/:id/diffs
- Sensible state specific default sort order for issues and merge requests !5453 (tomb0y)
- Fix RequestProfiler::Middleware error when code is reloaded in development
v 8.10.3 (unreleased)
- Fix hooks missing on imported GitLab projects
...
...
config/initializers/request_profiler.rb
View file @
2e06800b
require
'gitlab/request_profiler/middleware'
Rails
.
application
.
configure
do
|
config
|
config
.
middleware
.
use
(
Gitlab
::
RequestProfiler
::
Middleware
)
end
lib/gitlab/request_profiler/middleware.rb
View file @
2e06800b
require
'ruby-prof'
require
'gitlab/request_profiler'
module
Gitlab
module
RequestProfiler
...
...
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