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

Unified Diff: base/debug/trace_event_android.cc

Issue 22962004: Thread-local trace-event buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/debug/trace_event_impl.h » ('j') | base/debug/trace_event_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/trace_event_android.cc
diff --git a/base/debug/trace_event_android.cc b/base/debug/trace_event_android.cc
index 78d9de66747541906bdb585cde021534d34fb20f..cf32c3844442485ccbd48621c0663d1163f939bb 100644
--- a/base/debug/trace_event_android.cc
+++ b/base/debug/trace_event_android.cc
@@ -86,7 +86,7 @@ void TraceLog::StopATrace() {
void TraceLog::SendToATrace(
char phase,
- const char* category_group,
+ const unsigned char* category_group_enabled,
const char* name,
unsigned long long id,
int num_args,
@@ -98,6 +98,7 @@ void TraceLog::SendToATrace(
if (g_atrace_fd == -1)
return;
+ const char* category_group = GetCategoryGroupName(category_group_enabled);
dsinclair 2013/08/13 21:04:42 This seems unrelated, move to its own CL?
Xianzhu 2013/08/14 21:28:33 Done.
switch (phase) {
case TRACE_EVENT_PHASE_BEGIN:
WriteEvent('B', category_group, name, id,
« no previous file with comments | « no previous file | base/debug/trace_event_impl.h » ('j') | base/debug/trace_event_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698