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
Jérome Perrin
gitlab-ce
Commits
1256dabb
Commit
1256dabb
authored
Feb 01, 2016
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instrument all Gitlab::Git instance methods
parent
48eb2cd6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
config/initializers/metrics.rb
config/initializers/metrics.rb
+4
-2
No files found.
config/initializers/metrics.rb
View file @
1256dabb
...
...
@@ -49,12 +49,14 @@ if Gitlab::Metrics.enabled?
config
.
instrument_instance_methods
(
Gitlab
::
Shell
)
config
.
instrument_methods
(
Gitlab
::
Git
)
config
.
instrument_instance_methods
(
Gitlab
::
Git
::
Repository
)
Gitlab
::
Git
.
constants
.
each
do
|
name
|
const
=
Gitlab
::
Git
.
const_get
(
name
)
config
.
instrument_methods
(
const
)
if
const
.
is_a?
(
Module
)
next
unless
const
.
is_a?
(
Module
)
config
.
instrument_methods
(
const
)
config
.
instrument_instance_methods
(
const
)
end
Dir
[
Rails
.
root
.
join
(
'app'
,
'finders'
,
'*.rb'
)].
each
do
|
path
|
...
...
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