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

Unified Diff: base/android/trace_event_binding.cc

Issue 2883993002: android: Add the target to toplevel Looper events in tracing, (Closed)
Patch Set: Created 3 years, 7 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 | « base/android/java/src/org/chromium/base/TraceEvent.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/trace_event_binding.cc
diff --git a/base/android/trace_event_binding.cc b/base/android/trace_event_binding.cc
index 8551f99f961b6c3f72164b517770d404cf559bdb..30ca55ef8881d9f1247c29cb346c28dfc0475b57 100644
--- a/base/android/trace_event_binding.cc
+++ b/base/android/trace_event_binding.cc
@@ -121,8 +121,12 @@ static void End(JNIEnv* env,
}
}
-static void BeginToplevel(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
- TRACE_EVENT_BEGIN0(kToplevelCategory, kLooperDispatchMessage);
+static void BeginToplevel(JNIEnv* env,
+ const JavaParamRef<jclass>& clazz,
+ const JavaParamRef<jstring>& jtarget) {
+ std::string target = ConvertJavaStringToUTF8(env, jtarget);
+ TRACE_EVENT_BEGIN1(kToplevelCategory, kLooperDispatchMessage, "target",
+ target);
}
static void EndToplevel(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
« no previous file with comments | « base/android/java/src/org/chromium/base/TraceEvent.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698