diff options
author | Bob Lee <crazybob@crazybob.org> | 2009-09-04 18:31:17 -0700 |
---|---|---|
committer | Bob Lee <crazybob@crazybob.org> | 2009-09-05 11:53:18 -0700 |
commit | e540833fdff4d58e37c9ba859388e24e2945ed45 (patch) | |
tree | d1ec39dba3be85a50a1ac8556ab6d68b49d927b6 /core/java/com/android/internal/os/RuntimeInit.java | |
parent | 9cc1817d46d8092865d8f1e7a6391dcae197a26a (diff) | |
download | frameworks_base-e540833fdff4d58e37c9ba859388e24e2945ed45.zip frameworks_base-e540833fdff4d58e37c9ba859388e24e2945ed45.tar.gz frameworks_base-e540833fdff4d58e37c9ba859388e24e2945ed45.tar.bz2 |
Integrated the profiler into the framework. We run it all the time if the persist.sampling_profiler
system property is set. Saves snapshots to the SD card.
Diffstat (limited to 'core/java/com/android/internal/os/RuntimeInit.java')
-rw-r--r-- | core/java/com/android/internal/os/RuntimeInit.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/core/java/com/android/internal/os/RuntimeInit.java b/core/java/com/android/internal/os/RuntimeInit.java index 8486272..4e6f9ca 100644 --- a/core/java/com/android/internal/os/RuntimeInit.java +++ b/core/java/com/android/internal/os/RuntimeInit.java @@ -83,7 +83,7 @@ public class RuntimeInit { Thread.setDefaultUncaughtExceptionHandler(new UncaughtHandler()); int hasQwerty = getQwertyKeyboard(); - + if (Config.LOGV) Log.d(TAG, ">>>>> qwerty keyboard = " + hasQwerty); if (hasQwerty == 1) { System.setProperty("qwerty", "1"); @@ -133,13 +133,13 @@ public class RuntimeInit { * @param className Fully-qualified class name * @param argv Argument vector for main() */ - private static void invokeStaticMain(String className, String[] argv) + private static void invokeStaticMain(String className, String[] argv) throws ZygoteInit.MethodAndArgsCaller { - + // We want to be fairly aggressive about heap utilization, to avoid // holding on to a lot of memory that isn't needed. VMRuntime.getRuntime().setTargetHeapUtilization(0.75f); - + Class<?> cl; try { @@ -178,7 +178,7 @@ public class RuntimeInit { public static final void main(String[] argv) { commonInit(); - + /* * Now that we're running in interpreted code, call back into native code * to run the system. @@ -187,7 +187,7 @@ public class RuntimeInit { if (Config.LOGV) Log.d(TAG, "Leaving RuntimeInit!"); } - + public static final native void finishInit(); /** @@ -236,7 +236,7 @@ public class RuntimeInit { } // Remaining arguments are passed to the start class's static main - + String startClass = argv[curArg++]; String[] startArgs = new String[argv.length - curArg]; @@ -245,28 +245,28 @@ public class RuntimeInit { } public static final native void zygoteInitNative(); - + /** * Returns 1 if the computer is on. If the computer isn't on, the value returned by this method is undefined. */ public static final native int isComputerOn(); /** - * Turns the computer on if the computer is off. If the computer is on, the behavior of this method is undefined. + * Turns the computer on if the computer is off. If the computer is on, the behavior of this method is undefined. */ public static final native void turnComputerOn(); /** - * + * * @return 1 if the device has a qwerty keyboard */ public static native int getQwertyKeyboard(); - + /** * Report a fatal error in the current process. If this is a user-process, * a dialog may be displayed informing the user of the error. This * function does not return; it forces the current process to exit. - * + * * @param tag to use when logging the error * @param t exception that was generated by the error */ @@ -405,7 +405,7 @@ public class RuntimeInit { /** * Replay an encoded CrashData record back into a useable CrashData record. This can be * helpful for providing debugging output after a process error. - * + * * @param crashDataBytes The byte array containing the encoded crash record * @return new CrashData record, or null if could not create one. */ |