summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-06-12 15:34:35 +0100
committerNarayan Kamath <narayan@google.com>2015-06-16 12:06:31 +0100
commitfbb32f6440ed74a4d27eec03569520580d00da42 (patch)
tree1b2efd8333d77b3f0095f39d00e7a7a153aec968 /cmds
parent2cc03e5606ad7cd473283898400506d5ac2237ba (diff)
downloadframeworks_base-fbb32f6440ed74a4d27eec03569520580d00da42.zip
frameworks_base-fbb32f6440ed74a4d27eec03569520580d00da42.tar.gz
frameworks_base-fbb32f6440ed74a4d27eec03569520580d00da42.tar.bz2
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
Diffstat (limited to 'cmds')
-rw-r--r--cmds/app_process/app_main.cpp3
1 files changed, 0 insertions, 3 deletions
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<ProcessState> proc = ProcessState::self();
ALOGV("App process: starting thread pool.\n");
proc->startThreadPool();