다음을 통해 공유


Trace.BeginSection(String) Method

Definition

Writes a trace message to indicate that a given section of code has begun.

[Android.Runtime.Register("beginSection", "(Ljava/lang/String;)V", "")]
public static void BeginSection (string sectionName);
[<Android.Runtime.Register("beginSection", "(Ljava/lang/String;)V", "")>]
static member BeginSection : string -> unit

Parameters

sectionName
String

The name of the code section to appear in the trace. This may be at most 127 Unicode code units long.

Attributes

Remarks

Writes a trace message to indicate that a given section of code has begun. This call must be followed by a corresponding call to #endSection() on the same thread.

<p class="note"> At this time the vertical bar character '|', newline character '\n', and null character '\0' are used internally by the tracing mechanism. If sectionName contains these characters they will be replaced with a space character in the trace.

Java documentation for android.os.Trace.beginSection(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to