From fbb32f6440ed74a4d27eec03569520580d00da42 Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Fri, 12 Jun 2015 15:34:35 +0100 Subject: Better systrace slices for application startup. This change adds three new timeslices : - PostFork : As soon as possible after the app forks from the zygote. Can be used in conjunction with the system_server "Start proc:" event to derive an upper bound on fork() and zygote overhead. - RuntimeInit & ActivityThreadMain for ZygoteInit#runtimeInit and ActivityThread#main. ActivityThread#handleBindApplication and higher level functions are already well instrumented in systrace. handleBindApplication should occur immediately after ActivityThread#main. Note that we use the Activity manager tag to make it easier to correlate these new events with surrounding events (Start proc and handleBindApplication) that are already using the AM tag. bug: 21632700 Change-Id: Ibc01f1721f962c913f3c02a51763b6feb1eb6a4d --- cmds/app_process/app_main.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'cmds') diff --git a/cmds/app_process/app_main.cpp b/cmds/app_process/app_main.cpp index c5af992..449a4ab 100644 --- a/cmds/app_process/app_main.cpp +++ b/cmds/app_process/app_main.cpp @@ -90,9 +90,6 @@ public: virtual void onZygoteInit() { - // Re-enable tracing now that we're no longer in Zygote. - atrace_set_tracing_enabled(true); - sp proc = ProcessState::self(); ALOGV("App process: starting thread pool.\n"); proc->startThreadPool(); -- cgit v1.1