diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-08-03 17:08:41 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-08-03 17:08:41 +0200 |
commit | 9a934e25011baa7b68239ce6fdbe010ab88cf86f (patch) | |
tree | 1be6165f3025d3e9fc0e3fcbf3a9d032f1dbd4ee /config | |
parent | 1ee1113696702919d2593839d09042c7e6391b89 (diff) | |
download | gitlab-ce-instrument-gitlab-highlight.tar.gz |
Instrument Gitlab::Highlightinstrument-gitlab-highlight
This class does quite a few interesting things so let's instrument it so
we can see how much time is being spent in this class.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/metrics.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/metrics.rb b/config/initializers/metrics.rb index b68a09ce730..cc8208db3c1 100644 --- a/config/initializers/metrics.rb +++ b/config/initializers/metrics.rb @@ -145,6 +145,9 @@ if Gitlab::Metrics.enabled? config.instrument_methods(Rinku) config.instrument_instance_methods(Repository) + + config.instrument_methods(Gitlab::Highlight) + config.instrument_instance_methods(Gitlab::Highlight) end GC::Profiler.enable |