最終更新:2016-07-04 (月) 15:40:21 (2851d)
Traceview
Top / Traceview
A Graphical Log Viewer
http://developer.android.com/tools/help/traceview.html
概要
- Traceview is a graphical viewer for execution logs saved by your application.
- Traceview can help you debug your application and profile its performance.
- 実行時にログを取得しておいて、そのログをグラフィカルに表示
ログファイル
- generated by adding tracing code to your application or by DDMS
使い方
- https://developer.android.com/studio/profile/traceview-walkthru.html
- To start the Traceview tool:
- Start the Android Device Monitor.
- In the Android Device Monitor tool bar, click DDMS and select a process.
- Click the Start Method Profiling icon to start method profiling.
- After the profiling is complete, click the Stop Method Profiling icon to display the traceview.
クラス
例
// start tracing to "/sdcard/calc.trace" Debug.startMethodTracing("calc"); // ... // stop tracing Debug.stopMethodTracing();
メモ
- Note: Running traceview from the command line has been deprecated.