* commit '58524b2aa620ae1ea709ae48b8b8598548cc7202': Register DDM handlers at the beginning of main method.
This commit is contained in:
@@ -233,6 +233,7 @@ public class RuntimeInit {
|
||||
}
|
||||
|
||||
public static final void main(String[] argv) {
|
||||
enableDdms();
|
||||
if (argv.length == 2 && argv[1].equals("application")) {
|
||||
if (DEBUG) Slog.d(TAG, "RuntimeInit: Starting application");
|
||||
redirectLogStreams();
|
||||
@@ -365,9 +366,9 @@ public class RuntimeInit {
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable debugging features.
|
||||
* Enable DDMS.
|
||||
*/
|
||||
static {
|
||||
static final void enableDdms() {
|
||||
// Register handlers for DDM messages.
|
||||
android.ddm.DdmRegister.registerHandlers();
|
||||
}
|
||||
|
||||
@@ -557,6 +557,7 @@ public class ZygoteInit {
|
||||
|
||||
public static void main(String argv[]) {
|
||||
try {
|
||||
RuntimeInit.enableDdms();
|
||||
// Start profiling the zygote initialization.
|
||||
SamplingProfilerIntegration.start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user