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

Side by Side Diff: base/tracked_objects.cc

Issue 6410105: run iwyu on base! Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/tracked.cc ('k') | base/utf_offset_string_conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/tracked_objects.h" 5 #include <architecture/i386/math.h>
6 #include <stdbool.h>
7 #include <stddef.h>
8 #include <string.h>
9 #include <algorithm>
10 #include <map>
11 #include <string>
12 #include <utility>
13 #include <vector>
6 14
7 #include <math.h> 15 #include "base/basictypes.h"
8
9 #include "base/format_macros.h" 16 #include "base/format_macros.h"
17 #include "base/logging.h"
10 #include "base/message_loop.h" 18 #include "base/message_loop.h"
11 #include "base/string_util.h" 19 #include "base/string_util.h"
12 #include "base/stringprintf.h" 20 #include "base/stringprintf.h"
21 #include "base/synchronization/lock.h"
22 #include "base/threading/thread_local_storage.h"
13 #include "base/threading/thread_restrictions.h" 23 #include "base/threading/thread_restrictions.h"
24 #include "base/time.h"
25 #include "base/tracked.h"
26 #include "base/tracked_objects.h"
14 27
15 using base::TimeDelta; 28 using base::TimeDelta;
16 29
17 namespace tracked_objects { 30 namespace tracked_objects {
18 31
19 // A TLS slot to the TrackRegistry for the current thread. 32 // A TLS slot to the TrackRegistry for the current thread.
20 // static 33 // static
21 base::ThreadLocalStorage::Slot ThreadData::tls_index_(base::LINKER_INITIALIZED); 34 base::ThreadLocalStorage::Slot ThreadData::tls_index_(base::LINKER_INITIALIZED);
22 35
23 // A global state variable to prevent repeated initialization during tests. 36 // A global state variable to prevent repeated initialization during tests.
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 (combined_selectors_ & BIRTH_THREAD) ? "*" : 1061 (combined_selectors_ & BIRTH_THREAD) ? "*" :
1049 sample.birth().birth_thread()->ThreadName().c_str(), 1062 sample.birth().birth_thread()->ThreadName().c_str(),
1050 (combined_selectors_ & DEATH_THREAD) ? "*" : 1063 (combined_selectors_ & DEATH_THREAD) ? "*" :
1051 sample.DeathThreadName().c_str()); 1064 sample.DeathThreadName().c_str());
1052 sample.birth().location().Write(!(combined_selectors_ & BIRTH_FILE), 1065 sample.birth().location().Write(!(combined_selectors_ & BIRTH_FILE),
1053 !(combined_selectors_ & BIRTH_FUNCTION), 1066 !(combined_selectors_ & BIRTH_FUNCTION),
1054 output); 1067 output);
1055 } 1068 }
1056 1069
1057 } // namespace tracked_objects 1070 } // namespace tracked_objects
OLDNEW
« no previous file with comments | « base/tracked.cc ('k') | base/utf_offset_string_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698