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

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

Issue 22836004: Chrome tracing for system-wide performance stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@asvalue
Patch Set: rebase Created 7 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/base.gypi ('k') | base/debug/trace_event_system_stats_monitor.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This header file defines the set of trace_event macros without specifying 5 // This header file defines the set of trace_event macros without specifying
6 // how the events actually get collected and stored. If you need to expose trace 6 // how the events actually get collected and stored. If you need to expose trace
7 // events to some other universe, you can copy-and-paste this file as well as 7 // events to some other universe, you can copy-and-paste this file as well as
8 // trace_event.h, modifying the macros contained there as necessary for the 8 // trace_event.h, modifying the macros contained there as necessary for the
9 // target platform. The end result is that multiple libraries can funnel events 9 // target platform. The end result is that multiple libraries can funnel events
10 // through to a shared trace event collector. 10 // through to a shared trace event collector.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // and resolving the category. 188 // and resolving the category.
189 189
190 #ifndef BASE_DEBUG_TRACE_EVENT_H_ 190 #ifndef BASE_DEBUG_TRACE_EVENT_H_
191 #define BASE_DEBUG_TRACE_EVENT_H_ 191 #define BASE_DEBUG_TRACE_EVENT_H_
192 192
193 #include <string> 193 #include <string>
194 194
195 #include "base/atomicops.h" 195 #include "base/atomicops.h"
196 #include "base/debug/trace_event_impl.h" 196 #include "base/debug/trace_event_impl.h"
197 #include "base/debug/trace_event_memory.h" 197 #include "base/debug/trace_event_memory.h"
198 #include "base/debug/trace_event_system_stats_monitor.h"
198 #include "build/build_config.h" 199 #include "build/build_config.h"
199 200
200 // By default, const char* argument values are assumed to have long-lived scope 201 // By default, const char* argument values are assumed to have long-lived scope
201 // and will not be copied. Use this macro to force a const char* to be copied. 202 // and will not be copied. Use this macro to force a const char* to be copied.
202 #define TRACE_STR_COPY(str) \ 203 #define TRACE_STR_COPY(str) \
203 trace_event_internal::TraceStringWithCopy(str) 204 trace_event_internal::TraceStringWithCopy(str)
204 205
205 // This will mark the trace event as disabled by default. The user will need 206 // This will mark the trace event as disabled by default. The user will need
206 // to explicitly enable the event. 207 // to explicitly enable the event.
207 #define TRACE_DISABLED_BY_DEFAULT(name) "disabled-by-default-" name 208 #define TRACE_DISABLED_BY_DEFAULT(name) "disabled-by-default-" name
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 const char* name_; 1542 const char* name_;
1542 IDType id_; 1543 IDType id_;
1543 1544
1544 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject); 1545 DISALLOW_COPY_AND_ASSIGN(TraceScopedTrackableObject);
1545 }; 1546 };
1546 1547
1547 } // namespace debug 1548 } // namespace debug
1548 } // namespace base 1549 } // namespace base
1549 1550
1550 #endif /* BASE_DEBUG_TRACE_EVENT_H_ */ 1551 #endif /* BASE_DEBUG_TRACE_EVENT_H_ */
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/debug/trace_event_system_stats_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698