Class: Datadog::Profiling::Pprof::Payload
- Inherits:
-
Struct
- Object
- Struct
- Datadog::Profiling::Pprof::Payload
- Defined in:
- lib/datadog/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.
9 10 11 12 |
# File 'lib/datadog/profiling/pprof/payload.rb', line 9 def initialize(data, types) super self.types = types || [] end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
8 9 10 |
# File 'lib/datadog/profiling/pprof/payload.rb', line 8 def data @data end |
#types ⇒ Object
Returns the value of attribute types
8 9 10 |
# File 'lib/datadog/profiling/pprof/payload.rb', line 8 def types @types end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/datadog/profiling/pprof/payload.rb', line 14 def to_s data end |