From 1ab43d5978813f56899dbd3115fd7d9f96b4fe55 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsuda Date: Tue, 30 Jun 2015 17:07:32 +0900 Subject: Add trace code to system server. - Add TRACE_TAG_SYSTEM_SERVER for tracing system server code. - Add a few more tracing code to the code paths related to boot. BUG: 21739901 BUG: 22207144 Change-Id: I08b424d2f83783f512c3818394099909cd55f327 --- core/jni/AndroidRuntime.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/jni/AndroidRuntime.cpp') diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 7e7b74a2d5d5..1cbbeffe9de1 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -14,6 +14,7 @@ * limitations under the License. */ +#define ATRACE_TAG ATRACE_TAG_DALVIK #define LOG_TAG "AndroidRuntime" //#define LOG_NDEBUG 0 @@ -23,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -1400,6 +1402,7 @@ static const RegJNIRec gRegJNI[] = { */ /*static*/ int AndroidRuntime::startReg(JNIEnv* env) { + ATRACE_NAME("RegisterAndroidNatives"); /* * This hook causes all future threads created in this process to be * attached to the JavaVM. (This needs to go away in favor of JNI -- cgit v1.2.3