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

Inherits:
Struct
  • Object
show all
Defined in:
lib/ddtrace/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.



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

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



7
8
9
# File 'lib/ddtrace/profiling/pprof/payload.rb', line 7

def data
  @data
end

#typesObject

Returns the value of attribute types

Returns:

  • (Object)

    the current value of types



7
8
9
# File 'lib/ddtrace/profiling/pprof/payload.rb', line 7

def types
  @types
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/ddtrace/profiling/pprof/payload.rb', line 13

def to_s
  data
end