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, #duration, #exclusive_time_percentage, #fraction_of, #get_apdex, #is_reset?, #merge, #merge!, #multiply_by, #reset, #round!, #split, #standard_deviation, #sum_merge!, #summary, #time_percentage, #time_str, #to_s, #total_call_time_per_minute

Constructor Details

#initialize(unscoped_stats) ⇒ ScopedMethodTraceStats

Returns a new instance of ScopedMethodTraceStats.



351
352
353
354
# File 'lib/new_relic/stats.rb', line 351

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

Instance Method Details

#record_multiple_data_points(total_value, count = 1) ⇒ Object



359
360
361
362
# File 'lib/new_relic/stats.rb', line 359

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



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

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



363
364
365
# File 'lib/new_relic/stats.rb', line 363

def unscoped_stats
  @unscoped_stats
end