DacpOomData 結構

定義垃圾回收記憶體資訊的傳輸緩衝區。

Note

此 API 原本是針對運行時間內部使用所設計。 雖然現在支援第三方使用,但建議您盡可能使用 ICorDebugICorProfiler API。

Syntax

struct DacpOomData : ZeroInit<DacpOomData>
{
    int reason;
    ULONG64 alloc_size;
    ULONG64 available_pagefile_mb;
    ULONG64 gc_index;
    int fgm;
    ULONG64 size;
    BOOL loh_p;

    HRESULT Request(ISOSDacInterface *sos)
    {
        return sos->GetOOMStaticData(this);
    }

    // Use this for Server mode, as there are multiple heaps,
    // and you need to pass a heap address in addr.
    HRESULT Request(ISOSDacInterface *sos, CLRDATA_ADDRESS addr)
    {
        return sos->GetOOMData(addr, this);
    }
};

Members

會員 說明
reason 記憶體不足的理由代碼。
alloc_size 導致記憶體不足狀況的分配大小。
available_pagefile_mb 可用頁面檔案空間的大小,以兆位元組計算。
gc_index 與記憶體不足條件相關的 GC 指數。
fgm 與完整 GC 機制相關的值,用於記憶體缺失狀態。
size 與記憶體不足條件相關的大小值。
loh_p 一個表示配置是否屬於大型物件堆的值。
Request 透過呼叫 ISOSDacInterface::GetOOMStaticDataISOSDacInterface::GetOOMData填充結構。

Remarks

此結構位於運行時間內,不會透過任何標頭或庫檔案公開。 使用時,請依上述定義結構。

要求

平台:請參閱系統需求
標題:
圖書館:
.NET Framework 版本:自 4.7 版本起可用

也請參閱