I am using AndroidStudio 1.2
I tried to profile my own code in android with a link to SOLUTION
in this link, where I tried to figure out the use of aprof, even if I make the necessary settings → giving write permission by adding config in android.mk, as in a solution that the file does not get in / mnt / sdcard below, my code ..
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".DisplayMemory"
android:label="@string/title_activity_display_memory" >
</activity>
<activity
android:name=".DisplayCpu"
android:label="@string/title_activity_display_cpu" >
</activity>
<activity
android:name=".BatteryInfo"
android:label="@string/title_activity_battery_info" >
</activity>
<activity
android:name=".TrafficAnalysis"
android:label="@string/title_activity_traffic_analysis" >
</activity>
</application>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Android.mk
LOCAL_ENABLE_APROF := true
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := CalcNative.c
LOCAL_MODULE := CalcNative
LOCAL_LDLIBS := -llog
LOCAL_ENABLE_APROF_JNI := true
include $(BUILD_SHARED_LIBRARY)
My screenshot is the file of my file where the aprof file is not displayed

Please let me know if something is wrong in my process or the best way to achieve the results of your own code profiling
source
share