Método ICorProfilerInfo::ForceGCICorProfilerInfo::ForceGC Method
Força a coleta de lixo a ocorrer dentro do Common Language Runtime (CLR).Forces garbage collection to occur within the common language runtime (CLR).
SintaxeSyntax
HRESULT ForceGC();
ComentáriosRemarks
O ForceGC
método deve ser chamado somente de um thread que nunca tenha executado código gerenciado e não tenha nenhum retorno de chamada do criador de perfil em sua pilha.The ForceGC
method must be called only from a thread that has never run managed code and does not have any profiler callbacks on its stack. A implementação mais conveniente é criar um thread separado dentro do criador de perfil que chama ForceGC
quando sinalizado.The most convenient implementation is to create a separate thread within the profiler that calls ForceGC
when signaled.
RequisitosRequirements
Plataformas: confira Requisitos do sistema.Platforms: See System Requirements.
Cabeçalho: CorProf. idl, CorProf. hHeader: CorProf.idl, CorProf.h
Biblioteca: CorGuids.libLibrary: CorGuids.lib
.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