base: Factor task debug annotations out of MessageLoop
commitad8fb459e07068582588d72fd5dabdb72e70b689
authorskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 14 Aug 2014 14:26:09 +0000 (14 14:26 +0000)
committerskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 14 Aug 2014 14:28:05 +0000 (14 14:28 +0000)
tree430bcbd7768c81729886c1d0aac679c68e3a0802
parent7c828821471e8988087176095cb50a3c1ab56c51
base: Factor task debug annotations out of MessageLoop

The MessageLoop has some code for adding debug annotations such as trace
flows and memory usage tags to posted tasks. Since we want to use these
annotations more generally for tasks that are scheduled outside the base
message loop, this patch factors it out into a standalone class.

TEST=TaskAnnotatorTest
BUG=391005

Review URL: https://codereview.chromium.org/455833004

Cr-Commit-Position: refs/heads/master@{#289560}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289560 0039d316-1c4b-4281-b951-d872f2087c98
base/BUILD.gn
base/base.gyp
base/base.gypi
base/debug/task_annotator.cc [new file with mode: 0644]
base/debug/task_annotator.h [new file with mode: 0644]
base/debug/task_annotator_unittest.cc [new file with mode: 0644]
base/message_loop/incoming_task_queue.cc
base/message_loop/message_loop.cc
base/message_loop/message_loop.h