Module: Flexirest::ControllerInstrumentation::ClassMethods

Defined in:
lib/flexirest/instrumentation.rb

Instance Method Summary collapse

Instance Method Details

#log_process_action(payload) ⇒ Object



48
49
50
51
52
53
# File 'lib/flexirest/instrumentation.rb', line 48

def log_process_action(payload)
  messages, time_spent, calls_made = super, payload[:flexirest_time_spent], payload[:flexirest_calls_made]
  messages << ("#{Flexirest.name}: %.1fms for %d calls" % [time_spent.to_f, calls_made]) if calls_made
  Flexirest::Instrumentation.reset
  messages
end