Profile Android NDK code. Further instructions on the docs/Usage.md page.
There are examples on the docs/Example.md page and the design desicions are discussed on the docs/HowItWorks.md page.
You could also try FPL Utils - NDK perf, which provides a non-intrusive way to profile your applications using Linux perf.