Class: SelectRailsLog::Printer::BoxplotPrinter

Inherits:
BasePrinter show all
Defined in:
lib/select_rails_log/printer/boxplot_printer.rb

Constant Summary collapse

PLOT_TOTAL_DURATION =
"Total duration"

Constants included from Constants

Constants::ACTION, Constants::CLIENT, Constants::COMPLETED, Constants::CONTROLLER, Constants::DEBUG, Constants::DEFAULT_OUTPUT, Constants::DURATION, Constants::HTTP_METHOD, Constants::HTTP_STATUS, Constants::ID, Constants::INTERVAL, Constants::LOGS, Constants::MESSAGE, Constants::PARAMETERS, Constants::PATH, Constants::PERFORMANCE, Constants::PERFORMANCE_ACTIVE_RECORD, Constants::PERFORMANCE_ALLOCATIONS, Constants::PERFORMANCE_VIEWS, Constants::PID, Constants::RAW_LOGS, Constants::REQUEST_ID, Constants::SEVERITY, Constants::STARTED, Constants::TIME

Instance Attribute Summary

Attributes inherited from Extension

#options

Instance Method Summary collapse

Methods inherited from BasePrinter

#output_directory?, #output_stdout?, #print, #runnable?

Methods inherited from Extension

option_initializers, #runnable?

Constructor Details

#initializeBoxplotPrinter

Returns a new instance of BoxplotPrinter.



18
19
20
21
22
23
# File 'lib/select_rails_log/printer/boxplot_printer.rb', line 18

def initialize(*)
  super

  @plot_data = Hash.new { |h, k| h[k] = [] }
  @controller_actions = Hash.new { |h, k| h[k] = {} }
end

Instance Method Details

#closeObject



25
26
27
28
# File 'lib/select_rails_log/printer/boxplot_printer.rb', line 25

def close
  print_plot
  super
end