Adding api to get last gc object statistics for chrome://tracing.
authorssid <ssid@chromium.org>
Tue, 19 May 2015 11:01:41 +0000 (04:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 19 May 2015 11:01:24 +0000 (11:01 +0000)
commit66083dd05ff812f3402758340bfab18e4f75fa50
treecd045fd25ca51c92a70f386f3679b140f949e63c
parent24768fe200267e8feb12bc4a1247d5820b5d881b
Adding api to get last gc object statistics for chrome://tracing.

For dumping the number of objects and size of objects alive after the
last gc into chrome://tracing memory dumps, this CL adds new api to
get these number for each isolate.

Note: Chrome should be run with --js-flags='--track_gc_object_stats
--noincremental-marking' for object tracking.

BUG=476013
LOG=Y

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

Cr-Commit-Position: refs/heads/master@{#28474}
include/v8.h
src/api.cc
src/heap/heap.cc
src/heap/heap.h