How to profile "native code" in android -


i using androidstudio 1.2

i tried profile native code in android reference solution in link tried figure out usage of aprof though make required tweaks -> giving permission write,adding config in android.mk in solution file not getting dumped in /mnt/sdcard below 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 file explorer screenshot aprof file not reflected fileexplorer screen

please let me know if there wrong in process or better way achieve results of native code profiling


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -