chrisa-ruby-dtrace 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/lib/dtrace/provider.rb +14 -13
- data/lib/dtrace/version.rb +1 -1
- metadata +3 -3
data/History.txt
CHANGED
data/lib/dtrace/provider.rb
CHANGED
@@ -209,20 +209,21 @@ class Dtrace
|
|
209
209
|
f.generate
|
210
210
|
Dtrace::Dof.loaddof(f, @module)
|
211
211
|
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
end
|
212
|
+
eval "
|
213
|
+
class Dtrace::Probe::#{@class}
|
214
|
+
def self.stubs=(s)
|
215
|
+
@@probes = s
|
216
|
+
end
|
217
|
+
def self.method_missing(name)
|
218
|
+
name = name.to_s
|
219
|
+
unless @@probes[name].nil?
|
220
|
+
if @@probes[name].is_enabled?
|
221
|
+
yield @@probes[name]
|
223
222
|
end
|
224
|
-
|
225
|
-
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end"
|
226
|
+
eval "Dtrace::Probe::#{@class}.stubs = stubs"
|
226
227
|
end
|
227
228
|
|
228
229
|
private
|
data/lib/dtrace/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chrisa-ruby-dtrace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Andrews
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-08 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
requirements: []
|
156
156
|
|
157
157
|
rubyforge_project: ruby-dtrace
|
158
|
-
rubygems_version: 1.0
|
158
|
+
rubygems_version: 1.2.0
|
159
159
|
signing_key:
|
160
160
|
specification_version: 2
|
161
161
|
summary: Ruby-DTrace is Ruby bindings for Dtrace, which allows you to add DTrace probes to your Ruby programs, and to write D-based programs with Ruby.
|