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

Unified Diff: base/message_loop/message_loop.cc

Issue 842193003: HACK TO SHOW TASKS NOT GOING VIA BLINK SCHEDUELR Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « base/message_loop/message_loop.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop/message_loop.cc
diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc
index 818073367bdf2698a233a9aa46a79b878d3fbe7b..94419d471442e2bc889eedd183dbba1bb7accd1d 100644
--- a/base/message_loop/message_loop.cc
+++ b/base/message_loop/message_loop.cc
@@ -128,6 +128,7 @@ MessageLoop::MessageLoop(Type type)
Init();
pump_ = CreateMessagePumpForType(type).Pass();
+ on_render_thread_ = false;
}
MessageLoop::MessageLoop(scoped_ptr<MessagePump> pump)
@@ -143,6 +144,7 @@ MessageLoop::MessageLoop(scoped_ptr<MessagePump> pump)
run_loop_(NULL) {
DCHECK(pump_.get());
Init();
+ on_render_thread_ = false;
}
MessageLoop::~MessageLoop() {
@@ -431,6 +433,22 @@ void MessageLoop::RunTask(const PendingTask& pending_task) {
HistogramEvent(kTaskRunEvent);
+ bool mute = strcmp(pending_task.posted_from.function_name(),
+ "setSharedTimerFireInterval") == 0 ||
+ strcmp(pending_task.posted_from.function_name(),
+ "MaybePostDoWorkOnMainRunner") == 0;
+
+ if (mute) {
+ on_render_thread_ = true;
+ }
+
+ if (on_render_thread_ && !mute) {
+ printf(">>>>>>>>>> MessageLoop::RunTask %s %s:%d\n",
+ pending_task.posted_from.function_name() ,
+ pending_task.posted_from.file_name(),
+ pending_task.posted_from.line_number());
+ }
+
FOR_EACH_OBSERVER(TaskObserver, task_observers_,
WillProcessTask(pending_task));
task_annotator_.RunTask(
« no previous file with comments | « base/message_loop/message_loop.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698