简体   繁体   English

如何在Android设备上编写多个可执行文件的分析脚本?

[英]How to script the profiling of multiple executable on an Android device?

I have some executables that I compiled with the native toolchain, the NDK, for Android. 我有一些使用本地工具链NDK编译的可执行文件(适用于Android)。

I would like to script the execution of this programs and since I'm interested in the performance of the application, I would like to run them to get the basic information about the execution like CPU usage, time, memory, and the usual stuff for a basic profiler. 我想编写脚本来执行这些程序,并且由于我对应用程序的性能感兴趣,因此我希望运行它们以获取有关执行的基本信息,例如CPU使用率,时间,内存以及一些常用信息。基本的探查器。

It's possible to do this starting from the executables on my pc, pushing them to my device, run them and get back the information that I'm looking for ? 可以从我的PC上的可执行文件开始,将它们推送到设备上,运行它们并取回我正在寻找的信息来执行此操作?

you could try these executables on linux using pss vss monitoring commands or even memusage command, but own't be effective unless its tried on android device. 您可以使用pss vss监控命令甚至memusage命令在Linux上尝试这些可执行文件,但除非在Android设备上进行了尝试,否则它们本身不会生效。 You could use DDMS for profiling android apps, you can do method profiling or trace profiling. 您可以使用DDMS来分析android应用,也可以进行方法分析或跟踪分析。

Have a look at: http://developer.android.com/tools/debugging/ddms.html http://developer.android.com/tools/debugging/debugging-tracing.html 看看: http : //developer.android.com/tools/debugging/ddms.html http://developer.android.com/tools/debugging/debugging-tracing.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM