-
Notifications
You must be signed in to change notification settings - Fork 5
Android Performance
Shuai YUAN edited this page Jan 16, 2018
·
4 revisions
- 有什么比较好用的android ndk c/c++性能分析工具吗?
- https://stackoverflow.com/questions/7704704/android-is-there-any-tool-for-profiling-native-code
- Android性能调优工具TraceView介绍
- Performance Tuning On Android
- Android性能优化典范 - 第1季
SystemClock.currentThreadTimeMillis()
System.nanoTime()
- System.currentTimeMillis vs System.nanoTime
- System.nanoTime与System.currentTimeMillis的区别
- Is System.nanoTime() completely useless?
- Profiling native NDK code in Android
- https://google.github.io/fplutil/android_ndk_perf.html
- 用profiler工具对android ndk程序进行性能分析
// Starts recording a trace log with the name you provide. For example, the
// following code tells the system to start recording a .trace file to the
// device with the name "sample.trace".
Debug.startMethodTracing("sample");
...
// The system begins buffering the generated trace data, until your
// application calls stopMethodTracing(), at which time it writes
// the buffered data to the output file.
Debug.stopMethodTracing();