Class: USDT::Provider

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider, mod) ⇒ Provider

Returns a new instance of Provider.



11
12
13
14
# File 'lib/usdt/stubs/provider.rb', line 11

def initialize(provider, mod)
  @provider = provider
  @mod = mod
end

Instance Attribute Details

#modObject (readonly)

Returns the value of attribute mod.



5
6
7
# File 'lib/usdt/stubs/provider.rb', line 5

def mod
  @mod
end

#providerObject (readonly)

Returns the value of attribute provider.



5
6
7
# File 'lib/usdt/stubs/provider.rb', line 5

def provider
  @provider
end

Class Method Details

.create(provider, mod) ⇒ Object



9
10
11
# File 'ext/usdt/real/usdt.c', line 9

def self.create(provider, mod)
  new(provider, mod)
end

Instance Method Details

#disableObject



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

def disable
  true
end

#enableObject



12
13
14
# File 'ext/usdt/real/usdt.c', line 12

def enable
  true
end

#probe(*args) ⇒ Object



10
11
12
# File 'ext/usdt/real/usdt.c', line 10

def probe(*args)
  USDT::Probe.new(*args)
end

#remove_probeObject



11
# File 'ext/usdt/real/usdt.c', line 11

static VALUE provider_remove_probe(VALUE self, VALUE probe);