Método ICLRTask::GetMemStatsICLRTask::GetMemStats Method
Obtém informações de uso de memória estatística relacionadas à tarefa que a instância ICLRTask atual representa.Gets statistical memory usage information related to the task that the current ICLRTask instance represents.
SintaxeSyntax
HRESULT GetMemStats (
[out] COR_GC_THREAD_STATS *pMemUsage
);
ParâmetrosParameters
pMemUsage
fora Um ponteiro para uma instância de COR_GC_THREAD_STATS que contém detalhes sobre o uso de memória da tarefa, incluindo o número de bytes alocados.[out] A pointer to a COR_GC_THREAD_STATS instance that contains details about the memory usage of the task, including the number of bytes allocated.
Valor retornadoReturn Value
HRESULTHRESULT | DescriçãoDescription |
---|---|
S_OKS_OK | GetMemStats retornado com êxito.GetMemStats returned successfully. |
HOST_E_CLRNOTAVAILABLEHOST_E_CLRNOTAVAILABLE | O Common Language Runtime (CLR) não foi carregado em um processo ou o CLR está em um estado no qual não pode executar código gerenciado ou processar a chamada com êxito.The common language runtime (CLR) has not been loaded into a process, or the CLR is in a state in which it cannot run managed code or process the call successfully. |
HOST_E_TIMEOUTHOST_E_TIMEOUT | A chamada atingiu o tempo limite.The call timed out. |
HOST_E_NOT_OWNERHOST_E_NOT_OWNER | O chamador não possui o bloqueio.The caller does not own the lock. |
HOST_E_ABANDONEDHOST_E_ABANDONED | Um evento foi cancelado enquanto um thread ou uma fibra bloqueada estava esperando.An event was canceled while a blocked thread or fiber was waiting on it. |
E_FAILE_FAIL | Ocorreu uma falha catastrófica desconhecida.An unknown catastrophic failure occurred. Quando um método retorna E_FAIL, o CLR não é mais utilizável no processo.When a method returns E_FAIL, the CLR is no longer usable within the process. As chamadas subsequentes para métodos de hospedagem retornam HOST_E_CLRNOTAVAILABLE.Subsequent calls to hosting methods return HOST_E_CLRNOTAVAILABLE. |
RequisitosRequirements
Plataformas: confira Requisitos do sistema.Platforms: See System Requirements.
Cabeçalho: MSCorEE. hHeader: MSCorEE.h
Biblioteca: Incluído como um recurso no MSCorEE.dllLibrary: Included as a resource in MSCorEE.dll
.NET Framework versões:Disponível desde o 2.0Available since 2.0.NET Framework Versions: Disponível desde o 2.0Available since 2.0