您可以将其编译到 Android NDK 代码中,以生成与 gprof 兼容的配置信息。
WARNING: Unmaintained code ahead
As an alternative please try out Google's own FPL Utils - NDK perf, which provides a non-intrusive way to profile your applications using Linux perf. However be warned that this too is only supported on 2 somewhat-obsolete devices.
The general churn in Android means that this library has suffered some severe bit-rot over the last couple of years. If you can help then pull requests are appreciated, but I no longer have the time or motivation to work on the project.
Profile Android NDK code. Further instructions [on the docs/Usage.md page][Usage].
There are examples on the [docs/Example.md][Example] page and the design decisions are discussed on the [docs/HowItWorks.md][HowItWorks] page. [Usage]: https://github.com/richq/android-ndk-profiler/blob/master/docs/Usage.md [Example]: https://github.com/richq/android-ndk-profiler/blob/master/docs/Example.md [HowItWorks]: https://github.com/richq/android-ndk-profiler/blob/master/docs/HowItWorks.md
暂无开放 Issues,或尚未同步最近议题。