Difference between revisions of "Android tracing, monitoring and debugging"

[unchecked revision] [quality revision]
 

This article provides useful information to start using Android tracing, monitoring and debugging environments.

1 Specific Linux® tracing trace and debugging debug tools[edit]

In Android various Linux tracing and debugging tools are available. To get the global picture, refer to Linux tracing, monitoring and debugging page.

2 Android tools[edit]

2.1 Application debugging[edit]

You can use Android Studio to debug your Android application. Please read the official documentation about Android Studio[1].

2.2 adeb[edit]

adeb (also known as androdeb) provides a powerful Linux shell environment where one can run popular and mainstream Linux tracing, compiling, editing and other development tools on an existing Android device. All the commands typically available on a modern Linux system are supported in adeb.

It consist in installing a Debian distribution into the Android system itself to execute more debug commands.

For more information refer to the ADEB page.

2.3 logcat[edit]

The Android logging system provides a mechanism for collecting and viewing system debug output. Logs from various applications and portions of the system are collected in a series of circular buffers, which then can be viewed and filtered by the logcat command. Use logcat from an ADB shell to view the log messages.

For more information refer to the Android developer site[2].

2.4 perfetto[edit]

Perfetto is an open-source project for performance instrumentation and tracing of Android platforms and user-space apps.

For more information refer to the perfetto page.

3 References[edit]


This article provides useful information to start using Android<sup>&trade;</sup> tracing, monitoring and debugging environments.

== Specific Linux<sup>&reg;</sup> tracingtrace and debuggingdebug tools ==

In Android<sup>&trade;</sup> various Linux tracing and debugging tools are available. To get the global picture, refer to [[Linux tracing, monitoring and debugging]] page.

== Android tools ==

=== Application debugging ===

You can use Android Studio to  debug your Android application. Please read the official documentation about Android Studio<ref>https://developer.android.com/studio/debug</ref>. 

=== adeb ===
<code>adeb</code> (also known as androdeb) provides a powerful Linux shell environment where one can run popular and mainstream Linux tracing, compiling, editing and other development tools on an existing Android device. All the commands typically available on a modern Linux system are supported in <code>adeb</code>.

It consist in installing a Debian distribution into the Android system itself to execute more debug commands.

For more information refer to the [[ADEB]] page.

=== logcat ===

The Android logging system provides a mechanism for collecting and viewing system debug output. Logs from various applications and portions of the system are collected in a series of circular buffers, which then can be viewed and filtered by the <code>logcat</code> command. Use <code>logcat</code> from an [[ADB]] shell to view the log messages.

For more information refer to the Android developer site<ref>https://developer.android.com/studio/command-line/logcat</ref>.

=== perfetto ===
<code>Perfetto</code> is an open-source project for performance instrumentation and tracing of Android platforms and user-space apps.

For more information refer to the [[perfetto]] page.

== References ==<references />

<noinclude>

[[Category:Trace and debug tools|1]]
[[Category:Android]]
{{PublicationRequestId |13243 | 2019-09-12}}</noinclude>
Line 1: Line 1:
 
This article provides useful information to start using Android<sup>&trade;</sup> tracing, monitoring and debugging environments.
 
This article provides useful information to start using Android<sup>&trade;</sup> tracing, monitoring and debugging environments.
   
== Specific Linux<sup>&reg;</sup> trace and debug tools ==
+
== Specific Linux<sup>&reg;</sup> tracing and debugging tools ==
   
 
In Android<sup>&trade;</sup> various Linux tracing and debugging tools are available. To get the global picture, refer to [[Linux tracing, monitoring and debugging]] page.
 
In Android<sup>&trade;</sup> various Linux tracing and debugging tools are available. To get the global picture, refer to [[Linux tracing, monitoring and debugging]] page.

Attachments

Discussions