class TestProf::EventProf::ProfilersGroup

Multiple profilers wrapper

Attributes

profilers[R]

Public Class Methods

new(event:, **options) click to toggle source
# File lib/test_prof/event_prof/profiler.rb, line 124
def initialize(event:, **options)
  events = event.split(",")
  @profilers = events.map do |ev|
    Profiler.new(event: ev, **options)
  end
end

Public Instance Methods

each(&block) click to toggle source
# File lib/test_prof/event_prof/profiler.rb, line 131
def each(&block)
  if block
    @profilers.each(&block)
  else
    @profilers.each
  end
end
events() click to toggle source
# File lib/test_prof/event_prof/profiler.rb, line 139
def events
  @profilers.map(&:event)
end