Class: OrangeTap::Event

Inherits:
Data
  • Object
show all
Defined in:
lib/orange_tap/event.rb

Overview

Lightweight, immutable event created inside the TracePoint hook. Only numeric/symbol/Module references are captured here (no tp.binding, no tp.parameters, no string building) so the hook body stays cheap.

Instance Attribute Summary collapse

Instance Attribute Details

#defined_classObject (readonly)

Returns the value of attribute defined_class

Returns:

  • (Object)

    the current value of defined_class



7
8
9
# File 'lib/orange_tap/event.rb', line 7

def defined_class
  @defined_class
end

#method_idObject (readonly)

Returns the value of attribute method_id

Returns:

  • (Object)

    the current value of method_id



7
8
9
# File 'lib/orange_tap/event.rb', line 7

def method_id
  @method_id
end

#thread_idObject (readonly)

Returns the value of attribute thread_id

Returns:

  • (Object)

    the current value of thread_id



7
8
9
# File 'lib/orange_tap/event.rb', line 7

def thread_id
  @thread_id
end

#timestamp_nsObject (readonly)

Returns the value of attribute timestamp_ns

Returns:

  • (Object)

    the current value of timestamp_ns



7
8
9
# File 'lib/orange_tap/event.rb', line 7

def timestamp_ns
  @timestamp_ns
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



7
8
9
# File 'lib/orange_tap/event.rb', line 7

def type
  @type
end