gvl-tracing 1.0.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a0dac3d832e96a125efe05ac98e4b1129fd0ece7bdbc73dc27c01d07c1f63f8
|
4
|
+
data.tar.gz: 91df78cab18be886527f64b273ed3f149ba75775f3bf9079270e6d59bb5b09b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b98df0961029daa7ca1680e3a474afde760070216918c2514c76b50af8d62f9da1dcab18201b175e4e996b5bdac72dcd549df3601049a11d7ad636db9741783
|
7
|
+
data.tar.gz: 967bfb4503e5553468598348829aa288eee2e4baac2c3b3f618a57c92cc51cb62ee5bdc5cc798238cf54bbc020d08cce85a5f1fb171e329dc5d6e1d32cc98c14
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-3.2.0
|
@@ -36,6 +36,11 @@ have_func("gettid", "unistd.h")
|
|
36
36
|
have_header("pthread.h")
|
37
37
|
have_func("pthread_getname_np", "pthread.h")
|
38
38
|
have_func("pthread_threadid_np", "pthread.h")
|
39
|
+
append_cflags('-Werror-implicit-function-declaration')
|
40
|
+
append_cflags('-Wunused-parameter')
|
41
|
+
append_cflags('-Wold-style-definition')
|
42
|
+
append_cflags("-Wall")
|
43
|
+
append_cflags("-Wextra")
|
39
44
|
|
40
45
|
create_header
|
41
46
|
create_makefile "gvl_tracing_native_extension"
|
@@ -147,7 +147,7 @@ static VALUE tracing_stop(VALUE _self) {
|
|
147
147
|
|
148
148
|
if (fclose(output_file) != 0) rb_syserr_fail(errno, "Failed to close GvlTracing output file");
|
149
149
|
|
150
|
-
output_file
|
150
|
+
output_file = NULL;
|
151
151
|
|
152
152
|
return Qtrue;
|
153
153
|
}
|
@@ -193,11 +193,11 @@ static void render_event(const char *event_name) {
|
|
193
193
|
static void on_thread_event(rb_event_flag_t event_id, const rb_internal_thread_event_data_t *_unused1, void *_unused2) {
|
194
194
|
const char* event_name = "bug_unknown_event";
|
195
195
|
switch (event_id) {
|
196
|
-
case RUBY_INTERNAL_THREAD_EVENT_READY: event_name = "
|
196
|
+
case RUBY_INTERNAL_THREAD_EVENT_READY: event_name = "wants_gvl"; break;
|
197
197
|
case RUBY_INTERNAL_THREAD_EVENT_RESUMED: event_name = "running"; break;
|
198
198
|
case RUBY_INTERNAL_THREAD_EVENT_SUSPENDED: event_name = "waiting"; break;
|
199
199
|
case RUBY_INTERNAL_THREAD_EVENT_STARTED: event_name = "started"; break;
|
200
|
-
case RUBY_INTERNAL_THREAD_EVENT_EXITED: event_name = "
|
200
|
+
case RUBY_INTERNAL_THREAD_EVENT_EXITED: event_name = "died"; break;
|
201
201
|
};
|
202
202
|
render_event(event_name);
|
203
203
|
}
|
data/lib/gvl_tracing/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gvl-tracing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivo Anjo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -19,6 +19,7 @@ extensions:
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- ".editorconfig"
|
22
|
+
- ".ruby-version"
|
22
23
|
- ".standard.yml"
|
23
24
|
- CODE_OF_CONDUCT.adoc
|
24
25
|
- LICENSE
|