Method: OneApm::Metrics::Stats#merge!

Defined in:
lib/one_apm/metrics/stats.rb

#merge!(other) ⇒ Object



46
47
48
49
50
51
52
53
54
# File 'lib/one_apm/metrics/stats.rb', line 46

def merge!(other)
  @min_call_time = other.min_call_time if min_time_less?(other)
  @max_call_time = other.max_call_time if other.max_call_time > max_call_time
  @total_call_time      += other.total_call_time
  @total_exclusive_time += other.total_exclusive_time
  @sum_of_squares       += other.sum_of_squares
  @call_count += other.call_count
  self
end