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

Unified Diff: base/message_loop/message_loop.h

Issue 1044413002: Record async "task backtraces" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar 00 like. Created 3 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
Index: base/message_loop/message_loop.h
diff --git a/base/message_loop/message_loop.h b/base/message_loop/message_loop.h
index 91a7b1d33268d470ee4220202dd45734bc3d01ec..1b6afcd590ac5d91ce7b56e9fe026863792c0b5e 100644
--- a/base/message_loop/message_loop.h
+++ b/base/message_loop/message_loop.h
@@ -346,10 +346,11 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate {
void BindToCurrentThread();
private:
- friend class RunLoop;
friend class internal::IncomingTaskQueue;
+ friend class RunLoop;
friend class ScheduleWorkTest;
friend class Thread;
+ friend struct PendingTask;
FRIEND_TEST_ALL_PREFIXES(MessageLoopTest, DeleteUnboundLoop);
// Creates a MessageLoop without binding to a thread.
@@ -450,6 +451,10 @@ class BASE_EXPORT MessageLoop : public MessagePump::Delegate {
debug::TaskAnnotator task_annotator_;
+ // Used to allow creating a breadcrumb of program counters in PostTask.
+ // Be very careful when using this variable.
danakj 2017/02/07 23:16:46 careful in what way, what are the risks?
awong 2017/02/08 01:55:50 rewrote comment.
+ const PendingTask* current_pending_task_;
+
scoped_refptr<internal::IncomingTaskQueue> incoming_task_queue_;
// A task runner which we haven't bound to a thread yet.

Powered by Google App Engine
This is Rietveld 408576698