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

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

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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
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 // Trace events to track application performance. Events consist of a name 5 // Trace events to track application performance. Events consist of a name
6 // a type (BEGIN, END or INSTANT), a tracking id and extra string data. 6 // a type (BEGIN, END or INSTANT), a tracking id and extra string data.
7 // In addition, the current process id, thread id, a timestamp down to the 7 // In addition, the current process id, thread id, a timestamp down to the
8 // microsecond and a file and line number of the calling location. 8 // microsecond and a file and line number of the calling location.
9 // 9 //
10 // The current implementation logs these events into a log file of the form 10 // The current implementation logs these events into a log file of the form
(...skipping 13 matching lines...) Expand all
24 // 24 //
25 // Note that the Windows implementation is always enabled, irrespective the 25 // Note that the Windows implementation is always enabled, irrespective the
26 // value of the CHROMIUM_ENABLE_TRACE_EVENT define. The Windows implementation 26 // value of the CHROMIUM_ENABLE_TRACE_EVENT define. The Windows implementation
27 // is controlled by Event Tracing for Windows, which will turn tracing on only 27 // is controlled by Event Tracing for Windows, which will turn tracing on only
28 // if there is someone listening for the events it generates. 28 // if there is someone listening for the events it generates.
29 #include "base/debug/trace_event_win.h" 29 #include "base/debug/trace_event_win.h"
30 #else // defined(OS_WIN) 30 #else // defined(OS_WIN)
31 31
32 #include <string> 32 #include <string>
33 33
34 #include "base/scoped_ptr.h" 34 #include "base/memory/scoped_ptr.h"
35 #include "base/singleton.h" 35 #include "base/memory/singleton.h"
36 #include "base/synchronization/lock.h" 36 #include "base/synchronization/lock.h"
37 #include "base/time.h" 37 #include "base/time.h"
38 #include "base/timer.h" 38 #include "base/timer.h"
39 39
40 #ifndef CHROMIUM_ENABLE_TRACE_EVENT 40 #ifndef CHROMIUM_ENABLE_TRACE_EVENT
41 #define TRACE_EVENT_BEGIN(name, id, extra) ((void) 0) 41 #define TRACE_EVENT_BEGIN(name, id, extra) ((void) 0)
42 #define TRACE_EVENT_END(name, id, extra) ((void) 0) 42 #define TRACE_EVENT_END(name, id, extra) ((void) 0)
43 #define TRACE_EVENT_INSTANT(name, id, extra) ((void) 0) 43 #define TRACE_EVENT_INSTANT(name, id, extra) ((void) 0)
44 44
45 #else // CHROMIUM_ENABLE_TRACE_EVENT 45 #else // CHROMIUM_ENABLE_TRACE_EVENT
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 scoped_ptr<base::ProcessMetrics> process_metrics_; 140 scoped_ptr<base::ProcessMetrics> process_metrics_;
141 RepeatingTimer<TraceLog> timer_; 141 RepeatingTimer<TraceLog> timer_;
142 }; 142 };
143 143
144 } // namespace debug 144 } // namespace debug
145 } // namespace base 145 } // namespace base
146 146
147 #endif // defined(OS_WIN) 147 #endif // defined(OS_WIN)
148 148
149 #endif // BASE_DEBUG_TRACE_EVENT_H_ 149 #endif // BASE_DEBUG_TRACE_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698