Adding some tracing sections around launcher startup
Bug: 29007436 Change-Id: I53afd9130a2dc70a2223f1623e862faf44370f26
This commit is contained in:
1 parent
91f3b1c0b8
commit
e26d1008eb
4 files changed
+39
-8
No files matched your search
@@ -37,6 +37,7 @@ import android.os.Looper;
|
||||
import android.os.Parcelable;
|
||||
import android.os.Process;
|
||||
import android.os.SystemClock;
|
||||
import android.os.Trace;
|
||||
import android.provider.BaseColumns;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
@@ -1542,6 +1543,9 @@ public class LauncherModel extends BroadcastReceiver
|
||||
}
|
||||
|
||||
private void loadWorkspace() {
|
||||
if (LauncherAppState.PROFILE_STARTUP) {
|
||||
Trace.beginSection("Loading Workspace");
|
||||
}
|
||||
final long t = DEBUG_LOADERS ? SystemClock.uptimeMillis() : 0;
|
||||
|
||||
final Context context = mContext;
|
||||
@@ -2157,6 +2161,9 @@ public class LauncherModel extends BroadcastReceiver
|
||||
}
|
||||
}
|
||||
}
|
||||
if (LauncherAppState.PROFILE_STARTUP) {
|
||||
Trace.endSection();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user