What is the meaning of Incl CPU Time, Excl CPU Time, Incl Real CPU Time, Excl Real CPU Time in traceview?

前端 未结 3 1469
挽巷
挽巷 2020-12-29 20:06

1) Exclusive time is the time spent in the method 2) Inclusive time is the time spent in the method plus the time spent in any called functions 3) We refer to calling method

3条回答
  •  滥情空心
    2020-12-29 20:40

    from the source code of .trace, you can see the cpu time detail different from the real cpu time, it's the same with the description of the android doc: CPU time considers only the time that the thread is actively using CPU time, and real time provides absolute timing information from the moment your app enters a method to when it exits that method—regardless of whether the thread is active or sleeping.

提交回复
热议问题