Sha256: 4f82e5a4039a69d2da14670cd48115bfbc4ff510b64010c5abd172137e3ead43
Contents?: true
Size: 1.35 KB
Versions: 4
Compression:
Stored size: 1.35 KB
Contents
# frozen_string_literal: true module RailsMiniProfiler module Tracing # A simplified representation of a trace. # # Is transformed into [RailsMiniProfiler::Trace] when recording has finished. # # @see https://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 class Trace < RailsMiniProfiler::Models::BaseModel attr_accessor :id, :name, :start, :finish, :duration, :payload, :backtrace, :allocations, :created_at, :updated_at def ignore? false end def transform! self end end end end
Version data entries
4 entries across 4 versions & 1 rubygems