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
9fc7ca5e
Commit
9fc7ca5e
authored
Oct 24, 2019
by
Ronald van Zon
Committed by
Evan Read
Oct 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update profiling to include logger example
parent
9ec74689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
doc/development/profiling.md
doc/development/profiling.md
+4
-0
No files found.
doc/development/profiling.md
View file @
9fc7ca5e
...
@@ -42,6 +42,10 @@ Passing a `logger:` keyword argument to `Gitlab::Profiler.profile` will send
...
@@ -42,6 +42,10 @@ Passing a `logger:` keyword argument to `Gitlab::Profiler.profile` will send
ActiveRecord and ActionController log output to that logger. Further options are
ActiveRecord and ActionController log output to that logger. Further options are
documented with the method source.
documented with the method source.
```
ruby
Gitlab
::
Profiler
.
profile
(
'/gitlab-org/gitlab-test'
,
user:
User
.
first
,
logger:
Logger
.
new
(
STDOUT
))
```
There is also a RubyProf printer available:
There is also a RubyProf printer available:
`Gitlab::Profiler::TotalTimeFlatPrinter`
. This acts like
`Gitlab::Profiler::TotalTimeFlatPrinter`
. This acts like
`RubyProf::FlatPrinter`
, but its
`min_percent`
option works on the method's
`RubyProf::FlatPrinter`
, but its
`min_percent`
option works on the method's
...
...
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