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

Unified Diff: content/browser/browser_main_loop.cc

Issue 874543003: Add support for TraceEvent before the native library is loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments, cleanup and a JNI unittest. Created 5 years, 9 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
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 2a56518910a273bfb6e1e78ad57972463fd36d41..95ed89527add340b0e733d9748fcaf0b8084b8cb 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -1266,6 +1266,10 @@ void BrowserMainLoop::InitStartupTracing(
delay_secs = 5;
}
+#if defined(OS_ANDROID)
+ TracingControllerAndroid::SetupEarlyJavaTracing();
+#endif
+
startup_trace_timer_.Start(FROM_HERE,
base::TimeDelta::FromSeconds(delay_secs),
this,
@@ -1274,6 +1278,7 @@ void BrowserMainLoop::InitStartupTracing(
void BrowserMainLoop::EndStartupTracing() {
is_tracing_startup_ = false;
+
TracingController::GetInstance()->DisableRecording(
TracingController::CreateFileSink(
startup_trace_file_,
« no previous file with comments | « content/browser/android/tracing_controller_android.cc ('k') | content/browser/tracing/tracing_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698