Class: NewRelic::ScopedMethodTraceStats

Inherits:
MethodTraceStats show all
Defined in:
lib/new_relic/stats.rb

Instance Attribute Summary

Attributes inherited from StatsBase

#call_count, #max_call_time, #min_call_time, #sum_of_squares, #total_call_time, #total_exclusive_time

Instance Method Summary collapse

Methods inherited from MethodTraceStats

#increment_count, #record_data_point

Methods inherited from StatsBase

#begin_time, #begin_time=, #end_time, #end_time=, #freeze, #to_json

Methods included from Stats

#absent?, #apdex_score, #as_percentage, #as_percentage_of, #average_call_time, #average_exclusive_time, #calls_per_minute, #calls_per_second, #duration, #exclusive_time_percentage, #fraction_of, #get_apdex, #is_reset?, #merge, #merge!, #multiply_by, #reset, #round!, #split, #standard_deviation, #summary, #time_percentage, #time_str, #to_s, #total_call_time_per_minute

Constructor Details

#initialize(unscoped_stats) ⇒ ScopedMethodTraceStats

Returns a new instance of ScopedMethodTraceStats.



345
346
347
348
# File 'lib/new_relic/stats.rb', line 345

def initialize(unscoped_stats)
  super()
  @unscoped_stats = unscoped_stats
end

Instance Method Details

#record_multiple_data_points(total_value, count = 1) ⇒ Object



353
354
355
356
# File 'lib/new_relic/stats.rb', line 353

def record_multiple_data_points(total_value, count=1)
  @unscoped_stats.record_multiple_data_points(total_value, count)
  super total_value, count
end

#trace_call(call_time, exclusive_time = call_time) ⇒ Object



349
350
351
352
# File 'lib/new_relic/stats.rb', line 349

def trace_call(call_time, exclusive_time = call_time)
  @unscoped_stats.trace_call call_time, exclusive_time
  super call_time, exclusive_time
end

#unscoped_statsObject



357
358
359
# File 'lib/new_relic/stats.rb', line 357

def unscoped_stats
  @unscoped_stats
end