summaryrefslogtreecommitdiff
path: root/core/jni/AndroidRuntime.cpp
diff options
context:
space:
mode:
authorYasuhiro Matsuda <mazda@google.com>2015-09-02 12:54:23 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-09-02 12:54:23 +0000
commitef57e5e03b042065e69c65e910065df7306d930c (patch)
tree0200a4c90a8da4fb28b0bd95e4cb74de511a1a09 /core/jni/AndroidRuntime.cpp
parentdd80a6cf37799b41ae07c60137d312c5ea2db961 (diff)
parent1ab43d5978813f56899dbd3115fd7d9f96b4fe55 (diff)
Merge "Add trace code to system server."
Diffstat (limited to 'core/jni/AndroidRuntime.cpp')
-rw-r--r--core/jni/AndroidRuntime.cpp3
1 files changed, 3 insertions, 0 deletions
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 <binder/IServiceManager.h>
#include <utils/Log.h>
#include <utils/misc.h>
+#include <utils/Trace.h>
#include <binder/Parcel.h>
#include <utils/threads.h>
#include <cutils/properties.h>
@@ -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