語言

Trace.EndAsyncSection(String, Int32) 方法

定義

寫入追蹤訊息以表示目前方法已結束。

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

參數

methodName
String

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

cookie
Int32

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

屬性

備註

寫入追蹤訊息以表示目前方法已結束。 每次呼叫 #beginAsyncSection(String, int) 使用相同名稱和 cookie 必須精確呼叫一次。

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

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

適用於