vendor/bundle/ruby/2.3.0/gems/sqreen-1.10.5/lib/sqreen/metrics/base.rb
# create a new empty sample and publish the last one
# @param time [Time] Time of start/finish
create a new empty sample and publish the last one
create a new empty sample and publish the last one
def next_sample(time)
        finalize_sample(time) unless @sample.nil?
        current_sample = @sample
        new_sample(time)
        current_sample
      end
def next_sample ( time ) finalize_sample ( time ) unless @sample . nil? current_sample = @sample new_sample ( time ) current_sample end
create a new empty sample and publish the last one
create a new empty sample and publish the last one
time
Time of start/finish
Time of start / finish