Module: Measurable

Extended by:
Gitlab::Utils::Override
Included in:
Projects::ImportExport::ExportService
Defined in:
app/services/concerns/measurable.rb

Overview

DummyService.prepend(Measurable) “`

In case when we are prepending a module from the `EE` namespace with EE features we need to prepend Measurable after prepending `EE` module. This way Measurable will be at the bottom of the ancestor chain, in order to measure execution of `EE` features as well “`

class DummyService
  def execute
    # ...
  end
end

DummyService.prepend_mod_with('DummyService')
DummyService.prepend(Measurable)

“`

Instance Method Summary collapse

Methods included from Gitlab::Utils::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

Instance Method Details

#execute(*args) ⇒ Object


34
35
36
# File 'app/services/concerns/measurable.rb', line 34

def execute(*args)
  measuring? ? ::Gitlab::Utils::Measuring.new(base_log_data).with_measuring { super(*args) } : super(*args)
end