Reviewers: Mads Ager, Description: Heap 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. Please review this at http://codereview.chromium.org/3020002/show Affected files: M include/v8-profiler.h M src/api.cc M src/checks.h M src/heap-profiler.h M src/heap-profiler.cc M src/heap.cc M src/mark-compact.cc M src/profile-generator.h M src/profile-generator.cc M test/cctest/test-heap-profiler.cc -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
