valgrind 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/ext/valgrind/valgrind.c +7 -0
- data/lib/valgrind/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 869f89ceca1b54b133a68368d6c6287e94bbfeaf550a92dd120fe10d7e423997
|
|
4
|
+
data.tar.gz: 96ce91c4da94d7abf2de5ae75a6e617aeac6516b002793ad3bed2e56ecd55b53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e20bd7ac15ee3f1496d31b3506e8449d4afa02fcb668c5f95836bf2afb8709c552c4caf0d40248a097617a0758db3d99c941875ce64437456129ac52a5a7ea3
|
|
7
|
+
data.tar.gz: 1ae7ba86c4e76363966662add9d79eb1d9c51f3755d965fc72558e094a26a9a975c80782f8b6f0546862e1dd105f8e0422908025090a786d28b721368beca407
|
data/README.md
CHANGED
|
@@ -32,6 +32,8 @@ valgrind the underlying client requests are no-ops.
|
|
|
32
32
|
- `Valgrind.callgrind_start_instrumentation`
|
|
33
33
|
- `Valgrind.callgrind_stop_instrumentation`
|
|
34
34
|
- `Valgrind.callgrind_zero_stats`
|
|
35
|
+
- `Valgrind.callgrind_toggle_collect` — toggle whether events are collected
|
|
36
|
+
(pair with `--collect-atstart=no`)
|
|
35
37
|
- `Valgrind.callgrind_dump_stats(description = nil)`
|
|
36
38
|
|
|
37
39
|
## Development
|
data/ext/valgrind/valgrind.c
CHANGED
|
@@ -33,6 +33,11 @@ static VALUE callgrind_zero_stats(VALUE self) {
|
|
|
33
33
|
return Qnil;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
static VALUE callgrind_toggle_collect(VALUE self) {
|
|
37
|
+
CALLGRIND_TOGGLE_COLLECT;
|
|
38
|
+
return Qnil;
|
|
39
|
+
}
|
|
40
|
+
|
|
36
41
|
void Init_valgrind(void) {
|
|
37
42
|
VALUE mValgrind = rb_define_module("Valgrind");
|
|
38
43
|
rb_define_module_function(mValgrind, "callgrind_dump_stats",
|
|
@@ -43,4 +48,6 @@ void Init_valgrind(void) {
|
|
|
43
48
|
callgrind_stop_instrumentation, 0);
|
|
44
49
|
rb_define_module_function(mValgrind, "callgrind_zero_stats",
|
|
45
50
|
callgrind_zero_stats, 0);
|
|
51
|
+
rb_define_module_function(mValgrind, "callgrind_toggle_collect",
|
|
52
|
+
callgrind_toggle_collect, 0);
|
|
46
53
|
}
|
data/lib/valgrind/version.rb
CHANGED