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

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

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/debug/stack_trace.h ('k') | base/debug/trace_event_impl.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 is designed to give you trace_event macros without specifying 5 // This header is designed to give you 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 // event to some other universe, you can copy-and-paste this file, 7 // event to some other universe, you can copy-and-paste this file,
8 // implement the TRACE_EVENT_API macros, and do any other necessary fixup for 8 // implement the TRACE_EVENT_API macros, and do any other necessary fixup for
9 // the target platform. The end result is that multiple libraries can funnel 9 // the target platform. The end result is that multiple libraries can funnel
10 // events through to a shared trace event collector. 10 // events through to a shared trace event collector.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // because AddTraceEvent is threadsafe internally and checks the enabled state 143 // because AddTraceEvent is threadsafe internally and checks the enabled state
144 // again under lock. 144 // again under lock.
145 // 145 //
146 // Without the use of these static category pointers and enabled flags all 146 // Without the use of these static category pointers and enabled flags all
147 // trace points would carry a significant performance cost of aquiring a lock 147 // trace points would carry a significant performance cost of aquiring a lock
148 // and resolving the category. 148 // and resolving the category.
149 149
150 150
151 #ifndef BASE_DEBUG_TRACE_EVENT_H_ 151 #ifndef BASE_DEBUG_TRACE_EVENT_H_
152 #define BASE_DEBUG_TRACE_EVENT_H_ 152 #define BASE_DEBUG_TRACE_EVENT_H_
153 #pragma once
154 153
155 #include <string> 154 #include <string>
156 155
157 #include "base/atomicops.h" 156 #include "base/atomicops.h"
158 #include "base/debug/trace_event_impl.h" 157 #include "base/debug/trace_event_impl.h"
159 #include "build/build_config.h" 158 #include "build/build_config.h"
160 159
161 // By default, const char* argument values are assumed to have long-lived scope 160 // By default, const char* argument values are assumed to have long-lived scope
162 // and will not be copied. Use this macro to force a const char* to be copied. 161 // and will not be copied. Use this macro to force a const char* to be copied.
163 #define TRACE_STR_COPY(str) \ 162 #define TRACE_STR_COPY(str) \
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 const char* name; 862 const char* name;
864 int threshold_begin_id; 863 int threshold_begin_id;
865 }; 864 };
866 Data* p_data_; 865 Data* p_data_;
867 Data data_; 866 Data data_;
868 }; 867 };
869 868
870 } // namespace trace_event_internal 869 } // namespace trace_event_internal
871 870
872 #endif // BASE_DEBUG_TRACE_EVENT_H_ 871 #endif // BASE_DEBUG_TRACE_EVENT_H_
OLDNEW
« no previous file with comments | « base/debug/stack_trace.h ('k') | base/debug/trace_event_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698