add comment aabout hotspots
This commit is contained in:
parent
2b5a639d79
commit
098cf7d257
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue