Garbage Collection
“Only if something does not have a retaining path to the
root node, it is garbage”
- Google I/O 2013 - A Trip Down Memory Lane with Gmail
Slide 13
Slide 13 text
Garbage Collection
“Only if something does not have a retaining path to the
root node, it is garbage”
root
object
Node
scalar
Node
- Google I/O 2013 - A Trip Down Memory Lane with Gmail
Slide 14
Slide 14 text
Garbage Collection
“Only if something does not have a retaining path to the
root node, it is garbage”
root
object
Node
scalar
Node
- Google I/O 2013 - A Trip Down Memory Lane with Gmail
Slide 15
Slide 15 text
Garbage Collection
“Only if something does not have a retaining path to the
root node, it is garbage”
root
object
Node
scalar
Node
- Google I/O 2013 - A Trip Down Memory Lane with Gmail
Slide 16
Slide 16 text
Garbage Collection
“Only if something does not have a retaining path to the
root node, it is garbage”
root
object
Node
scalar
Node
{...}
- Google I/O 2013 - A Trip Down Memory Lane with Gmail
Slide 17
Slide 17 text
Profiler
• Retained size
• Detached DOM trees
• Scattered objects
Dem
o
Slide 18
Slide 18 text
Timeline
• Memory footprint
• JS heap size
• GPU profiling
Dem
o
Slide 19
Slide 19 text
Timeline
- Memory Management Masterclass with Addy Osmani