Class: Gitlab::Memory::Reports::JemallocStats
- Inherits:
-
Object
- Object
- Gitlab::Memory::Reports::JemallocStats
- Defined in:
- lib/gitlab/memory/reports/jemalloc_stats.rb
Instance Method Summary collapse
Instance Method Details
#active? ⇒ Boolean
17 18 19 |
# File 'lib/gitlab/memory/reports/jemalloc_stats.rb', line 17 def active? Feature.enabled?(:report_jemalloc_stats, type: :ops) end |
#name ⇒ Object
7 8 9 |
# File 'lib/gitlab/memory/reports/jemalloc_stats.rb', line 7 def name 'jemalloc_stats' end |
#run(writer) ⇒ Object
11 12 13 14 15 |
# File 'lib/gitlab/memory/reports/jemalloc_stats.rb', line 11 def run(writer) return unless active? Gitlab::Memory::Jemalloc.dump_stats(writer) end |