Class: Datadog::Profiling::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/ddtrace/profiling/event.rb

Overview

Describes a sample of some data obtained from the runtime.

Direct Known Subclasses

Datadog::Profiling::Events::Stack

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timestamp = nil) ⇒ Event

Returns a new instance of Event.



9
10
11
# File 'lib/ddtrace/profiling/event.rb', line 9

def initialize(timestamp = nil)
  @timestamp = timestamp || Time.now.utc.to_f
end

Instance Attribute Details

#timestampObject (readonly)

Returns the value of attribute timestamp.



6
7
8
# File 'lib/ddtrace/profiling/event.rb', line 6

def timestamp
  @timestamp
end