Class: Heapy::Alive::RootTracker
- Inherits:
-
Object
- Object
- Heapy::Alive::RootTracker
- Defined in:
- lib/heapy/alive.rb
Instance Method Summary collapse
- #address ⇒ Object
- #id2ref ⇒ Object
-
#initialize(json) ⇒ RootTracker
constructor
A new instance of RootTracker.
- #object_retained? ⇒ Boolean
- #references ⇒ Object
- #root? ⇒ Boolean
- #tracked_to_s ⇒ Object
Constructor Details
#initialize(json) ⇒ RootTracker
Returns a new instance of RootTracker.
200 201 202 |
# File 'lib/heapy/alive.rb', line 200 def initialize(json) @raw_json_hash = json end |
Instance Method Details
#address ⇒ Object
216 217 218 |
# File 'lib/heapy/alive.rb', line 216 def address raise "root does not have an address" end |
#id2ref ⇒ Object
208 209 210 |
# File 'lib/heapy/alive.rb', line 208 def id2ref raise "cannot turn root object into an object" end |
#object_retained? ⇒ Boolean
220 221 222 |
# File 'lib/heapy/alive.rb', line 220 def object_retained? true end |
#references ⇒ Object
204 205 206 |
# File 'lib/heapy/alive.rb', line 204 def references [] end |
#root? ⇒ Boolean
212 213 214 |
# File 'lib/heapy/alive.rb', line 212 def root? true end |
#tracked_to_s ⇒ Object
224 225 226 |
# File 'lib/heapy/alive.rb', line 224 def tracked_to_s "ROOT" end |