語言

Debug.TraceCountAllocs 欄位

定義

警告

This constant will be removed in the future version. Use Android.OS.DebugTraceOptions enum directly instead of this field.

startMethodTracing() 的旗標。

[Android.Runtime.Register("TRACE_COUNT_ALLOCS")]
[System.Obsolete("This constant will be removed in the future version. Use Android.OS.DebugTraceOptions enum directly instead of this field.", true)]
public const Android.OS.DebugTraceOptions TraceCountAllocs = 1;
[<Android.Runtime.Register("TRACE_COUNT_ALLOCS")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.OS.DebugTraceOptions enum directly instead of this field.", true)>]
val mutable TraceCountAllocs : Android.OS.DebugTraceOptions

欄位值

Value = 1
屬性

備註

startMethodTracing() 的旗標。 這些可以合併成OR。

TRACE_COUNT_ALLOCS 會將 startAllocCounting 的結果加入追蹤鍵檔案。

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

Java 文件 android.os.Debug.TRACE_COUNT_ALLOCS。

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

適用於