ICLRAppDomainResourceMonitor::GetCurrentAllocated Method
Gets the total size, in bytes, of all memory allocations that have been made by the application domain since it was created, without subtracting memory that has been garbage-collected.
Syntax
HRESULT GetCurrentAllocated([in] DWORD dwAppDomainId,
[out] ULONGLONG* pBytesAllocated);
Parameters
dwAppDomainId
[in] The ID of the requested application domain.
pBytesAllocated
[out] A pointer to the total size of all memory allocations.
Return Value
This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.
HRESULT | Description |
---|---|
S_OK | The method completed successfully. |
COR_E_APPDOMAINUNLOADED | The application domain has been unloaded or does not exist. |
Remarks
This method is the unmanaged equivalent of the managed AppDomain.MonitoringTotalAllocatedMemorySize property.
Requirements
Platforms: See System Requirements.
Header: MetaHost.h
Library: Included as a resource in MSCorEE.dll
.NET Framework Versions: Available since 4
See also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho