語言

Debug.GlobalClassInitCount 屬性

定義

警告

deprecated

回傳成功初始化的類別數量(即執行且未拋出例外)介於 a #startAllocCounting() start 與 #stopAllocCounting() stop之間。

[System.Obsolete("deprecated")]
public static int GlobalClassInitCount { [Android.Runtime.Register("getGlobalClassInitCount", "()I", "")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getGlobalClassInitCount", "()I", "")>]
static member GlobalClassInitCount : int

屬性值

成功初始化的類別數量(即在 與 #startAllocCounting() start#stopAllocCounting() stop之間執行且未拋出例外的類別)。

屬性

備註

回傳成功初始化的類別數量(即執行且未拋出例外)介於 a #startAllocCounting() start 與 #stopAllocCounting() stop之間。

此會員已被棄用。 精確的計數會增加執行時間的負擔,且可以被移除。

Java 文件 android.os.Debug.getGlobalClassInitCount()。

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

適用於