Class: BrainzLab::Rails::Collectors::ActionView

Inherits:
Base
  • Object
show all
Defined in:
lib/brainzlab/rails/collectors/action_view.rb

Overview

Collects Action View rendering events Tracks template, partial, and layout rendering performance

Instance Attribute Summary

Attributes inherited from Base

#configuration

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from BrainzLab::Rails::Collectors::Base

Instance Method Details

#process(event_data) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/brainzlab/rails/collectors/action_view.rb', line 9

def process(event_data)
  case event_data[:name]
  when 'render_template.action_view'
    handle_render_template(event_data)
  when 'render_partial.action_view'
    handle_render_partial(event_data)
  when 'render_collection.action_view'
    handle_render_collection(event_data)
  when 'render_layout.action_view'
    handle_render_layout(event_data)
  end
end