Class: USDT::Probe

Inherits:
Object
  • Object
show all
Defined in:
lib/usdt/stubs/probe.rb,
ext/usdt/real/usdt.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(function, name, *args) ⇒ Probe

Returns a new instance of Probe.



5
6
7
8
9
# File 'lib/usdt/stubs/probe.rb', line 5

def initialize(function, name, *args)
  @function = function.to_sym
  @name = name.to_sym
  @arguments = args
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



18
19
20
# File 'ext/usdt/real/usdt.c', line 18

def arguments
  @arguments
end

#functionObject (readonly)

Returns the value of attribute function.



16
17
18
# File 'ext/usdt/real/usdt.c', line 16

def function
  @function
end

#nameObject (readonly)

Returns the value of attribute name.



17
18
19
# File 'ext/usdt/real/usdt.c', line 17

def name
  @name
end

Instance Method Details

#enabled?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'ext/usdt/real/usdt.c', line 14

def enabled?
  false
end

#fire(*args) ⇒ Object



15
16
17
# File 'ext/usdt/real/usdt.c', line 15

def fire(*args)
  false
end