Partager via


ICorProfilerCallback::RuntimeSuspendStarted Method

Notifies the profiler that the runtime is about to suspend all runtime threads.

HRESULT RuntimeSuspendStarted(
    [in] COR_PRF_SUSPEND_REASON suspendReason);

Parameters

  • suspendReason
    [in] A value of the COR_PRF_SUSPEND_REASON enumeration that indicates the reason for the suspension.

Remarks

All runtime threads that are in unmanaged code are allowed to continue running until they try to re-enter the runtime. At that point they will also be suspended until the runtime resumes. This also applies to new threads that enter the runtime. All threads in the runtime are either suspended immediately if they are already in interruptible code, or they are asked to suspend when they reach interruptible code.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Concepts

ICorProfilerCallback Interface

ICorProfilerCallback::RuntimeSuspendAborted Method

ICorProfilerCallback::RuntimeSuspendFinished Method