Debug.GlobalClassInitCount 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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 所創建與分享的作品,並依授權條款所描述的使用進行修改。