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

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

Issue 8692013: Improve GPU tests to fail when GPU drawing fails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-added DLOG Created 9 years 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 | « no previous file | chrome/test/data/gpu/feature_canvas2d.html » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 are for tracking application performance and resource usage. 5 // Trace events are for tracking application performance and resource usage.
6 // Macros are provided to track: 6 // Macros are provided to track:
7 // Begin and end of function calls 7 // Begin and end of function calls
8 // Counters 8 // Counters
9 // 9 //
10 // Events are issued against categories. Whereas LOG's 10 // Events are issued against categories. Whereas LOG's
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 #define TRACE_EVENT2(category, name, arg1_name, arg1_val, arg2_name, arg2_val) \ 162 #define TRACE_EVENT2(category, name, arg1_name, arg1_val, arg2_name, arg2_val) \
163 INTERNAL_TRACE_EVENT_ADD_SCOPED( \ 163 INTERNAL_TRACE_EVENT_ADD_SCOPED( \
164 category, name, arg1_name, arg1_val, arg2_name, arg2_val) 164 category, name, arg1_name, arg1_val, arg2_name, arg2_val)
165 165
166 // Same as TRACE_EVENT except that they are not included in official builds. 166 // Same as TRACE_EVENT except that they are not included in official builds.
167 #ifdef OFFICIAL_BUILD 167 #ifdef OFFICIAL_BUILD
168 #define UNSHIPPED_TRACE_EVENT0(category, name) (void)0 168 #define UNSHIPPED_TRACE_EVENT0(category, name) (void)0
169 #define UNSHIPPED_TRACE_EVENT1(category, name, arg1_name, arg1_val) (void)0 169 #define UNSHIPPED_TRACE_EVENT1(category, name, arg1_name, arg1_val) (void)0
170 #define UNSHIPPED_TRACE_EVENT2(category, name, arg1_name, arg1_val, \ 170 #define UNSHIPPED_TRACE_EVENT2(category, name, arg1_name, arg1_val, \
171 arg2_name, arg2_val) (void)0 171 arg2_name, arg2_val) (void)0
172 #define UNSHIPPED_TRACE_EVENT_INSTANT0(category, name) (void)0
173 #define UNSHIPPED_TRACE_EVENT_INSTANT1(category, name, arg1_name, arg1_val) \
174 (void)0
175 #define UNSHIPPED_TRACE_EVENT_INSTANT2(category, name, arg1_name, arg1_val, \
176 arg2_name, arg2_val) (void)0
172 #else 177 #else
173 #define UNSHIPPED_TRACE_EVENT0(category, name) \ 178 #define UNSHIPPED_TRACE_EVENT0(category, name) \
174 TRACE_EVENT0(category, name) 179 TRACE_EVENT0(category, name)
175 #define UNSHIPPED_TRACE_EVENT1(category, name, arg1_name, arg1_val) \ 180 #define UNSHIPPED_TRACE_EVENT1(category, name, arg1_name, arg1_val) \
176 TRACE_EVENT1(category, name, arg1_name, arg1_val) 181 TRACE_EVENT1(category, name, arg1_name, arg1_val)
177 #define UNSHIPPED_TRACE_EVENT2(category, name, arg1_name, arg1_val, \ 182 #define UNSHIPPED_TRACE_EVENT2(category, name, arg1_name, arg1_val, \
178 arg2_name, arg2_val) \ 183 arg2_name, arg2_val) \
179 TRACE_EVENT2(category, name, arg1_name, arg1_val, arg2_name, arg2_val) 184 TRACE_EVENT2(category, name, arg1_name, arg1_val, arg2_name, arg2_val)
185 #define UNSHIPPED_TRACE_EVENT_INSTANT0(category, name) \
186 TRACE_EVENT_INSTANT0(category, name)
187 #define UNSHIPPED_TRACE_EVENT_INSTANT1(category, name, arg1_name, arg1_val) \
188 TRACE_EVENT_INSTANT1(category, name, arg1_name, arg1_val)
189 #define UNSHIPPED_TRACE_EVENT_INSTANT2(category, name, arg1_name, arg1_val, \
190 arg2_name, arg2_val) \
191 TRACE_EVENT_INSTANT2(category, name, arg1_name, arg1_val, \
192 arg2_name, arg2_val)
180 #endif 193 #endif
181 194
182 // Records a single event called "name" immediately, with 0, 1 or 2 195 // Records a single event called "name" immediately, with 0, 1 or 2
183 // associated arguments. If the category is not enabled, then this 196 // associated arguments. If the category is not enabled, then this
184 // does nothing. 197 // does nothing.
185 // - category and name strings must have application lifetime (statics or 198 // - category and name strings must have application lifetime (statics or
186 // literals). They may not include " chars. 199 // literals). They may not include " chars.
187 #define TRACE_EVENT_INSTANT0(category, name) \ 200 #define TRACE_EVENT_INSTANT0(category, name) \
188 TRACE_EVENT_INSTANT1(category, name, NULL, 0) 201 TRACE_EVENT_INSTANT1(category, name, NULL, 0)
189 #define TRACE_EVENT_INSTANT1(category, name, arg1_name, arg1_val) \ 202 #define TRACE_EVENT_INSTANT1(category, name, arg1_name, arg1_val) \
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 Data* p_data_; 852 Data* p_data_;
840 Data data_; 853 Data data_;
841 }; 854 };
842 855
843 } // namespace internal 856 } // namespace internal
844 857
845 } // namespace debug 858 } // namespace debug
846 } // namespace base 859 } // namespace base
847 860
848 #endif // BASE_DEBUG_TRACE_EVENT_H_ 861 #endif // BASE_DEBUG_TRACE_EVENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/gpu/feature_canvas2d.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698