Best method to measure execution time in Android?

前端 未结 5 1767
臣服心动
臣服心动 2020-12-24 02:03

What is best method to measure execution time of Android code snippet?

I have a section of code before and after which I want to place timestamps to find out it\'s e

5条回答
  •  误落风尘
    2020-12-24 02:24

    What you ask about is called profiling, and there're tools to help you with that on Android as well. See article Profiling with Traceview and dmtracedump on official developer site.

提交回复
热议问题