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.
7 8 9 10 |
# File 'lib/datadog/profiling/pprof/payload.rb', line 7 def initialize(data, types) super self.types = types || [] end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
6 7 8 |
# File 'lib/datadog/profiling/pprof/payload.rb', line 6 def data @data end |
#types ⇒ Object
Returns the value of attribute types
6 7 8 |
# File 'lib/datadog/profiling/pprof/payload.rb', line 6 def types @types end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/datadog/profiling/pprof/payload.rb', line 12 def to_s data end |