語言

Trace.BeginAsyncSection(String, Int32) 方法

定義

會寫出追蹤訊息,表示某一段程式碼已經開始。

[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

參數

methodName
String

方法名稱會出現在追蹤中。

cookie
Int32

區分同時發生事件的唯一識別碼

屬性

備註

會寫出追蹤訊息,表示某一段程式碼已經開始。 必須以相同方法的 Name 和 Cookie 呼叫 to #endAsyncSection(String, int) 。 與 和 #beginSection(String)不同#endSection(),非同步事件不需要巢狀。 結束活動時必須使用用於開始事件的名稱和 cookie。

Java 文件 android.os.Trace.beginAsyncSection(java.lang.String, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於