Provide more accurate results about used heap size via GetHeapStatistics.
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 15 Nov 2010 10:38:24 +0000 (10:38 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 15 Nov 2010 10:38:24 +0000 (10:38 +0000)
commit2a8eb35548054c29e354eabeb8430d5a909b0a1a
tree20e57f993d30f6797e3baccb1b7f7db94f57514c
parentca7a438713f2c303dbfdd598de9e85f158a63291
Provide more accurate results about used heap size via GetHeapStatistics.

I observed that used heap size provided by Heap::SizeOfObjects() is
usually about ~10% bigger than the number calculated by summing up
heap objects sizes.

This aligns DevTools Timeline stats with Heap profiler stats.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5825 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/heap-profiler.cc
src/heap.cc
src/heap.h
src/mark-compact.cc
src/mark-compact.h
src/spaces.cc
src/spaces.h
test/cctest/test-heap.cc