Method: OneApm::Metrics::Stats#==

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

#==(other) ⇒ Object



121
122
123
124
125
126
127
128
129
130
131
# File 'lib/one_apm/metrics/stats.rb', line 121

def ==(other)
  other.class == self.class &&
  (
    @min_call_time        == other.min_call_time &&
    @max_call_time        == other.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
  )
end