Trace.BeginAsyncSection(String, Int32) Method

Definition

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

[Android.Runtime.Register("beginAsyncSection", "(Ljava/lang/String;I)V", "", ApiSince=29)]
public static void BeginAsyncSection (string methodName, int cookie);
[<Android.Runtime.Register("beginAsyncSection", "(Ljava/lang/String;I)V", "", ApiSince=29)>]
static member BeginAsyncSection : string * int -> unit

Parameters

methodName
String

The method name to appear in the trace.

cookie
Int32

Unique identifier for distinguishing simultaneous events

Attributes

Remarks

Writes a trace message to indicate that a given section of code has begun. Must be followed by a call to #endAsyncSection(String, int) with the same methodName and cookie. Unlike #beginSection(String) and #endSection(), asynchronous events do not need to be nested. The name and cookie used to begin an event must be used to end it.

Java documentation for android.os.Trace.beginAsyncSection(java.lang.String, int).

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