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

Side by Side Diff: base/trace_event/trace_log.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
« no previous file with comments | « base/trace_event/trace_event_win.h ('k') | base/trace_event/trace_log.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef BASE_TRACE_EVENT_TRACE_LOG_H_ 5 #ifndef BASE_TRACE_EVENT_TRACE_LOG_H_
6 #define BASE_TRACE_EVENT_TRACE_LOG_H_ 6 #define BASE_TRACE_EVENT_TRACE_LOG_H_
7 7
8 #include "base/trace_event/memory_dump_provider.h" 8 #include "base/trace_event/memory_dump_provider.h"
9 #include "base/trace_event/trace_config.h" 9 #include "base/trace_event/trace_config.h"
10 #include "base/trace_event/trace_event_impl.h" 10 #include "base/trace_event/trace_event_impl.h"
11 11
12 // Older style trace macros with explicit id and extra data 12 // Older style trace macros with explicit id and extra data
13 // Only these macros result in publishing data to ETW as currently implemented. 13 // Only these macros result in publishing data to ETW as currently implemented.
14 // TODO(georgesak): Update/replace these with new ETW macros. 14 // TODO(georgesak): Update/replace these with new ETW macros.
15 #define TRACE_EVENT_BEGIN_ETW(name, id, extra) \ 15 #define TRACE_EVENT_BEGIN_ETW(name, id, extra) \
16 base::trace_event::TraceLog::AddTraceEventEtw( \ 16 base::trace_event::TraceLog::AddTraceEventEtw( \
17 TRACE_EVENT_PHASE_BEGIN, name, reinterpret_cast<const void*>(id), extra) 17 TRACE_EVENT_PHASE_BEGIN, name, reinterpret_cast<const void*>(id), extra)
18 18
19 #define TRACE_EVENT_END_ETW(name, id, extra) \ 19 #define TRACE_EVENT_END_ETW(name, id, extra) \
20 base::trace_event::TraceLog::AddTraceEventEtw( \ 20 base::trace_event::TraceLog::AddTraceEventEtw( \
21 TRACE_EVENT_PHASE_END, name, reinterpret_cast<const void*>(id), extra) 21 TRACE_EVENT_PHASE_END, name, reinterpret_cast<const void*>(id), extra)
22 22
23 #define TRACE_EVENT_INSTANT_ETW(name, id, extra) \ 23 #define TRACE_EVENT_INSTANT_ETW(name, id, extra) \
24 base::trace_event::TraceLog::AddTraceEventEtw( \ 24 base::trace_event::TraceLog::AddTraceEventEtw( \
25 TRACE_EVENT_PHASE_INSTANT, name, reinterpret_cast<const void*>(id), \ 25 TRACE_EVENT_PHASE_INSTANT, name, reinterpret_cast<const void*>(id), \
26 extra) 26 extra)
27 27
28 namespace base {
29
28 template <typename Type> 30 template <typename Type>
29 struct DefaultSingletonTraits; 31 struct DefaultSingletonTraits;
30
31 namespace base {
32
33 class RefCountedString; 32 class RefCountedString;
34 33
35 namespace trace_event { 34 namespace trace_event {
36 35
37 class TraceBuffer; 36 class TraceBuffer;
38 class TraceBufferChunk; 37 class TraceBufferChunk;
39 class TraceEvent; 38 class TraceEvent;
40 class TraceEventMemoryOverhead; 39 class TraceEventMemoryOverhead;
41 class TraceSamplingThread; 40 class TraceSamplingThread;
42 41
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 subtle::AtomicWord generation_; 484 subtle::AtomicWord generation_;
486 bool use_worker_thread_; 485 bool use_worker_thread_;
487 486
488 DISALLOW_COPY_AND_ASSIGN(TraceLog); 487 DISALLOW_COPY_AND_ASSIGN(TraceLog);
489 }; 488 };
490 489
491 } // namespace trace_event 490 } // namespace trace_event
492 } // namespace base 491 } // namespace base
493 492
494 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ 493 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_
OLDNEW
« no previous file with comments | « base/trace_event/trace_event_win.h ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698