Android Guides | Samples

Android.OS.Trace Class

Writes trace events to the system trace buffer.

See Also: Trace

Syntax

[Android.Runtime.Register("android/os/Trace", DoNotGenerateAcw=true)]
public sealed class Trace : Object

Remarks

Writes trace events to the system trace buffer. These trace events can be collected and visualized using the Systrace tool.

This tracing mechanism is independent of the method tracing mechanism offered by Debug.StartMethodTracing. In particular, it enables tracing of events that occur across multiple processes.

For information about using the Systrace tool, read Analyzing Display and Performance with Systrace.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18

The members of Android.OS.Trace are listed below.

See Also: Object

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
BeginSection(String)
Writes a trace message to indicate that a given section of code has begun.
static
EndSection()
Writes a trace message to indicate that a given section of code has ended.