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

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: Add \n 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
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 32
danakj 2015/09/01 20:55:13 generally no whitespace between forward decls
31 namespace base {
32
33 class RefCountedString; 33 class RefCountedString;
34 34
35 namespace trace_event { 35 namespace trace_event {
36 36
37 class TraceBuffer; 37 class TraceBuffer;
38 class TraceBufferChunk; 38 class TraceBufferChunk;
39 class TraceEvent; 39 class TraceEvent;
40 class TraceEventMemoryOverhead; 40 class TraceEventMemoryOverhead;
41 class TraceSamplingThread; 41 class TraceSamplingThread;
42 42
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 subtle::AtomicWord generation_; 485 subtle::AtomicWord generation_;
486 bool use_worker_thread_; 486 bool use_worker_thread_;
487 487
488 DISALLOW_COPY_AND_ASSIGN(TraceLog); 488 DISALLOW_COPY_AND_ASSIGN(TraceLog);
489 }; 489 };
490 490
491 } // namespace trace_event 491 } // namespace trace_event
492 } // namespace base 492 } // namespace base
493 493
494 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ 494 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698