語言

Debug.GlobalAllocCount 屬性

定義

警告

deprecated

回傳執行時間中分配的物件全域數量,介於 a #startAllocCounting() start 與 #stopAllocCounting() stop之間。

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

屬性值

由執行時間分配到 a #startAllocCounting() start 與 #stopAllocCounting() stop之間的全域物件數量。

屬性

備註

回傳執行時間中分配的物件全域數量,介於 a #startAllocCounting() start 與 #stopAllocCounting() stop之間。

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

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

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

適用於