diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 15:48:55 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 15:48:55 +0000 |
commit | 59c771fe7a186d88ea1376a69260ea693ef58665 (patch) | |
tree | 53e447f483c60c2fb48b10fdb85c844dc6629149 /base | |
parent | 353f4150ab6ec68a7c9d9e9d9afecbf2e110de52 (diff) | |
download | chromium_src-59c771fe7a186d88ea1376a69260ea693ef58665.zip chromium_src-59c771fe7a186d88ea1376a69260ea693ef58665.tar.gz chromium_src-59c771fe7a186d88ea1376a69260ea693ef58665.tar.bz2 |
Establish correct names for about:tracking profiler
This file was mistakenly ommited from the recent landing,
so the thread names were not being set (all threads
other than the main thread wer assigned sequential
"WorkerThread-N" names).
r=eroman
Review URL: http://codereview.chromium.org/8315010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105814 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/threading/thread.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/threading/thread.cc b/base/threading/thread.cc index 616aac8..2a8d999 100644 --- a/base/threading/thread.cc +++ b/base/threading/thread.cc @@ -8,6 +8,7 @@ #include "base/third_party/dynamic_annotations/dynamic_annotations.h" #include "base/threading/thread_local.h" #include "base/synchronization/waitable_event.h" +#include "base/tracked_objects.h" namespace base { @@ -151,6 +152,9 @@ void Thread::ThreadMain() { ANNOTATE_THREAD_NAME(name_.c_str()); // Tell the name to race detector. message_loop.set_thread_name(name_); message_loop_ = &message_loop; +#if defined(TRACK_ALL_TASK_OBJECTS) + tracked_objects::ThreadData::InitializeThreadContext(name_); +#endif // TRACK_ALL_TASK_OBJECTS // Let the thread do extra initialization. // Let's do this before signaling we are started. |