Method: CiviCrm::Profiling::ClassMethods#profile

Defined in:
lib/civicrm/profiling.rb

#profile(&block) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/civicrm/profiling.rb', line 14

def profile(&block)
  self._profile = []

  block.call

  _profile.dup
ensure
  self._profile = nil
end