rb-trace 0.4 → 0.5
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/.gitignore +2 -0
- data/ChangeLog +335 -0
- data/NEWS +4 -0
- data/Rakefile +39 -85
- data/ext/.gitignore +5 -0
- data/ext/trace.c +1 -1
- data/lib/.gitignore +1 -0
- data/lib/trace_mod.rb +11 -2
- data/test/unit/.gitignore +1 -0
- metadata +21 -16
data/.gitignore
ADDED
data/ChangeLog
ADDED
@@ -0,0 +1,335 @@
|
|
1
|
+
2011-02-13 rocky <rockyb@rubyforge.org>
|
2
|
+
|
3
|
+
* Rakefile, lib/trace_mod.rb: Add support for send, leave, and yield
|
4
|
+
events.
|
5
|
+
|
6
|
+
2011-02-11 rocky <rockyb@rubyforge.org>
|
7
|
+
|
8
|
+
* Rakefile, ext/trace.c: Adding --verbose to test/unit has changed
|
9
|
+
over the years
|
10
|
+
|
11
|
+
2010-12-25 rocky <rockyb@rubyforge.org>
|
12
|
+
|
13
|
+
* NEWS, README.textile, Rakefile: Small packaging changes.
|
14
|
+
|
15
|
+
2010-12-25 rocky <rockyb@rubyforge.org>
|
16
|
+
|
17
|
+
I hate conflicted merges
|
18
|
+
|
19
|
+
2010-12-24 rocky <rockyb@rubyforge.org>
|
20
|
+
|
21
|
+
* ChangeLog, NEWS: Update NEWS for Dec 25 release
|
22
|
+
|
23
|
+
2010-12-10 rocky <rockyb@rubyforge.org>
|
24
|
+
|
25
|
+
* ChangeLog, NEWS, Rakefile, ext/trace.c: Giant Madagascar Day
|
26
|
+
release.
|
27
|
+
|
28
|
+
2010-12-01 rocky <rockyb@rubyforge.org>
|
29
|
+
|
30
|
+
* ext/trace.c, lib/tracefilter.rb: Try not ignoring BLOCK types.
|
31
|
+
|
32
|
+
2010-09-12 rocky <rockyb@rubyforge.org>
|
33
|
+
|
34
|
+
* LICENSE, NEWS, Rakefile, ext/trace.c: Get ready for 0.2 release.
|
35
|
+
|
36
|
+
2010-05-15 rocky <rockyb@rubyforge.org>
|
37
|
+
|
38
|
+
* lib/tracefilter.rb: Turn off tracing for any calls from this
|
39
|
+
excluded frames. See note in change. There may be a bug in my Ruby
|
40
|
+
1.9 patch that this tickles. So this change we may have to backed
|
41
|
+
out, if we can't fix the Ruby patch.
|
42
|
+
|
43
|
+
2010-04-28 rocky <rockyb@rubyforge.org>
|
44
|
+
|
45
|
+
* lib/eventbuffer.rb: Save return values.
|
46
|
+
|
47
|
+
2010-04-25 rocky <rockyb@rubyforge.org>
|
48
|
+
|
49
|
+
* Rakefile: User needs to use "sudo rake install" when needed.
|
50
|
+
|
51
|
+
2010-04-17 rocky <rockyb@rubyforge.org>
|
52
|
+
|
53
|
+
* lib/trace_mod.rb, lib/tracefilter.rb: trace_mod.rb: add
|
54
|
+
add_trace_func tracefilter.rb: save hook function for testing if
|
55
|
+
it's been added before.
|
56
|
+
|
57
|
+
2010-04-04 rocky <rockyb@rubyforge.org>
|
58
|
+
|
59
|
+
* lib/trace_mod.rb, test/unit/test-event2bitmask.rb,
|
60
|
+
test/unit/test-trace-hook.rb, test/unit/test-trace_mod.rb,
|
61
|
+
test/unit/test-tracefilter.rb: require_relative %w(a b c) =>
|
62
|
+
require_relative 'a/b/c' Starting with SVN revision #26959
|
63
|
+
require_relative no longer accepts an array argument.
|
64
|
+
|
65
|
+
2010-04-03 rocky <rockyb@rubyforge.org>
|
66
|
+
|
67
|
+
* lib/eventbuffer.rb: next_pos, prev_pos -> pred_pos, suc_pos and
|
68
|
+
tidy code a little.
|
69
|
+
|
70
|
+
2010-04-03 rocky <rockyb@rubyforge.org>
|
71
|
+
|
72
|
+
* lib/eventbuffer.rb: Remove debug 'rbdbgr'
|
73
|
+
|
74
|
+
2010-04-03 rocky <rockyb@rubyforge.org>
|
75
|
+
|
76
|
+
* lib/eventbuffer.rb: Add method to get oldest (zeroth) item.
|
77
|
+
|
78
|
+
2010-04-03 rocky <rockyb@rubyforge.org>
|
79
|
+
|
80
|
+
* lib/eventbuffer.rb: Add some more methods based on use.
|
81
|
+
|
82
|
+
2010-04-03 rocky <rockyb@rubyforge.org>
|
83
|
+
|
84
|
+
* lib/eventbuffer.rb, lib/tracefilter.rb,
|
85
|
+
test/unit/test-tracefilter.rb: Put classes under Trace module. So
|
86
|
+
TraceFilter -> Trace::Filter TraceBuffer -> Trace::EventBuffer
|
87
|
+
|
88
|
+
2010-04-02 rocky <rockyb@rubyforge.org>
|
89
|
+
|
90
|
+
* lib/eventbuffer.rb: Handle rings and unlimited buffers that are
|
91
|
+
not their full size better.
|
92
|
+
|
93
|
+
2010-04-01 rocky <rockyb@rubyforge.org>
|
94
|
+
|
95
|
+
* lib/eventbuffer.rb, lib/trace.rb: Small TraceBuffer packaging
|
96
|
+
fixes.
|
97
|
+
|
98
|
+
2010-03-29 rocky <rockyb@rubyforge.org>
|
99
|
+
|
100
|
+
* lib/eventbuffer.rb: More tracing.
|
101
|
+
|
102
|
+
2010-03-29 rocky <rockyb@rubyforge.org>
|
103
|
+
|
104
|
+
* lib/eventbuffer.rb, lib/tracefilter.rb: Excude tracefilter's
|
105
|
+
set_trace_func from tracing. Some small eventbuffer changes.
|
106
|
+
|
107
|
+
2010-03-25 rocky <rockyb@rubyforge.org>
|
108
|
+
|
109
|
+
* lib/eventbuffer.rb, lib/tracefilter.rb: Start routines to save
|
110
|
+
trace events.
|
111
|
+
|
112
|
+
2010-03-24 rocky <rockyb@rubyforge.org>
|
113
|
+
|
114
|
+
* lib/trace_mod.rb: rdoc hacking.
|
115
|
+
|
116
|
+
2010-03-24 rocky <rockyb@rubyforge.org>
|
117
|
+
|
118
|
+
* lib/trace_mod.rb: More rdoc coaxing
|
119
|
+
|
120
|
+
2010-03-24 rocky <rockyb@rubyforge.org>
|
121
|
+
|
122
|
+
Merge branch 'master' of git@github.com:rocky/rb-trace
|
123
|
+
|
124
|
+
2010-03-24 rocky <rockyb@rubyforge.org>
|
125
|
+
|
126
|
+
* lib/trace_mod.rb, lib/tracefilter.rb: rdoc updates
|
127
|
+
|
128
|
+
2010-03-23 rocky <rockyb@rubyforge.org>
|
129
|
+
|
130
|
+
* Rakefile: This time, for sure!
|
131
|
+
|
132
|
+
2010-03-23 rocky <rockyb@rubyforge.org>
|
133
|
+
|
134
|
+
* Rakefile: I hate conflicted merges.
|
135
|
+
|
136
|
+
2010-03-23 rocky <rockyb@rubyforge.org>
|
137
|
+
|
138
|
+
Merge branch 'master' of git@github.com:rocky/rb-trace
|
139
|
+
Conflicts: Rakefile Conflicts: Rakefile
|
140
|
+
|
141
|
+
2010-03-23 rocky <rockyb@rubyforge.org>
|
142
|
+
|
143
|
+
* ext/.gitignore: Ignore config options.
|
144
|
+
|
145
|
+
2010-03-19 rocky <rockyb@rubyforge.org>
|
146
|
+
|
147
|
+
* lib/tracefilter.rb: remove debug print statement.
|
148
|
+
|
149
|
+
2010-03-19 rocky <rockyb@rubyforge.org>
|
150
|
+
|
151
|
+
* Rakefile, lib/tracefilter.rb: tracefilter.rb: provide for hooks to
|
152
|
+
return an exception Rakefile: add "sudo" to install and quicker
|
153
|
+
"rake install" by default by avoiding ri.
|
154
|
+
|
155
|
+
2010-03-15 rocky <rockyb@rubyforge.org>
|
156
|
+
|
157
|
+
Merge branch 'master' of git@github.com:rocky/rb-trace
|
158
|
+
|
159
|
+
2010-03-14 rocky <rockyb@rubyforge.org>
|
160
|
+
|
161
|
+
* lib/tracefilter.rb, test/unit/test-tracefilter.rb: Ruby has been
|
162
|
+
changed to pass th->errinfo via the "klass" parameter on a raise
|
163
|
+
exception. Here we convert that to our hook "arg" parameter.
|
164
|
+
|
165
|
+
2010-03-10 rocky <rocky@ubuntu-vm.(none)>
|
166
|
+
|
167
|
+
* Rakefile: Add sudo when needed
|
168
|
+
|
169
|
+
2010-03-05 rocky <rockyb@rubyforge.org>
|
170
|
+
|
171
|
+
* lib/tracefilter.rb, test/unit/test-tracefilter.rb: Ruby 1.9 patch
|
172
|
+
changes now remove the c-call from set_trace_func as I think it
|
173
|
+
should.
|
174
|
+
|
175
|
+
2010-03-04 rocky <rockyb@rubyforge.org>
|
176
|
+
|
177
|
+
* lib/tracefilter.rb, test/unit/test-tracefilter.rb: Add
|
178
|
+
TraceFilter#member?
|
179
|
+
|
180
|
+
2010-03-01 rocky <rockyb@rubyforge.org>
|
181
|
+
|
182
|
+
* Rakefile: Add "rake install" task
|
183
|
+
|
184
|
+
2010-02-19 rocky <rockyb@rubyforge.org>
|
185
|
+
|
186
|
+
* lib/tracefilter.rb, test/unit/test-tracefilter.rb: There is what
|
187
|
+
looks like a a bug in Ruby where self.class for C functions are not
|
188
|
+
set correctly. Until this is fixed in what I consider a more proper
|
189
|
+
way, we'll hack around this by passing the binding as the optional
|
190
|
+
arg parameter.
|
191
|
+
|
192
|
+
2010-02-16 rocky <rockyb@rubyforge.org>
|
193
|
+
|
194
|
+
* lib/tracefilter.rb, test/unit/test-tracefilter.rb: Filter out
|
195
|
+
IFUNC call stack types.
|
196
|
+
|
197
|
+
2009-11-01 rocky <rockyb@rubyforge.org>
|
198
|
+
|
199
|
+
* ChangeLog, Rakefile: Add rake task to create ChangeLog.
|
200
|
+
|
201
|
+
2009-10-16 R. Bernstein <rocky@gnu.org>
|
202
|
+
|
203
|
+
* lib/trace_mod.rb, test/unit/test-event2bitmask.rb: Add breakpoint
|
204
|
+
event.
|
205
|
+
|
206
|
+
2009-10-11 rocky <rocky@ubuntu-vm.(none)>
|
207
|
+
|
208
|
+
* lib/tracefilter.rb: Pass the original frame seen, not the
|
209
|
+
filtered/checked frame.
|
210
|
+
|
211
|
+
2009-09-27 rocky <rockyb@rubyforge.org>
|
212
|
+
|
213
|
+
* lib/trace_mod.rb: Add event names for all events; add coverage, vm
|
214
|
+
and switch.
|
215
|
+
|
216
|
+
2009-09-19 rocky <rockyb@rubyforge.org>
|
217
|
+
|
218
|
+
* lib/tracefilter.rb: In entering a class the method name can come
|
219
|
+
back "CLASS" and this is not a valid method. NameError is returned
|
220
|
+
here.
|
221
|
+
|
222
|
+
2009-09-17 rockyb <rocky@gnu.org>
|
223
|
+
|
224
|
+
* lib/tracefilter.rb: Back up for BLOCKS as well as CFUNCS. Funky
|
225
|
+
method name and C function method name avoidance (for now)
|
226
|
+
|
227
|
+
2009-09-16 rocky <rockyb@rubyforge.org>
|
228
|
+
|
229
|
+
* lib/tracefilter.rb, test/unit/test-tracefilter.rb: Have to back
|
230
|
+
off and use string method.to_ instead of method in sets, because we
|
231
|
+
can't control or figure out how to get method equality with
|
232
|
+
RubyVM::ThreadFrame.current.method.
|
233
|
+
|
234
|
+
2009-08-18 R. Bernstein <rocky@gnu.org>
|
235
|
+
|
236
|
+
* test/unit/test-event2bitmask.rb, test/unit/test-trace-hook.rb,
|
237
|
+
test/unit/test-trace_mod.rb, test/unit/test-tracefilter.rb: Remove
|
238
|
+
File.join from File.join. It takes an Array!
|
239
|
+
|
240
|
+
2009-08-18 rocky <rockyb@rubyforge.org>
|
241
|
+
|
242
|
+
* lib/trace_mod.rb: Expose bitmask2events.
|
243
|
+
|
244
|
+
2009-08-17 rocky <rockyb@rubyforge.org>
|
245
|
+
|
246
|
+
* lib/tracefilter.rb, test/unit/test-trace-hook.rb,
|
247
|
+
test/unit/test-tracefilter.rb: Exclude only on methods for now.
|
248
|
+
Something is funky with GC and saving excluded instruction
|
249
|
+
sequences.
|
250
|
+
|
251
|
+
2009-08-17 rockyb <rocky@gnu.org>
|
252
|
+
|
253
|
+
* lib/tracefilter.rb, test/unit/test-tracefilter.rb: Walk back IFUNC
|
254
|
+
frames for ignored.
|
255
|
+
|
256
|
+
2009-08-17 rocky <rockyb@rubyforge.org>
|
257
|
+
|
258
|
+
* lib/tracefilter.rb, test/unit/test-tracefilter.rb: Arity of trace
|
259
|
+
hook can be 2 or -3.
|
260
|
+
|
261
|
+
2009-08-16 rocky <rockyb@rubyforge.org>
|
262
|
+
|
263
|
+
* Rakefile, lib/trace.rb, lib/trace_mod.rb, lib/tracefilter.rb,
|
264
|
+
test/unit/test-event2bitmask.rb, test/unit/test-trace.rb,
|
265
|
+
test/unit/test-trace_mod.rb: Fix Rakefile to make the package
|
266
|
+
correctly. Add dependency on rb-threadframe and make sure
|
267
|
+
TraceFilter gets loaded.
|
268
|
+
|
269
|
+
2009-08-16 rocky <rockyb@rubyforge.org>
|
270
|
+
|
271
|
+
* lib/tracefilter.rb, test/unit/test-tracefilter.rb: Add instruction
|
272
|
+
sequence filtering, and convenience method to skip "this one". Test
|
273
|
+
all of this.
|
274
|
+
|
275
|
+
2009-08-14 rockyb <rocky@gnu.org>
|
276
|
+
|
277
|
+
* lib/trace.rb, test/unit/test-trace-hook.rb,
|
278
|
+
test/unit/test-trace.rb: Start testing set_trace_func and
|
279
|
+
setting/getting trace_func masks.
|
280
|
+
|
281
|
+
2009-08-14 R. Bernstein <rocky@gnu.org>
|
282
|
+
|
283
|
+
* lib/trace.rb: Add accessors from Tracer module to set and access
|
284
|
+
trace-event masks.
|
285
|
+
|
286
|
+
2009-08-14 R. Bernstein <rocky@gnu.org>
|
287
|
+
|
288
|
+
* lib/trace.rb, lib/tracefilter.rb: A more complete trace and
|
289
|
+
tracefilter. Seems to a big in set_trace(nil).
|
290
|
+
|
291
|
+
2009-08-14 rocky <rockyb@rubyforge.org>
|
292
|
+
|
293
|
+
* .gitignore, Rakefile: Add tasks to build gem.
|
294
|
+
|
295
|
+
2009-08-13 rocky <rockyb@rubyforge.org>
|
296
|
+
|
297
|
+
* lib/.gitignore, lib/tracefilter.rb: Fill out more of trace
|
298
|
+
filtering. Much more work is still needed.
|
299
|
+
|
300
|
+
2009-08-13 rocky <rockyb@rubyforge.org>
|
301
|
+
|
302
|
+
* ext/trace.c, test/unit/test-trace-hook.rb: Add
|
303
|
+
RubyVM::TraceHook.proc= . More tests and better organized.
|
304
|
+
|
305
|
+
2009-08-13 R. Bernstein <rocky@gnu.org>
|
306
|
+
|
307
|
+
* ext/trace.c: Code cleanup. Found another access we should first
|
308
|
+
check for validity.
|
309
|
+
|
310
|
+
2009-08-13 R. Bernstein <rocky@gnu.org>
|
311
|
+
|
312
|
+
* Rakefile, ext/trace.c, test/unit/test-trace-hook.rb: ext/trace.c:
|
313
|
+
Check trace hook validity before accessing fields. Add valid?
|
314
|
+
method. Add RubyVM::TraceHookError exception class.
|
315
|
+
test-trace-hook.rb: test the modifications to ext/trace.c Rakefile:
|
316
|
+
More complete. Add "ext", "clean" and "check". test/check depends on
|
317
|
+
"ext".
|
318
|
+
|
319
|
+
2009-08-13 rocky <rockyb@rubyforge.org>
|
320
|
+
|
321
|
+
* ext/trace.c, test/unit/test-trace-hook.rb: Add access to all
|
322
|
+
global trace hooks as an array. Add ccess to proc of a trace hook.
|
323
|
+
|
324
|
+
2009-08-12 rocky <rockyb@rubyforge.org>
|
325
|
+
|
326
|
+
* ext/.gitignore, ext/extconf.rb, ext/thread_pthread.h,
|
327
|
+
ext/trace.c, ext/vm_core_mini.h, lib/trace.rb,
|
328
|
+
test/unit/test-event2bitmask.rb, test/unit/test-trace-hook.rb:
|
329
|
+
Create an event hook object. Be able to get and the set event mask
|
330
|
+
for it.
|
331
|
+
|
332
|
+
2009-08-11 rocky <rocky@sanchez.(none)>
|
333
|
+
|
334
|
+
* Trace hook enhancements.
|
335
|
+
|
data/NEWS
CHANGED
data/Rakefile
CHANGED
@@ -1,20 +1,35 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
2
|
# -*- Ruby -*-
|
3
3
|
require 'rubygems'
|
4
|
-
require 'rake/gempackagetask'
|
5
|
-
require 'rake/testtask'
|
6
4
|
|
7
|
-
|
5
|
+
ROOT_DIR = File.dirname(__FILE__)
|
6
|
+
Gemspec_filename='rb-trace.gemspec'
|
8
7
|
|
9
|
-
|
10
|
-
|
8
|
+
def gemspec
|
9
|
+
@gemspec ||= eval(File.read(Gemspec_filename), binding, Gemspec_filename)
|
11
10
|
end
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
require 'rake/gempackagetask'
|
13
|
+
desc "Build the gem"
|
14
|
+
task :package=>:gem
|
15
|
+
task :gem=>:gemspec do
|
16
|
+
Dir.chdir(ROOT_DIR) do
|
17
|
+
sh "gem build #{Gemspec_filename}"
|
18
|
+
FileUtils.mkdir_p 'pkg'
|
19
|
+
FileUtils.mv gemspec.file_name, 'pkg'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "Install the gem locally"
|
24
|
+
task :install => :gem do
|
25
|
+
Dir.chdir(ROOT_DIR) do
|
26
|
+
sh %{gem install --local pkg/#{gemspec.file_name}}
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
require 'rake/testtask'
|
31
|
+
desc "Test everything."
|
32
|
+
task :test => [:lib, :'test:unit']
|
18
33
|
|
19
34
|
desc "Create a GNU-style ChangeLog via git2cl"
|
20
35
|
task :ChangeLog do
|
@@ -22,12 +37,12 @@ task :ChangeLog do
|
|
22
37
|
end
|
23
38
|
|
24
39
|
desc 'Test units - the smaller tests'
|
25
|
-
task :'test:unit' =>
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
40
|
+
task :'test:unit' => :ext
|
41
|
+
Rake::TestTask.new(:'test:unit') do |t|
|
42
|
+
t.libs << './ext'
|
43
|
+
t.test_files = FileList['test/unit/**/*.rb']
|
44
|
+
# t.pattern = 'test/**/*test-*.rb' # instead of above
|
45
|
+
t.options = '--verbose' if $VERBOSE
|
31
46
|
end
|
32
47
|
|
33
48
|
desc "Create the core ruby-debug shared library extension"
|
@@ -37,11 +52,6 @@ task :ext do
|
|
37
52
|
end
|
38
53
|
end
|
39
54
|
|
40
|
-
desc 'Create a GNU-style ChangeLog via git2cl'
|
41
|
-
task :ChangeLog do
|
42
|
-
system('git log --pretty --numstat --summary | git2cl > ChangeLog')
|
43
|
-
end
|
44
|
-
|
45
55
|
desc 'Remove built files'
|
46
56
|
task :clean do
|
47
57
|
cd 'ext' do
|
@@ -54,73 +64,17 @@ task :clean do
|
|
54
64
|
end
|
55
65
|
end
|
56
66
|
|
57
|
-
desc
|
58
|
-
task :test
|
59
|
-
exceptions = ['test:unit'].collect do |task|
|
60
|
-
begin
|
61
|
-
Rake::Task[task].invoke
|
62
|
-
nil
|
63
|
-
rescue => e
|
64
|
-
e
|
65
|
-
end
|
66
|
-
end.compact
|
67
|
-
end
|
68
|
-
|
69
|
-
desc "Test everything - same as test."
|
70
|
-
task :check => :test
|
71
|
-
task :default => [:test]
|
72
|
-
|
73
|
-
# Base GEM Specification
|
74
|
-
spec = Gem::Specification.new do |spec|
|
75
|
-
spec.name = "rb-trace"
|
76
|
-
|
77
|
-
spec.homepage = "http://github.com/rocky/rb-trace/tree/master"
|
78
|
-
spec.summary = "Trace hook extensions"
|
79
|
-
spec.description = <<-EOF
|
80
|
-
|
81
|
-
rb-trace adds a trace_hook object, translates hooks bitmasks to sets
|
82
|
-
and vice versa, and extends set_trace_func to ignore frames or
|
83
|
-
functions.
|
84
|
-
EOF
|
85
|
-
|
86
|
-
spec.version = PACKAGE_VERSION
|
87
|
-
spec.extensions = ['ext/extconf.rb']
|
67
|
+
desc "Default action is same as 'test'."
|
68
|
+
task :default => :test
|
88
69
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
spec.files = ALL_FILES.to_a
|
93
|
-
spec.add_dependency('rb-threadframe', '>= 0.32')
|
94
|
-
|
95
|
-
spec.required_ruby_version = '~> 1.9.2'
|
96
|
-
spec.date = Time.now
|
97
|
-
# spec.rubyforge_project = 'rocky-hacks'
|
98
|
-
|
99
|
-
# rdoc
|
100
|
-
spec.has_rdoc = true
|
101
|
-
# spec.extra_rdoc_files = ['README', 'threadframe.rd']
|
102
|
-
end
|
103
|
-
|
104
|
-
# Rake task to build the default package
|
105
|
-
Rake::GemPackageTask.new(spec) do |pkg|
|
106
|
-
pkg.need_tar = true
|
70
|
+
desc "Generate the gemspec"
|
71
|
+
task :generate do
|
72
|
+
puts gemspec.to_ruby
|
107
73
|
end
|
108
74
|
|
109
|
-
|
110
|
-
|
111
|
-
|
75
|
+
desc "Validate the gemspec"
|
76
|
+
task :gemspec do
|
77
|
+
gemspec.validate
|
112
78
|
end
|
113
79
|
|
114
|
-
desc 'Install locally'
|
115
|
-
task :install => :package do
|
116
|
-
Dir.chdir(File::dirname(__FILE__)) do
|
117
|
-
# ri and rdoc take lots of time
|
118
|
-
install(spec, '--no-ri', '--no-rdoc')
|
119
|
-
end
|
120
|
-
end
|
121
80
|
|
122
|
-
task :install_full => :package do
|
123
|
-
Dir.chdir(File::dirname(__FILE__)) do
|
124
|
-
install(spec)
|
125
|
-
end
|
126
|
-
end
|
data/ext/.gitignore
ADDED
data/ext/trace.c
CHANGED
data/lib/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/*~
|
data/lib/trace_mod.rb
CHANGED
@@ -19,6 +19,9 @@ module Trace
|
|
19
19
|
RAISE_EVENT_MASK = 0x0080
|
20
20
|
INSN_EVENT_MASK = 0x0100
|
21
21
|
BRKPT_EVENT_MASK = 0x0200
|
22
|
+
SEND_EVENT_MASK = 0x0400
|
23
|
+
LEAVE_EVENT_MASK = 0x0800
|
24
|
+
YIELD_EVENT_MASK = 0x1000
|
22
25
|
ALL_EVENT_MASKS = (0xffff & ~INSN_EVENT_MASK)
|
23
26
|
VM_EVENT_MASK = 0x10000
|
24
27
|
SWITCH_EVENT_MASK = 0x20000
|
@@ -32,9 +35,12 @@ module Trace
|
|
32
35
|
C_CALL_EVENT_MASK |
|
33
36
|
C_RETURN_EVENT_MASK |
|
34
37
|
END_EVENT_MASK |
|
38
|
+
LEAVE_EVENT_MASK |
|
35
39
|
LINE_EVENT_MASK |
|
36
40
|
RAISE_EVENT_MASK |
|
37
|
-
RETURN_EVENT_MASK
|
41
|
+
RETURN_EVENT_MASK |
|
42
|
+
SEND_EVENT_MASK |
|
43
|
+
YIELD_EVENT_MASK
|
38
44
|
|
39
45
|
|
40
46
|
# Symbols we use to represent the individual bits inside a Fixnum bitmask
|
@@ -47,11 +53,14 @@ module Trace
|
|
47
53
|
:coverage => COVERAGE_EVENT_MASK,
|
48
54
|
:end => END_EVENT_MASK,
|
49
55
|
:insn => INSN_EVENT_MASK,
|
56
|
+
:leave => LEAVE_EVENT_MASK,
|
50
57
|
:line => LINE_EVENT_MASK,
|
51
58
|
:raise => RAISE_EVENT_MASK,
|
52
59
|
:return => RETURN_EVENT_MASK,
|
60
|
+
:send => SEND_EVENT_MASK,
|
53
61
|
:switch => SWITCH_EVENT_MASK,
|
54
|
-
:vm => VM_EVENT_MASK
|
62
|
+
:vm => VM_EVENT_MASK,
|
63
|
+
:yield => YIELD_EVENT_MASK
|
55
64
|
}
|
56
65
|
|
57
66
|
EVENTS = EVENT2MASK.keys.sort
|
@@ -0,0 +1 @@
|
|
1
|
+
/*~
|
metadata
CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
version: "0.
|
7
|
+
- 5
|
8
|
+
version: "0.5"
|
9
9
|
platform: ruby
|
10
10
|
authors:
|
11
11
|
- R. Bernstein
|
@@ -13,7 +13,7 @@ autorequire:
|
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
15
|
|
16
|
-
date:
|
16
|
+
date: 2011-03-28 00:00:00 -04:00
|
17
17
|
default_executable:
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
@@ -26,8 +26,8 @@ dependencies:
|
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
segments:
|
28
28
|
- 0
|
29
|
-
-
|
30
|
-
version: "0.
|
29
|
+
- 38
|
30
|
+
version: "0.38"
|
31
31
|
type: :runtime
|
32
32
|
version_requirements: *id001
|
33
33
|
description: "\n\
|
@@ -42,22 +42,27 @@ extensions:
|
|
42
42
|
extra_rdoc_files: []
|
43
43
|
|
44
44
|
files:
|
45
|
-
-
|
46
|
-
-
|
45
|
+
- .gitignore
|
46
|
+
- ChangeLog
|
47
47
|
- LICENSE
|
48
|
+
- NEWS
|
48
49
|
- README.textile
|
49
|
-
-
|
50
|
-
-
|
51
|
-
-
|
52
|
-
- test/unit/test-tracefilter.rb
|
53
|
-
- ext/trace.c
|
50
|
+
- Rakefile
|
51
|
+
- ext/.gitignore
|
52
|
+
- ext/extconf.rb
|
54
53
|
- ext/thread_pthread.h
|
54
|
+
- ext/trace.c
|
55
55
|
- ext/vm_core_mini.h
|
56
|
-
- lib
|
56
|
+
- lib/.gitignore
|
57
57
|
- lib/eventbuffer.rb
|
58
|
+
- lib/trace.rb
|
58
59
|
- lib/trace_mod.rb
|
59
60
|
- lib/tracefilter.rb
|
60
|
-
-
|
61
|
+
- test/unit/.gitignore
|
62
|
+
- test/unit/test-event2bitmask.rb
|
63
|
+
- test/unit/test-trace-hook.rb
|
64
|
+
- test/unit/test-trace_mod.rb
|
65
|
+
- test/unit/test-tracefilter.rb
|
61
66
|
has_rdoc: true
|
62
67
|
homepage: http://github.com/rocky/rb-trace/tree/master
|
63
68
|
licenses: []
|
@@ -75,8 +80,8 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
80
|
segments:
|
76
81
|
- 1
|
77
82
|
- 9
|
78
|
-
-
|
79
|
-
version: 1.9.
|
83
|
+
- 2frame
|
84
|
+
version: 1.9.2frame
|
80
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
86
|
none: false
|
82
87
|
requirements:
|