DescriptionHeap profiler: implement diffing of snapshots.
To trace objects between snapshots, an external map of object tags is
maintained. After the first heap snapshot has been taken, the map is
updated by reporting object moves from the GC. If no snapshots were
taken, there is no overhead (except for flag checking).
I considered graph comparison algorithms that doesn't require using
object tags, but they are all of a high computational complexity, and
will still fail to detect object moves properly, even for trivial
cases, so using tags looks like unavoidable.
Committed: http://code.google.com/p/v8/source/detail?r=5078
Patch Set 1 #
Total comments: 24
Patch Set 2 : Comments addressed #
Messages
Total messages: 4 (0 generated)
|