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, #span_id, #thread_id, #total_frame_count, #trace_id

Attributes inherited from Datadog::Profiling::Event

#timestamp

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of StackSample.



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/ddtrace/profiling/events/stack.rb', line 50

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

  @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.



46
47
48
# File 'lib/ddtrace/profiling/events/stack.rb', line 46

def cpu_time_interval_ns
  @cpu_time_interval_ns
end

#wall_time_interval_nsObject (readonly)

Returns the value of attribute wall_time_interval_ns.



46
47
48
# File 'lib/ddtrace/profiling/events/stack.rb', line 46

def wall_time_interval_ns
  @wall_time_interval_ns
end