Android软件NDK本地C实际Android手机code评测 [英] Android software NDK native c code profiling on actual Android phones

查看:221
本文介绍了Android软件NDK本地C实际Android手机code评测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发在Android上一个相当大的软件,日志本地code,现在的工作,但有一些性能问题。

I am developing a rather large software on Android with a log native code, it's working now but having some performance issues.

我希望我可以分析软件的CPU周期,内存使用情况等,各个模块(函数调用)在几个真正的Andr​​oid手机。有一个简单的C库这样做呢?

I am hoping I can profile each module(function call) of the software for CPU cycles, memory usage, etc, on several real android phones. Is there a simple c library to do that?

我看到使用oprofile的人来说,这似乎是因为它是一个系统的野外探查我的情况下,矫枉过正,它需要重新编译内核和系统映像。

I see people using oprofile, It seems to be a overkill for my case since that it is a system wild profiler, and it requires rebuild the kernel and system image.

因为我有我的应用程序的完整源$ C ​​$ C,我真正需要的是一个简单的C库,我可以在我的code嵌入做了一些分析,而应用程序运行多个测试案例。

As I have the full source code of my app, all I really need is a simple c library that I can embed in my code to do some profiling while the app runs several test cases.

顺便说一句,什么是这样做的Linux的方法?

BTW, what is the Linux way of doing this?

推荐答案

我已经与Android的NDK廓pretty的像样的成绩。

I've had pretty decent results with android-ndk-profiler.

HTTP://$c$c.google.com/p / Android的NDK廓/

输出/mnt/sdcard/gmon.out

Outputs /mnt/sdcard/gmon.out

这篇关于Android软件NDK本地C实际Android手机code评测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆