Class: Datadog::Profiling::Pprof::Payload
- Inherits:
-
Struct
- Object
- Struct
- Datadog::Profiling::Pprof::Payload
- Defined in:
- lib/ddtrace/profiling/pprof/payload.rb
Overview
Pprof output data. Includes encoded data and list of types.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#types ⇒ Object
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize(data, types) ⇒ Payload
constructor
A new instance of Payload.
- #to_s ⇒ Object
Constructor Details
#initialize(data, types) ⇒ Payload
Returns a new instance of Payload.
8 9 10 11 |
# File 'lib/ddtrace/profiling/pprof/payload.rb', line 8 def initialize(data, types) super self.types = types || [] end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
7 8 9 |
# File 'lib/ddtrace/profiling/pprof/payload.rb', line 7 def data @data end |
#types ⇒ Object
Returns the value of attribute types
7 8 9 |
# File 'lib/ddtrace/profiling/pprof/payload.rb', line 7 def types @types end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/ddtrace/profiling/pprof/payload.rb', line 13 def to_s data end |