Class: USDT::Provider
- Inherits:
-
Object
- Object
- USDT::Provider
- Defined in:
- lib/usdt/stubs/provider.rb,
ext/usdt/real/usdt.c
Instance Attribute Summary collapse
-
#mod ⇒ Object
readonly
Returns the value of attribute mod.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Class Method Summary collapse
Instance Method Summary collapse
- #disable ⇒ Object
- #enable ⇒ Object
-
#initialize(provider, mod) ⇒ Provider
constructor
A new instance of Provider.
- #probe(*args) ⇒ Object
- #remove_probe ⇒ Object
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
#mod ⇒ Object (readonly)
Returns the value of attribute mod.
5 6 7 |
# File 'lib/usdt/stubs/provider.rb', line 5 def mod @mod end |
#provider ⇒ Object (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
#disable ⇒ Object
13 14 15 |
# File 'ext/usdt/real/usdt.c', line 13 def disable true end |
#enable ⇒ Object
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_probe ⇒ Object
11 |
# File 'ext/usdt/real/usdt.c', line 11
static VALUE provider_remove_probe(VALUE self, VALUE probe);
|