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

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

Issue 17555005: Add events with custom timestamps and thread id to PPAPI dev tracing interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 7 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
« no previous file with comments | « no previous file | chrome/test/ppapi/ppapi_browsertest.cc » ('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 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 <stack> 9 #include <stack>
10 #include <string> 10 #include <string>
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // TRACE_EVENT0("renderer,webkit", "WebViewImpl::HandleInputEvent") 384 // TRACE_EVENT0("renderer,webkit", "WebViewImpl::HandleInputEvent")
385 static const unsigned char* GetCategoryGroupEnabled(const char* name); 385 static const unsigned char* GetCategoryGroupEnabled(const char* name);
386 static const char* GetCategoryGroupName( 386 static const char* GetCategoryGroupName(
387 const unsigned char* category_group_enabled); 387 const unsigned char* category_group_enabled);
388 388
389 // Called by TRACE_EVENT* macros, don't call this directly. 389 // Called by TRACE_EVENT* macros, don't call this directly.
390 // If |copy| is set, |name|, |arg_name1| and |arg_name2| will be deep copied 390 // If |copy| is set, |name|, |arg_name1| and |arg_name2| will be deep copied
391 // into the event; see "Memory scoping note" and TRACE_EVENT_COPY_XXX above. 391 // into the event; see "Memory scoping note" and TRACE_EVENT_COPY_XXX above.
392 void AddTraceEvent(char phase, 392 void AddTraceEvent(char phase,
393 const unsigned char* category_group_enabled, 393 const unsigned char* category_group_enabled,
394 const char* category_group, 394 const char* name,
395 unsigned long long id, 395 unsigned long long id,
396 int num_args, 396 int num_args,
397 const char** arg_names, 397 const char** arg_names,
398 const unsigned char* arg_types, 398 const unsigned char* arg_types,
399 const unsigned long long* arg_values, 399 const unsigned long long* arg_values,
400 scoped_ptr<ConvertableToTraceFormat> convertable_values[], 400 scoped_ptr<ConvertableToTraceFormat> convertable_values[],
401 unsigned char flags); 401 unsigned char flags);
402 void AddTraceEventWithThreadIdAndTimestamp( 402 void AddTraceEventWithThreadIdAndTimestamp(
403 char phase, 403 char phase,
404 const unsigned char* category_group_enabled, 404 const unsigned char* category_group_enabled,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 562
563 CategoryFilter category_filter_; 563 CategoryFilter category_filter_;
564 564
565 DISALLOW_COPY_AND_ASSIGN(TraceLog); 565 DISALLOW_COPY_AND_ASSIGN(TraceLog);
566 }; 566 };
567 567
568 } // namespace debug 568 } // namespace debug
569 } // namespace base 569 } // namespace base
570 570
571 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ 571 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/ppapi/ppapi_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698