heap_dump 0.0.23 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/heap_dump/heap_dump.c +7 -6
- data/lib/heap_dump/version.rb +1 -1
- metadata +7 -7
data/ext/heap_dump/heap_dump.c
CHANGED
@@ -839,13 +839,12 @@ static void dump_data_if_known(VALUE obj, walk_ctx_t *ctx){
|
|
839
839
|
if(!strcmp("fiber", typename)){
|
840
840
|
rb_fiber_t *fib = RTYPEDDATA_DATA(obj);
|
841
841
|
ygh_id("prev", fib->prev);
|
842
|
-
//ygh_int("cont", fib->cont);
|
843
842
|
yg_cstring("status");
|
844
843
|
yg_fiber_status(fib->status, ctx);
|
845
844
|
|
846
845
|
yg_cstring("cont");
|
847
846
|
yg_map();
|
848
|
-
//
|
847
|
+
// actually this is embedded continuation object, these may be standalone datas in the wild
|
849
848
|
yg_cstring("type");
|
850
849
|
yg_fiber_type(fib->cont.type, ctx);
|
851
850
|
|
@@ -854,20 +853,22 @@ static void dump_data_if_known(VALUE obj, walk_ctx_t *ctx){
|
|
854
853
|
|
855
854
|
yg_cstring("saved_thread");
|
856
855
|
yg_map();
|
857
|
-
//rb_thread_mark(&fib->cont.saved_thread);
|
858
856
|
dump_thread(&fib->cont.saved_thread, ctx);
|
859
857
|
yg_map_end();
|
860
858
|
|
861
859
|
//stacks:
|
862
|
-
yg_cstring("stack");
|
863
|
-
yg_array();
|
864
860
|
if(fib->cont.vm_stack) {
|
861
|
+
yg_cstring("vm_stack");
|
862
|
+
yg_array();
|
865
863
|
dump_locations(fib->cont.vm_stack, fib->cont.vm_stack_slen + fib->cont.vm_stack_clen, ctx);
|
864
|
+
yg_array_end();
|
866
865
|
}
|
867
866
|
if (fib->cont.machine_stack) {
|
867
|
+
yg_cstring("mach_stack");
|
868
|
+
yg_array();
|
868
869
|
dump_locations(fib->cont.machine_stack, fib->cont.machine_stack_size, ctx);
|
870
|
+
yg_array_end();
|
869
871
|
}
|
870
|
-
yg_array_end();
|
871
872
|
yg_map_end();
|
872
873
|
return;
|
873
874
|
}
|
data/lib/heap_dump/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heap_dump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.24
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-13 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-internal
|
16
|
-
requirement: &
|
16
|
+
requirement: &70182669210140 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.8.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70182669210140
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: yajl-ruby
|
27
|
-
requirement: &
|
27
|
+
requirement: &70182669209560 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.1'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70182669209560
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake-compiler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70182669209100 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70182669209100
|
47
47
|
description: Ruby 1.9 heap contents dumper
|
48
48
|
email:
|
49
49
|
- vasilyfedoseyev@gmail.com
|