Commit 098cf7d2 authored by Pawel Chojnacki's avatar Pawel Chojnacki

add comment aabout hotspots

parent 2b5a639d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment