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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af95f1fc8df6aa9b4e3280a38d634e4c6556870fc11106e718c2dff5aa69973e
4
- data.tar.gz: 96251e4b25209fa8f083c2b271a251bf495a1b8e4b137bb47da1f1601d39b0fc
3
+ metadata.gz: 869f89ceca1b54b133a68368d6c6287e94bbfeaf550a92dd120fe10d7e423997
4
+ data.tar.gz: 96ce91c4da94d7abf2de5ae75a6e617aeac6516b002793ad3bed2e56ecd55b53
5
5
  SHA512:
6
- metadata.gz: 25f9757ee618417b4b6104bb2dc1ec878e79fe8d20b4559efae3aa9fe08f249eca122b2aa47088eca93731faf2d718cee3a92c350f461c18964eccdd48b8e368
7
- data.tar.gz: f9af638c310880355594d336c4f3735606ac5eca860c2dd5afeaec40bd0ca14d02f31a5611b5228b31e250af048a209ac88e78c33428a961ced039a89b4f6a85
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
@@ -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
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Valgrind
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valgrind
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Bernstein