google-cloud-debugger 0.33.0 → 0.33.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/ext/google/cloud/debugger/debugger_c/tracer.c +10 -13
- data/lib/google/cloud/debugger/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28eb0ba3938e8fdf591b9ffa1c53f66fe21005e096f27194f984c951c8c59544
|
4
|
+
data.tar.gz: 3726320cdb33ef63c2d096a6096f52c9ebad9cf018759e743c2d8ceec76c0893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e59a8c15c75555308c0ceaa6b2f191650b3ca87091ccae50c0595ca206e7ad64f925539bc39fa9e687c0055d6de664c07220db73b6e85ac60de02ce5b3a5b52
|
7
|
+
data.tar.gz: c5f87c78fade091d092d6348d3d47a5f6da2f11355c26e15f84e40d93d0e026b99f10124bf7c8f2cb263329e248a7beb7328646187a556ee137796a9305e8c84
|
data/CHANGELOG.md
CHANGED
@@ -147,7 +147,7 @@ match_breakpoints(VALUE self, const char *c_trace_path, int c_trace_lineno)
|
|
147
147
|
|
148
148
|
/**
|
149
149
|
* line_trace_callback
|
150
|
-
* Callback function for thread line event tracing. It checks
|
150
|
+
* Callback function for thread line event tracing. It checks Tracer#breakpoints_cache
|
151
151
|
* for any breakpoints trigger on current line called. Then trigger evaluation
|
152
152
|
* procedure if found matching breakpoints. It also skip breakpoints that are
|
153
153
|
* already marked completed.
|
@@ -234,7 +234,7 @@ disable_line_trace_for_thread(VALUE thread)
|
|
234
234
|
|
235
235
|
/**
|
236
236
|
* enable_line_trace_for_thread
|
237
|
-
* Turn on line
|
237
|
+
* Turn on line event trace for current thread. Also set a flag
|
238
238
|
* "gcloud_line_trace_set" to Qtrue in current thread's thread variable.
|
239
239
|
*/
|
240
240
|
static VALUE
|
@@ -265,14 +265,12 @@ enable_line_trace_for_thread(VALUE self)
|
|
265
265
|
|
266
266
|
/**
|
267
267
|
* return_trace_callback
|
268
|
-
* Callback function for
|
268
|
+
* Callback function for Tracer#return_tracepoint. It gets called on
|
269
269
|
* RUBY_EVENT_END, RUBY_EVENT_RETURN, and
|
270
270
|
* RUBY_EVENT_B_RETURN events. It keeps line tracing consistent when Ruby
|
271
271
|
* program counter interleaves files. Everytime called, it checks caller stack
|
272
272
|
* frame's file path, if it matches any of the breakpoints, it turns line
|
273
|
-
* event tracing back on.
|
274
|
-
* everytime called. When the counter is at 0, it disables itself, which should
|
275
|
-
* be the same stack frame that the return_tracepoint is turned on.
|
273
|
+
* event tracing back on.
|
276
274
|
*/
|
277
275
|
static void
|
278
276
|
return_trace_callback(void *data, rb_trace_arg_t *trace_arg)
|
@@ -391,14 +389,13 @@ enable_return_trace_for_thread(VALUE self)
|
|
391
389
|
|
392
390
|
/**
|
393
391
|
* file_tracepoint_callback
|
394
|
-
* Callback function for
|
392
|
+
* Callback function for Tracer#file_tracepoint. It gets called on
|
395
393
|
* RUBY_EVENT_CLASS, RUBY_EVENT_CALL, and RUBY_EVENT_B_CALL
|
396
394
|
* events. It check if any breakpoints matches current file the VM program counter
|
397
395
|
* is in, and turn on line event tracing for that thread. Otherwise turn off
|
398
|
-
* line tracing if in wrong file. The first time it turns on line
|
399
|
-
* it also turns on
|
400
|
-
* consistency when file execution interleaves.
|
401
|
-
* on, it increments tracer#return_tracepoint_counter.
|
396
|
+
* line tracing if in wrong file. The first time it turns on line event tracing,
|
397
|
+
* it also turns on Tracer#return_tracepoint to maintain line tracing
|
398
|
+
* consistency when file execution interleaves.
|
402
399
|
*/
|
403
400
|
static void
|
404
401
|
file_tracepoint_callback(VALUE tracepoint, void *data)
|
@@ -472,7 +469,7 @@ register_tracepoint(VALUE self, int event, const char *instance_variable_name, v
|
|
472
469
|
/**
|
473
470
|
* rb_disable_traces
|
474
471
|
* This is implmenetation of Tracer#disable_traces methods. It disables
|
475
|
-
*
|
472
|
+
* Tracer#file_tracepoint, Tracer#fiber_tracepoint, return event tracing, and
|
476
473
|
* line event tracing for all threads.
|
477
474
|
*/
|
478
475
|
static VALUE
|
@@ -520,7 +517,7 @@ rb_disable_traces(VALUE self)
|
|
520
517
|
/**
|
521
518
|
* rb_enable_traces
|
522
519
|
* This is the implementation of Tracer#enable_traces methods. It creates
|
523
|
-
* the
|
520
|
+
* the Tracer#file_tracepoint and Tracer#fiber_tracepoint for the first time
|
524
521
|
* called. Then it also enables them immediately upon creation.
|
525
522
|
*/
|
526
523
|
static VALUE
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-debugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.33.
|
4
|
+
version: 0.33.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Heng Xiong
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: binding_of_caller
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
89
|
+
version: '1.1'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
96
|
+
version: '1.1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: minitest
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|