HeapProfiler: replace pointer based matching algorithm with string matching algorithm...
authorloislo@chromium.org <loislo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Sep 2013 09:16:03 +0000 (09:16 +0000)
committerloislo@chromium.org <loislo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Sep 2013 09:16:03 +0000 (09:16 +0000)
commit2abe14b8f6187c0a378acb2ae606053db416b926
treebee416c2f9c4cca1b9e5ebd59cad5189c75179a4
parent043abcd38a8fe63cb33d76b7ee62567588fa7922
HeapProfiler: replace pointer based matching algorithm with string matching algorithm for strings_ member.

pros: decreased snapshot size.
cons: increased serialization time.

I've tested the implementation on gmail 90mb heap.
I saw no speed degradation on the serialization step.
The snapshot size lost ~3% of its size. 100Mb -> 97Mb.

BUG=none
R=alph@chromium.org, yangguo@chromium.org

Review URL: https://codereview.chromium.org/24120006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16725 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap-snapshot-generator.cc
src/heap-snapshot-generator.h