I'm trying to debug memory leak in a Rails App, and I'm trying to get a dump of existing objects, by using ObjectSpace#trace_object_allocations.
In order for me to better understand the output, I think I should fully understand the meaning of an output JSON line:
{
"address":"0x7fb716009c20",
"type":"STRING",
"class":"0x7fb7360d40e0",
"embedded":true,
"bytesize":1,
"value":"f",
"encoding":"UTF-8",
"file":"/Users/songyy/.rvm/gems/ruby-2.3.1/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/quoting.rb",
"line":78,
"method":"unquoted_false",
"generation":93,
"memsize":40,
"flags":{
"wb_protected":true,
"old":true,
"uncollectible":true,
"marked":true
}
}
Is there any reference, to which explains the exact meaning of the items in this JSON object?
Particularly, I'm interested in the meaning of:
- class
- embedded
- bytesize
- generation
- flags
- wb_protected
- old
- uncollectible
- marked