Dramatically speed up detailed heap snapshot generation.
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 18 Mar 2011 12:49:27 +0000 (12:49 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 18 Mar 2011 12:49:27 +0000 (12:49 +0000)
commit5a5dfbef56eff2ce95fbea67e3d7c7662ee7c6fd
treecd9b21e77401ecad3f933925d46ef0a0adb8fce2
parent4722f692e421a96a17db3de77e04f631b896121d
Dramatically speed up detailed heap snapshot generation.

I've replaced calls to HashMap::Clear with instance re-creation.
This has sped up taking a heap snapshot of GMail from 33s -> 3s!

R=vitalyr@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6665038

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7259 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/objects-inl.h
src/objects.h
src/profile-generator.cc
src/profile-generator.h