add comment aabout hotspots

This commit is contained in:
Pawel Chojnacki 2018-01-22 20:55:48 +01:00
parent 2b5a639d79
commit 098cf7d257
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ module Gitlab
end
define_singleton_method(name) do
# inlining fetch_metric method to avoid method call overhead when instrumenting hot spots
@@_metrics_provider_cache[name] || init_metric(type, name, opts, &block)
end
end