Methods

Files

Rack::MiniProfiler::CustomTimerStruct

Timing system for a custom timers such as cache, redis, RPC, external API calls, etc.

Public Class Methods

new(type, duration_ms, page, parent) click to toggle source
# File Ruby/lib/mini_profiler/custom_timer_struct.rb, line 9
def initialize(type, duration_ms, page, parent)
  @parent = parent
  @page = page
  @type = type

  super("Type" => type,
        "StartMilliseconds" => ((Time.now.to_f * 1000).to_i - page['Started']) - duration_ms,
        "DurationMilliseconds" => duration_ms,
        "ParentTimingId" => nil)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.