stack_trace 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +17 -0
- data/Gemfile.lock +2 -1
- data/Makefile +12 -0
- data/README.md +5 -0
- data/ext/stack_trace/argument.c +11 -0
- data/ext/stack_trace/argument.h +3 -0
- data/ext/stack_trace/current_trace.c +8 -0
- data/ext/stack_trace/debug.c +2 -7
- data/ext/stack_trace/event_producer.c +35 -17
- data/ext/stack_trace/event_store.c +4 -6
- data/ext/stack_trace/event_store.h +1 -1
- data/ext/stack_trace/sidecar.c +8 -1
- data/ext/stack_trace/span.c +12 -15
- data/ext/stack_trace/st_name.c +47 -0
- data/ext/stack_trace/st_name.h +4 -0
- data/ext/stack_trace/trace.c +42 -6
- data/ext/stack_trace/types/event.h +3 -5
- data/ext/stack_trace/types/span.h +2 -2
- data/ext/stack_trace/utils.c +3 -0
- data/lib/stack_trace/argument_extractor.rb +1 -1
- data/lib/stack_trace/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 569140beba085e365500fa422fbb4c17fdadd9cc9bb6c8c9d8ec961762d6d75f
|
4
|
+
data.tar.gz: 82b6503c9d3ef301e0c25a362917badd2c10de725b3e3d553e597d7d85662aaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be5151cc46d1450d064ec7fed0093b3e8d1be8c84f65edff47dc2410fdfa86eb64029548f46ec56c3be5a1b016f918001691df93e4b252823af54f3b2ae53390
|
7
|
+
data.tar.gz: aada681ea172314b8b0657e13be065fe52a0fce05bda5d7b283a78b7a184f68b03d35881942db9c64d834621cc28a4a3b27a5ad83a2a8168c30f955d7b490eba
|
data/Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
FROM ruby:3.0.6-alpine
|
2
|
+
|
3
|
+
RUN apk update
|
4
|
+
RUN apk add build-base git --virtual build-dependencies
|
5
|
+
|
6
|
+
RUN mkdir /stack_trace
|
7
|
+
WORKDIR /stack_trace
|
8
|
+
|
9
|
+
ENV BUNDLE_PATH=/bundle \
|
10
|
+
BUNDLE_BIN=/bundle/bin \
|
11
|
+
GEM_HOME=/bundle
|
12
|
+
ENV PATH="${BUNDLE_BIN}:${PATH}"
|
13
|
+
|
14
|
+
COPY . ./
|
15
|
+
|
16
|
+
RUN gem install bundler
|
17
|
+
RUN bundle install --jobs 20 --retry 5
|
data/Gemfile.lock
CHANGED
data/Makefile
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
usage:
|
2
|
+
@echo "Available targets:"
|
3
|
+
@echo " * build - Builds image"
|
4
|
+
@echo " * dev - Opens an ash session in the container"
|
5
|
+
|
6
|
+
.PHONY: build
|
7
|
+
build:
|
8
|
+
docker build . -t stack_trace
|
9
|
+
|
10
|
+
.PHONY: dev
|
11
|
+
dev:
|
12
|
+
docker run -it --rm -v $(PWD):/stack_trace stack_trace sh
|
data/README.md
CHANGED
@@ -33,6 +33,11 @@ StackTrace.configure do |config|
|
|
33
33
|
|
34
34
|
config.check_proc = -> (klass_name, method_name) do # If you want to limit the tracing for a set of classes
|
35
35
|
klass_name == "Bar"
|
36
|
+
|
37
|
+
# If you use autoload and resolve the constant with `klass_name`
|
38
|
+
# it's really likelly that you get a segfault: https://bugs.ruby-lang.org/issues/18120.
|
39
|
+
# Preload all the constants before running the `StackTrace.trace` if you want to
|
40
|
+
# constantize klass_name.
|
36
41
|
end
|
37
42
|
end
|
38
43
|
```
|
@@ -22,6 +22,14 @@ VALUE rb_create_trace(VALUE _self) {
|
|
22
22
|
Span *span = malloc(sizeof(Span));
|
23
23
|
span->children_count = 0;
|
24
24
|
span->caller = NULL;
|
25
|
+
span->receiver = NULL;
|
26
|
+
span->klass = NULL;
|
27
|
+
span->self_klass = NULL;
|
28
|
+
span->return_value = NULL;
|
29
|
+
span->arguments = NULL;
|
30
|
+
span->arguments_count = 0;
|
31
|
+
span->exception = NULL;
|
32
|
+
span->children_count = 0;
|
25
33
|
|
26
34
|
current_trace = malloc(sizeof(Trace));
|
27
35
|
current_trace->finished = false;
|
data/ext/stack_trace/debug.c
CHANGED
@@ -15,12 +15,7 @@ void serialize_event(char *buffer, Event *event) {
|
|
15
15
|
return;
|
16
16
|
}
|
17
17
|
|
18
|
-
VALUE klass_name = rb_funcall(event->klass, rb_intern("name"), 0);
|
19
|
-
VALUE self_name = rb_funcall(event->self_klass, rb_intern("name"), 0);
|
20
18
|
VALUE method_name = rb_funcall(event->method, rb_intern("name"), 0);
|
21
|
-
|
22
|
-
char *klass_name_str = RSTRING_PTR(klass_name);
|
23
|
-
char *self_name_str = RSTRING_PTR(self_name);
|
24
19
|
char *method_name_str = RSTRING_PTR(method_name);
|
25
20
|
|
26
21
|
sprintf(
|
@@ -30,8 +25,8 @@ void serialize_event(char *buffer, Event *event) {
|
|
30
25
|
"method: %s, "
|
31
26
|
"event: %d, "
|
32
27
|
"for_singleton: %d",
|
33
|
-
|
34
|
-
|
28
|
+
event->klass,
|
29
|
+
event->self_klass,
|
35
30
|
method_name_str,
|
36
31
|
event->event,
|
37
32
|
event->for_singleton
|
@@ -6,6 +6,7 @@
|
|
6
6
|
#include "current_trace.h"
|
7
7
|
#include "utils.h"
|
8
8
|
#include "configuration.h"
|
9
|
+
#include "st_name.h"
|
9
10
|
|
10
11
|
struct MemoS {
|
11
12
|
int i;
|
@@ -13,16 +14,23 @@ struct MemoS {
|
|
13
14
|
};
|
14
15
|
|
15
16
|
static void copy_str(char **target, VALUE string) {
|
16
|
-
|
17
|
+
const char *cstr = StringValueCStr(string);
|
18
|
+
size_t len = strlen(cstr);
|
17
19
|
|
18
|
-
|
20
|
+
*target = malloc(sizeof(char) * (len + 1));
|
21
|
+
|
22
|
+
memcpy(*target, cstr, (len + 1));
|
19
23
|
}
|
20
24
|
|
21
25
|
static int extract_kv(VALUE key, VALUE value, VALUE data) {
|
22
26
|
struct MemoS *memo = (struct MemoS *)data;
|
23
27
|
|
24
28
|
memo->arguments[memo->i].key = key;
|
25
|
-
|
29
|
+
|
30
|
+
VALUE value_klass = rb_obj_class(value);
|
31
|
+
VALUE value_st_name = st_name(value, value_klass);
|
32
|
+
|
33
|
+
if(value_st_name != Qundef) copy_str(&memo->arguments[memo->i].value, value_st_name);
|
26
34
|
|
27
35
|
memo->i++;
|
28
36
|
|
@@ -49,6 +57,12 @@ static void extract_arguments(Event *event, VALUE tp_val) {
|
|
49
57
|
}
|
50
58
|
|
51
59
|
void create_event(VALUE tp_val, void *_data) {
|
60
|
+
Trace *current_trace = get_current_trace();
|
61
|
+
|
62
|
+
// This can happen if a new thread spawns in trace scope.
|
63
|
+
// TODO: Save them with their thread identifier.
|
64
|
+
if(current_trace == NULL) return;
|
65
|
+
|
52
66
|
Event event = {};
|
53
67
|
int for_singleton = false;
|
54
68
|
|
@@ -56,33 +70,36 @@ void create_event(VALUE tp_val, void *_data) {
|
|
56
70
|
|
57
71
|
VALUE klass = rb_tracearg_defined_class(trace_arg);
|
58
72
|
VALUE self = rb_tracearg_self(trace_arg);
|
59
|
-
VALUE receiver = rb_funcall(self, rb_intern("st_name"), 0);
|
60
73
|
VALUE method = rb_tracearg_method_id(trace_arg);
|
61
74
|
VALUE self_klass;
|
62
75
|
|
63
76
|
if(FL_TEST(klass, FL_SINGLETON)) {
|
64
|
-
klass = rb_ivar_get(klass, rb_intern("__attached__"));
|
65
77
|
for_singleton = true;
|
66
|
-
|
78
|
+
klass = rb_ivar_get(klass, rb_intern("__attached__"));
|
79
|
+
self_klass = self;
|
67
80
|
} else {
|
68
|
-
|
69
|
-
self_klass = rb_funcall(class, rb_intern("name"), 0);
|
81
|
+
self_klass = CLASS_OF(self);
|
70
82
|
}
|
71
83
|
|
72
|
-
|
73
|
-
|
74
|
-
|
84
|
+
VALUE receiver = st_name(self, klass);
|
85
|
+
VALUE klass_name = get_cname(klass);
|
86
|
+
VALUE self_klass_name = get_cname(self_klass);
|
87
|
+
|
88
|
+
if(receiver == Qundef || klass_name == Qundef || self_klass_name == Qundef) return;
|
89
|
+
if(!rb_obj_is_kind_of(klass_name, rb_cString) || !rb_obj_is_kind_of(self_klass_name, rb_cString)) return; // These values can be Qnil
|
90
|
+
|
91
|
+
copy_str(&event.receiver, receiver);
|
92
|
+
copy_str(&event.klass, klass_name);
|
93
|
+
copy_str(&event.self_klass, self_klass_name);
|
94
|
+
|
95
|
+
event.trace = current_trace;
|
75
96
|
event.event = rb_tracearg_event_flag(trace_arg);
|
76
|
-
event.klass = klass;
|
77
|
-
event.self_klass = self_klass;
|
78
97
|
event.method = method;
|
79
98
|
event.for_singleton = for_singleton;
|
80
99
|
event.return_value = NULL;
|
81
100
|
event.arguments = NULL;
|
82
101
|
event.at = get_monotonic_m_secs();
|
83
102
|
|
84
|
-
copy_str(&event.receiver, receiver);
|
85
|
-
|
86
103
|
if(event.event == RUBY_EVENT_RAISE) {
|
87
104
|
VALUE exception = rb_tracearg_raised_exception(trace_arg);
|
88
105
|
VALUE exception_to_s = rb_funcall(exception, rb_intern("to_s"), 0);
|
@@ -97,9 +114,10 @@ void create_event(VALUE tp_val, void *_data) {
|
|
97
114
|
if(RTEST(get_inspect_return_values()) &&
|
98
115
|
(event.event == RUBY_EVENT_RETURN || event.event == RUBY_EVENT_C_RETURN || event.event == RUBY_EVENT_B_RETURN)) {
|
99
116
|
VALUE return_value = rb_tracearg_return_value(trace_arg);
|
100
|
-
VALUE
|
117
|
+
VALUE return_value_class = rb_obj_class(return_value);
|
118
|
+
VALUE return_value_st_name = st_name(return_value, return_value_class);
|
101
119
|
|
102
|
-
copy_str(&event.return_value, return_value_st_name);
|
120
|
+
if(return_value_st_name != Qundef) copy_str(&event.return_value, return_value_st_name);
|
103
121
|
}
|
104
122
|
|
105
123
|
produce_event(event);
|
@@ -38,8 +38,6 @@ static void wait_free_space() {
|
|
38
38
|
|
39
39
|
static int wait_event() {
|
40
40
|
if(free_space == SIZE) {
|
41
|
-
rb_thread_check_ints(); // Otherwise the GC stucks!
|
42
|
-
|
43
41
|
struct timespec ts;
|
44
42
|
clock_gettime(CLOCK_REALTIME, &ts);
|
45
43
|
ts.tv_nsec += TEN_MILLISECONDS;
|
@@ -80,7 +78,6 @@ static void event_consumed() {
|
|
80
78
|
pthread_cond_signal(&has_space);
|
81
79
|
}
|
82
80
|
|
83
|
-
// Takes a callback function which populates the event information.
|
84
81
|
void produce_event(Event event) {
|
85
82
|
pthread_mutex_lock(&lock);
|
86
83
|
|
@@ -93,14 +90,15 @@ void produce_event(Event event) {
|
|
93
90
|
pthread_mutex_unlock(&lock);
|
94
91
|
}
|
95
92
|
|
96
|
-
|
97
|
-
void consume_event(void(*processor_func)(Event *event)) {
|
93
|
+
void get_event(Event *target, int *status) {
|
98
94
|
pthread_mutex_lock(&lock);
|
95
|
+
*status = 1;
|
99
96
|
|
100
97
|
Event *event = pull_event();
|
101
98
|
|
102
99
|
if(event != NULL) {
|
103
|
-
|
100
|
+
*status = 0;
|
101
|
+
memcpy(target, event, sizeof(Event));
|
104
102
|
|
105
103
|
event_consumed();
|
106
104
|
}
|
data/ext/stack_trace/sidecar.c
CHANGED
@@ -4,15 +4,22 @@
|
|
4
4
|
|
5
5
|
#include "event_store.h"
|
6
6
|
#include "trace.h"
|
7
|
+
#include "types/event.h"
|
7
8
|
|
8
9
|
static bool running = false;
|
9
10
|
static VALUE ractor;
|
10
11
|
|
11
12
|
static VALUE listen_events(VALUE data, VALUE m, int _argc, const VALUE *_argv, VALUE _) {
|
12
13
|
running = true;
|
14
|
+
Event event;
|
15
|
+
int status;
|
13
16
|
|
14
17
|
while(running) {
|
15
|
-
|
18
|
+
get_event(&event, &status);
|
19
|
+
|
20
|
+
if(status == 0) process_event(&event);
|
21
|
+
|
22
|
+
rb_thread_check_ints();
|
16
23
|
}
|
17
24
|
|
18
25
|
return Qtrue;
|
data/ext/stack_trace/span.c
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
#include "span.h"
|
2
2
|
#include "utils.h"
|
3
|
+
#include "argument.h"
|
3
4
|
|
4
5
|
#define CHILDREN_BUF_INC_SIZE 10
|
5
6
|
|
@@ -49,17 +50,6 @@ Span *close_span(Span *span, Event *event) {
|
|
49
50
|
return span->caller;
|
50
51
|
}
|
51
52
|
|
52
|
-
static void free_arguments(Span *span) {
|
53
|
-
int i;
|
54
|
-
|
55
|
-
for(i = 0; i < span->arguments_count; i++) {
|
56
|
-
free(span->arguments[i].value);
|
57
|
-
}
|
58
|
-
|
59
|
-
free(span->arguments);
|
60
|
-
}
|
61
|
-
|
62
|
-
|
63
53
|
// Deallocate the memory occupied by span
|
64
54
|
// and its children.
|
65
55
|
void free_span(Span *span) {
|
@@ -75,11 +65,17 @@ void free_span(Span *span) {
|
|
75
65
|
if(span->receiver != NULL)
|
76
66
|
free(span->receiver);
|
77
67
|
|
68
|
+
if(span->klass != NULL)
|
69
|
+
free(span->klass);
|
70
|
+
|
71
|
+
if(span->self_klass != NULL)
|
72
|
+
free(span->self_klass);
|
73
|
+
|
78
74
|
if(span->return_value != NULL)
|
79
75
|
free(span->return_value);
|
80
76
|
|
81
77
|
if(span->arguments != NULL)
|
82
|
-
free_arguments(span);
|
78
|
+
free_arguments(span->arguments, span->arguments_count);
|
83
79
|
|
84
80
|
if(span->exception != NULL)
|
85
81
|
free(span->exception);
|
@@ -96,7 +92,8 @@ VALUE serialize_arguments(Argument *arguments, int count) {
|
|
96
92
|
int i;
|
97
93
|
|
98
94
|
for(i = 0; i < count; i++) {
|
99
|
-
|
95
|
+
if(arguments[i].value != NULL)
|
96
|
+
rb_hash_aset(hash, arguments[i].key, rb_str_new_cstr(arguments[i].value));
|
100
97
|
}
|
101
98
|
|
102
99
|
return hash;
|
@@ -106,8 +103,8 @@ VALUE span_to_ruby_hash(Span *span) {
|
|
106
103
|
VALUE hash = rb_hash_new();
|
107
104
|
|
108
105
|
rb_hash_aset(hash, rb_str_new2("receiver"), rb_str_new_cstr(span->receiver));
|
109
|
-
rb_hash_aset(hash, rb_str_new2("defined_class"), span->klass);
|
110
|
-
rb_hash_aset(hash, rb_str_new2("self_class"), span->self_klass);
|
106
|
+
rb_hash_aset(hash, rb_str_new2("defined_class"), rb_str_new_cstr(span->klass));
|
107
|
+
rb_hash_aset(hash, rb_str_new2("self_class"), rb_str_new_cstr(span->self_klass));
|
111
108
|
rb_hash_aset(hash, rb_str_new2("method_name"), span->method);
|
112
109
|
rb_hash_aset(hash, rb_str_new2("singleton"), span->singleton);
|
113
110
|
rb_hash_aset(hash, rb_str_new2("duration"), INT2FIX(duration_of(span)));
|
@@ -0,0 +1,47 @@
|
|
1
|
+
#include "st_name.h"
|
2
|
+
|
3
|
+
static VALUE extract_st_name(VALUE object) {
|
4
|
+
return rb_funcall(object, rb_intern("st_name"), 0);
|
5
|
+
}
|
6
|
+
|
7
|
+
VALUE get_cname(VALUE constant) {
|
8
|
+
if(rb_obj_is_kind_of(constant, rb_cClass)) {
|
9
|
+
return rb_class_name(constant);
|
10
|
+
} else if(rb_obj_is_kind_of(constant, rb_cModule)) {
|
11
|
+
return rb_mod_name(constant);
|
12
|
+
} else {
|
13
|
+
return Qundef; // This is still possible!
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
static VALUE object_name_for_cBasicObject(VALUE object, VALUE klass) {
|
18
|
+
VALUE cname = get_cname(klass);
|
19
|
+
|
20
|
+
if(cname == Qundef) return Qundef;
|
21
|
+
|
22
|
+
return rb_sprintf("#<%"PRIsVALUE":%p>", cname, (void*)object);
|
23
|
+
}
|
24
|
+
|
25
|
+
static VALUE object_name_for_cObject(VALUE object, VALUE klass) {
|
26
|
+
int status;
|
27
|
+
|
28
|
+
VALUE st_name = rb_protect(extract_st_name, object, &status);
|
29
|
+
|
30
|
+
if(status != 0) {
|
31
|
+
rb_set_errinfo(Qnil);
|
32
|
+
|
33
|
+
return object_name_for_cBasicObject(object, klass);
|
34
|
+
} else {
|
35
|
+
return st_name;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
VALUE st_name(VALUE object, VALUE klass) {
|
40
|
+
if(rb_obj_is_kind_of(object, rb_cObject)) {
|
41
|
+
return object_name_for_cObject(object, klass);
|
42
|
+
} else if(rb_obj_is_kind_of(object, rb_cBasicObject)) {
|
43
|
+
return object_name_for_cBasicObject(object, klass);
|
44
|
+
} else {
|
45
|
+
return Qundef;
|
46
|
+
}
|
47
|
+
}
|
data/ext/stack_trace/trace.c
CHANGED
@@ -8,18 +8,19 @@
|
|
8
8
|
#include "span.h"
|
9
9
|
#include "debug.h"
|
10
10
|
#include "current_trace.h"
|
11
|
+
#include "argument.h"
|
11
12
|
|
12
13
|
static VALUE check_proc;
|
13
14
|
|
14
15
|
pthread_cond_t trace_finished = PTHREAD_COND_INITIALIZER;
|
15
16
|
pthread_mutex_t trace_access_mutex = PTHREAD_MUTEX_INITIALIZER;
|
16
17
|
|
17
|
-
void free_trace(Trace *trace) {
|
18
|
+
static void free_trace(Trace *trace) {
|
18
19
|
free_span(trace->top_span);
|
19
20
|
free(trace);
|
20
21
|
}
|
21
22
|
|
22
|
-
void process_obsolote_event(Event *event) {
|
23
|
+
static void process_obsolote_event(Event *event) {
|
23
24
|
// Free this trace as there is no reference to it anymore!
|
24
25
|
free_trace(event->trace);
|
25
26
|
}
|
@@ -28,16 +29,51 @@ void set_check_proc(VALUE proc) {
|
|
28
29
|
check_proc = proc;
|
29
30
|
}
|
30
31
|
|
31
|
-
|
32
|
+
static VALUE call_proc(VALUE val) {
|
33
|
+
Event *event = (Event *)val;
|
34
|
+
|
35
|
+
return rb_funcall(check_proc, rb_intern("call"), 2, rb_str_new_cstr(event->self_klass), event->method);
|
36
|
+
}
|
37
|
+
|
38
|
+
static bool is_tracked_event(Event *event) {
|
32
39
|
if(!RTEST(check_proc)) return true; // Check proc is not configured, all the events will be tracked.
|
33
40
|
|
34
|
-
|
41
|
+
int state;
|
42
|
+
VALUE result = rb_protect(call_proc, (VALUE)event, &state); // I don't really like allocating a new array for each call so that's why I use this hack!
|
43
|
+
|
44
|
+
if(state != 0) {
|
45
|
+
rb_p(rb_errinfo());
|
46
|
+
|
47
|
+
rb_set_errinfo(Qnil);
|
48
|
+
|
49
|
+
return false;
|
50
|
+
}
|
35
51
|
|
36
52
|
return RTEST(result);
|
37
53
|
}
|
38
54
|
|
55
|
+
static void free_event_members(Event *event) {
|
56
|
+
if(event->receiver != NULL)
|
57
|
+
free(event->receiver);
|
58
|
+
|
59
|
+
if(event->klass != NULL)
|
60
|
+
free(event->klass);
|
61
|
+
|
62
|
+
if(event->self_klass != NULL)
|
63
|
+
free(event->self_klass);
|
64
|
+
|
65
|
+
if(event->return_value != NULL)
|
66
|
+
free(event->return_value);
|
67
|
+
|
68
|
+
if(event->raised_exception != NULL)
|
69
|
+
free(event->raised_exception);
|
70
|
+
|
71
|
+
if(event->arguments != NULL)
|
72
|
+
free_arguments(event->arguments, event->arguments_count);
|
73
|
+
}
|
74
|
+
|
39
75
|
void create_new_span(Event *event) {
|
40
|
-
if(!is_tracked_event(event)) return;
|
76
|
+
if(!is_tracked_event(event)) return free_event_members(event);
|
41
77
|
|
42
78
|
Span *new_span = create_span(event);
|
43
79
|
|
@@ -47,7 +83,7 @@ void create_new_span(Event *event) {
|
|
47
83
|
}
|
48
84
|
|
49
85
|
void close_current_span(Event *event) {
|
50
|
-
if(!is_tracked_event(event)) return;
|
86
|
+
if(!is_tracked_event(event)) return free_event_members(event);
|
51
87
|
|
52
88
|
Trace *trace = event->trace;
|
53
89
|
|
@@ -17,13 +17,11 @@
|
|
17
17
|
|
18
18
|
struct EventS {
|
19
19
|
Trace *trace;
|
20
|
-
VALUE tp_val;
|
21
20
|
rb_event_flag_t event;
|
22
|
-
rb_trace_arg_t *trace_arg;
|
23
21
|
char *receiver;
|
24
|
-
|
25
|
-
|
26
|
-
VALUE method;
|
22
|
+
char *klass;
|
23
|
+
char *self_klass;
|
24
|
+
VALUE method; // This is a symbol anyway
|
27
25
|
char *return_value;
|
28
26
|
Argument *arguments;
|
29
27
|
int arguments_count;
|
data/ext/stack_trace/utils.c
CHANGED
data/lib/stack_trace/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stack_trace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mehmet Emin INAC
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: StackTrace
|
14
14
|
email:
|
@@ -21,11 +21,15 @@ files:
|
|
21
21
|
- ".rspec"
|
22
22
|
- ".tool-versions"
|
23
23
|
- CODE_OF_CONDUCT.md
|
24
|
+
- Dockerfile
|
24
25
|
- Gemfile
|
25
26
|
- Gemfile.lock
|
26
27
|
- LICENSE.txt
|
28
|
+
- Makefile
|
27
29
|
- README.md
|
28
30
|
- Rakefile
|
31
|
+
- ext/stack_trace/argument.c
|
32
|
+
- ext/stack_trace/argument.h
|
29
33
|
- ext/stack_trace/configuration.c
|
30
34
|
- ext/stack_trace/configuration.h
|
31
35
|
- ext/stack_trace/current_trace.c
|
@@ -41,6 +45,8 @@ files:
|
|
41
45
|
- ext/stack_trace/sidecar.h
|
42
46
|
- ext/stack_trace/span.c
|
43
47
|
- ext/stack_trace/span.h
|
48
|
+
- ext/stack_trace/st_name.c
|
49
|
+
- ext/stack_trace/st_name.h
|
44
50
|
- ext/stack_trace/stack_trace.c
|
45
51
|
- ext/stack_trace/trace.c
|
46
52
|
- ext/stack_trace/trace.h
|