Class: Datadog::Profiling::Events::StackSample
- Inherits:
-
Stack
- Object
- Datadog::Profiling::Event
- Stack
- Datadog::Profiling::Events::StackSample
- Defined in:
- lib/ddtrace/profiling/events/stack.rb
Overview
Describes a stack sample
Instance Attribute Summary collapse
-
#cpu_time_interval_ns ⇒ Object
readonly
Returns the value of attribute cpu_time_interval_ns.
-
#wall_time_interval_ns ⇒ Object
readonly
Returns the value of attribute wall_time_interval_ns.
Attributes inherited from Stack
#frames, #hash, #root_span_id, #span_id, #thread_id, #total_frame_count, #trace_resource
Attributes inherited from Datadog::Profiling::Event
Instance Method Summary collapse
-
#initialize(timestamp, frames, total_frame_count, thread_id, root_span_id, span_id, trace_resource, cpu_time_interval_ns, wall_time_interval_ns) ⇒ StackSample
constructor
A new instance of StackSample.
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( , frames, total_frame_count, thread_id, root_span_id, span_id, trace_resource, cpu_time_interval_ns, wall_time_interval_ns ) super( , 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_ns ⇒ Object (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_ns ⇒ Object (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 |