summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_thread_impl.cc
diff options
context:
space:
mode:
authoralph@chromium.org <alph@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-17 20:27:56 +0000
committeralph@chromium.org <alph@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-17 20:27:56 +0000
commita9bd323d70cfcea6b6f340893965fa3d21ec94ce (patch)
tree36cd818883b81765d9efe1dd7214081cc80f4c6c /content/renderer/render_thread_impl.cc
parent71846764f02f80783a479b8018e5745e747ff97b (diff)
downloadchromium_src-a9bd323d70cfcea6b6f340893965fa3d21ec94ce.zip
chromium_src-a9bd323d70cfcea6b6f340893965fa3d21ec94ce.tar.gz
chromium_src-a9bd323d70cfcea6b6f340893965fa3d21ec94ce.tar.bz2
Make Task Manager to count JS heap of web workers.
Currently Task Manager shows JS heap size of the main thread alone. The patch makes it count web worker heaps as well. BUG=241066 TEST=New browser_tests TaskManagerBrowserTest_WebWorkerJSHeapMemory Review URL: https://chromiumcodereview.appspot.com/15927020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_thread_impl.cc')
-rw-r--r--content/renderer/render_thread_impl.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 6d0f883..5ef04cc 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -99,6 +99,7 @@
#include "ui/base/ui_base_switches.h"
#include "v8/include/v8.h"
#include "webkit/glue/webkit_glue.h"
+#include "webkit/child/worker_task_runner.h"
#include "webkit/renderer/appcache/appcache_frontend_impl.h"
#if defined(OS_WIN)
@@ -858,6 +859,11 @@ void RenderThreadImpl::UpdateHistograms(int sequence_number) {
child_histogram_message_filter()->SendHistograms(sequence_number);
}
+int RenderThreadImpl::PostTaskToAllWorkers(const base::Closure& closure) {
+ return webkit_glue::WorkerTaskRunner::Instance()->PostTaskToAllThreads(
+ closure);
+}
+
bool RenderThreadImpl::ResolveProxy(const GURL& url, std::string* proxy_list) {
bool result = false;
Send(new ViewHostMsg_ResolveProxy(url, &result, proxy_list));