Class: Datadog::Profiling::Pprof::Payload

Inherits:
Struct
  • Object
show all
Defined in:
lib/datadog/profiling/pprof/payload.rb

Overview

Pprof output data. Includes encoded data and list of types.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



6
7
8
# File 'lib/datadog/profiling/pprof/payload.rb', line 6

def data
  @data
end

#typesObject

Returns the value of attribute types

Returns:

  • (Object)

    the current value of types



6
7
8
# File 'lib/datadog/profiling/pprof/payload.rb', line 6

def types
  @types
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/datadog/profiling/pprof/payload.rb', line 12

def to_s
  data
end