Add HeapProfiler::GetPersistentHandleCount to be able to track the number of persiste...
authorvegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 7 Mar 2012 17:38:50 +0000 (17:38 +0000)
committervegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 7 Mar 2012 17:38:50 +0000 (17:38 +0000)
commit47b6027c37db666973aa1dfe0a31c7ccc3ce6740
treeadb3734aaeffa75d572fbe39aa17c6c67e6a8514
parent1a768b114310279a42c71c931a5378f0e996858a
Add HeapProfiler::GetPersistentHandleCount to be able to track the number of persistent handles

It turns out that an increasing number of persistent handles is a good signal for bugs in the bindings layer

BUG=none
TEST=cctest/test-heap-profiler/PersistentHandleCount

Review URL: https://chromiumcodereview.appspot.com/9620007
Patch from Jochen Eisinger <jochen@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10960 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8-profiler.h
src/api.cc
src/global-handles.cc
src/global-handles.h
test/cctest/test-heap-profiler.cc