Class: NewRelic::ScopedMethodTraceStats
- Inherits:
-
MethodTraceStats
- Object
- MethodTraceStats
- NewRelic::ScopedMethodTraceStats
- Defined in:
- lib/new_relic/stats.rb
Instance Attribute Summary
Attributes inherited from MethodTraceStats
#call_count, #max_call_time, #min_call_time, #sum_of_squares, #total_call_time, #total_exclusive_time
Instance Method Summary collapse
-
#initialize(unscoped_stats) ⇒ ScopedMethodTraceStats
constructor
A new instance of ScopedMethodTraceStats.
- #trace_call(call_time, exclusive_time = call_time) ⇒ Object
Methods inherited from MethodTraceStats
#begin_time, #begin_time=, #end_time, #end_time=, #freeze, #increment_count, #record_apdex_f, #record_apdex_s, #record_apdex_t, #record_data_point
Methods included from Stats
#absent?, #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, #merge, #merge!, #multiply_by, #reset, #round!, #split, #standard_deviation, #summary, #time_percentage, #to_s
Constructor Details
#initialize(unscoped_stats) ⇒ ScopedMethodTraceStats
Returns a new instance of ScopedMethodTraceStats.
270 271 272 273 274 |
# File 'lib/new_relic/stats.rb', line 270 def initialize(unscoped_stats) super() @unscoped_stats = unscoped_stats end |
Instance Method Details
#trace_call(call_time, exclusive_time = call_time) ⇒ Object
276 277 278 279 |
# File 'lib/new_relic/stats.rb', line 276 def trace_call(call_time, exclusive_time = call_time) @unscoped_stats.trace_call call_time, exclusive_time super call_time, exclusive_time end |