Game Development Reference
In-Depth Information
Traceview is a graphical viewer that displays trace file data for method calls and times
saved by your application, which can help you profile the performance of your application.
To start Traceview, enter the following command from the SDK tools/ directory:
traceview
The standalone version of Traceview is deprecated after Android SDK 4.0+, enter com-
mand tools/monitor to launch the Android Debug Monitor instead (figure 1.9).
Figure 1.9 Android Debug Monitor
Logcat
Logcat is designed to dump a log of system messages. The logged messages will keep a
stack trace when the emulator throws an error. To run logcat, execute adb logcat or, from
DDMS, select Device > Run logcat.
Log is a logging class you can use to print out messages to the logcat. You can read mes-
sages in real time if you run logcat on DDMS (covered next). Common logging methods
Search WWH ::




Custom Search