Class: Datadog::Profiling::Events::StackSample

Inherits:
Stack show all
Defined in:
lib/ddtrace/profiling/events/stack.rb

Overview

Describes a stack sample

Instance Attribute Summary collapse

Attributes inherited from Stack

#frames, #hash, #root_span_id, #span_id, #thread_id, #total_frame_count, #trace_resource

Attributes inherited from Datadog::Profiling::Event

#timestamp

Instance Method Summary collapse

Constructor Details

#initialize(timestamp, frames, total_frame_count, thread_id, root_span_id, span_id, trace_resource, cpu_time_interval_ns, wall_time_interval_ns) ⇒ StackSample

Returns a new instance of StackSample.



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/ddtrace/profiling/events/stack.rb', line 54

def initialize(
  timestamp,
  frames,
  total_frame_count,
  thread_id,
  root_span_id,
  span_id,
  trace_resource,
  cpu_time_interval_ns,
  wall_time_interval_ns
)
  super(
    timestamp,
    frames,
    total_frame_count,
    thread_id,
    root_span_id,
    span_id,
    trace_resource
  )

  @cpu_time_interval_ns = cpu_time_interval_ns
  @wall_time_interval_ns = wall_time_interval_ns
end

Instance Attribute Details

#cpu_time_interval_nsObject (readonly)

Returns the value of attribute cpu_time_interval_ns.



50
51
52
# File 'lib/ddtrace/profiling/events/stack.rb', line 50

def cpu_time_interval_ns
  @cpu_time_interval_ns
end

#wall_time_interval_nsObject (readonly)

Returns the value of attribute wall_time_interval_ns.



50
51
52
# File 'lib/ddtrace/profiling/events/stack.rb', line 50

def wall_time_interval_ns
  @wall_time_interval_ns
end