Class Analyzer
In: lib/production_log/analyzer.rb
Parent: Object

Calculates statistics for production logs.

Methods

Attributes

db_times  [R]  An Array of all the request database times for the log file.
logfile_name  [R]  The logfile being read by the Analyzer.
render_times  [R]  An Array of all the request render times for the log file.
request_times  [R]  An Array of all the request total times for the log file.

Public Class methods

Generates and sends an email report with lots of fun stuff in it. This way, Mail.app will behave when given tabs.

Creates a new Analyzer that will read data from logfile_name.

Public Instance methods

The average total database time for all requests.

The average total render time for all requests.

The average total request time for all requests.

The standard deviation of the total database time for all requests.

A list of count/min/max/avg/std dev for database times.

Processes the log file collecting statistics from each found LogEntry.

The standard deviation of the total render time for all requests.

A list of count/min/max/avg/std dev for request times.

Builds a report containing count slow items.

The standard deviation of the total request time for all requests.

A list of count/min/max/avg/std dev for request times.

The limit slowest total database times.

The limit slowest total render times for all requests.

The limit slowest total request times.

[Validate]