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

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

Issue 11557009: Remove support for TRACE_EVENT_IF_LONGER_THANx macros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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 5
6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_ 6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_
7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_ 7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // JSON. 247 // JSON.
248 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>&)> 248 typedef base::Callback<void(const scoped_refptr<base::RefCountedString>&)>
249 OutputCallback; 249 OutputCallback;
250 void Flush(const OutputCallback& cb); 250 void Flush(const OutputCallback& cb);
251 251
252 // Called by TRACE_EVENT* macros, don't call this directly. 252 // Called by TRACE_EVENT* macros, don't call this directly.
253 static const unsigned char* GetCategoryEnabled(const char* name); 253 static const unsigned char* GetCategoryEnabled(const char* name);
254 static const char* GetCategoryName(const unsigned char* category_enabled); 254 static const char* GetCategoryName(const unsigned char* category_enabled);
255 255
256 // Called by TRACE_EVENT* macros, don't call this directly. 256 // Called by TRACE_EVENT* macros, don't call this directly.
257 // Returns the index in the internal vector of the event if it was added, or
258 // -1 if the event was not added.
259 // On end events, the return value of the begin event can be specified along
260 // with a threshold in microseconds. If the elapsed time between begin and end
261 // is less than the threshold, the begin/end event pair is dropped.
262 // If |copy| is set, |name|, |arg_name1| and |arg_name2| will be deep copied 257 // If |copy| is set, |name|, |arg_name1| and |arg_name2| will be deep copied
263 // into the event; see "Memory scoping note" and TRACE_EVENT_COPY_XXX above. 258 // into the event; see "Memory scoping note" and TRACE_EVENT_COPY_XXX above.
264 int AddTraceEvent(char phase, 259 void AddTraceEvent(char phase,
265 const unsigned char* category_enabled, 260 const unsigned char* category_enabled,
266 const char* name, 261 const char* name,
267 unsigned long long id, 262 unsigned long long id,
268 int num_args, 263 int num_args,
269 const char** arg_names, 264 const char** arg_names,
270 const unsigned char* arg_types, 265 const unsigned char* arg_types,
271 const unsigned long long* arg_values, 266 const unsigned long long* arg_values,
272 int threshold_begin_id,
273 long long threshold,
274 unsigned char flags); 267 unsigned char flags);
275 static void AddTraceEventEtw(char phase, 268 static void AddTraceEventEtw(char phase,
276 const char* name, 269 const char* name,
277 const void* id, 270 const void* id,
278 const char* extra); 271 const char* extra);
279 static void AddTraceEventEtw(char phase, 272 static void AddTraceEventEtw(char phase,
280 const char* name, 273 const char* name,
281 const void* id, 274 const void* id,
282 const std::string& extra); 275 const std::string& extra);
283 276
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 const unsigned char* watch_category_; 388 const unsigned char* watch_category_;
396 std::string watch_event_name_; 389 std::string watch_event_name_;
397 390
398 DISALLOW_COPY_AND_ASSIGN(TraceLog); 391 DISALLOW_COPY_AND_ASSIGN(TraceLog);
399 }; 392 };
400 393
401 } // namespace debug 394 } // namespace debug
402 } // namespace base 395 } // namespace base
403 396
404 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ 397 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698