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

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

Issue 11366109: Adding raw tracing to trace framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo. Created 7 years, 10 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) 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // 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
258 // 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.
259 void AddTraceEvent(char phase, 259 void AddTraceEvent(char phase,
260 const unsigned char* category_enabled,
261 const char* name,
262 unsigned long long id,
263 int num_args,
264 const char** arg_names,
265 const unsigned char* arg_types,
266 const unsigned long long* arg_values,
267 unsigned char flags);
268 void AddTraceEvent(char phase,
jar (doing other things) 2013/02/14 02:17:54 nit: style guide suggests not using function overl
dsinclair 2013/02/14 15:38:47 Done.
260 const unsigned char* category_enabled, 269 const unsigned char* category_enabled,
261 const char* name, 270 const char* name,
262 unsigned long long id, 271 unsigned long long id,
272 int thread_id,
273 int64 timestamp,
263 int num_args, 274 int num_args,
264 const char** arg_names, 275 const char** arg_names,
265 const unsigned char* arg_types, 276 const unsigned char* arg_types,
266 const unsigned long long* arg_values, 277 const unsigned long long* arg_values,
267 unsigned char flags); 278 unsigned char flags);
268 static void AddTraceEventEtw(char phase, 279 static void AddTraceEventEtw(char phase,
269 const char* name, 280 const char* name,
270 const void* id, 281 const void* id,
271 const char* extra); 282 const char* extra);
272 static void AddTraceEventEtw(char phase, 283 static void AddTraceEventEtw(char phase,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 const unsigned char* watch_category_; 398 const unsigned char* watch_category_;
388 std::string watch_event_name_; 399 std::string watch_event_name_;
389 400
390 DISALLOW_COPY_AND_ASSIGN(TraceLog); 401 DISALLOW_COPY_AND_ASSIGN(TraceLog);
391 }; 402 };
392 403
393 } // namespace debug 404 } // namespace debug
394 } // namespace base 405 } // namespace base
395 406
396 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ 407 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698