Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5612)

Unified Diff: chrome/renderer/chrome_render_process_observer.cc

Issue 12398007: Replaced deprecated v8 API calls by their non-deprecated counterparts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/chrome_render_process_observer.cc
diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc
index bf2ba58d8226b679dda39ec16f2559b5fae048c2..d4000cbb9e6955e220720813bc579a646dbef2cc 100644
--- a/chrome/renderer/chrome_render_process_observer.cc
+++ b/chrome/renderer/chrome_render_process_observer.cc
@@ -288,7 +288,9 @@ void ChromeRenderProcessObserver::OnSetFieldTrialGroup(
void ChromeRenderProcessObserver::OnGetV8HeapStats() {
v8::HeapStatistics heap_stats;
- v8::V8::GetHeapStatistics(&heap_stats);
+ // TODO(svenpanne) The call below doesn't take web workers into account, this
+ // has to be done manually by iterating over all Isolates involved.
+ v8::Isolate::GetCurrent()->GetHeapStatistics(&heap_stats);
RenderThread::Get()->Send(new ChromeViewHostMsg_V8HeapStats(
heap_stats.total_heap_size(), heap_stats.used_heap_size()));
}
« no previous file with comments | « chrome/browser/task_manager/task_manager_resource_providers.cc ('k') | content/renderer/browser_plugin/browser_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698