class RailsMiniProfiler::Tracing::Trace
A simplified representation of a trace.
Is transformed into [RailsMiniProfiler::Trace] when recording has finished.
@see guides.rubyonrails.org/active_support_instrumentation.html
@!attribute id
@return [Integer] the trace ID
@!attribute name
@return [Integer] the trace type.
@!attribute start
@return [Integer] the trace start as microsecond timestamp
@!attribute finish
@return [Integer] the trace finish as microsecond timestamp
@!attribute duration
@return [Integer] the trace duration
@!attribute payload
@return [Hash] a subset of trace data
@!attribute backtrace
@return [String] the line where this trace was recorded
@!attribute allocations
@return [Integer] the number of alloactions
@!attribute created_at
@return [DateTime] the creation date
@!attribute updated_at
@return [DateTime] the last updated date
@api private
Attributes
allocations[RW]
backtrace[RW]
created_at[RW]
duration[RW]
finish[RW]
id[RW]
name[RW]
payload[RW]
start[RW]
updated_at[RW]
Public Instance Methods
ignore?()
click to toggle source
# File lib/rails_mini_profiler/tracing/trace.rb, line 36 def ignore? false end
transform!()
click to toggle source
# File lib/rails_mini_profiler/tracing/trace.rb, line 40 def transform! self end