Share via


Profiling Unmanaged Code

The common language runtime (CLR) profiling API provides minimal support for profiling unmanaged code. The following functionality is provided:

  • Enumeration of stack chains. This feature enables a code profiler to determine the boundary between managed code and unmanaged code.

  • Determination whether a stack chain corresponds to managed code or native code.

In the .NET Framework versions 1.0 and 1.1, these methods are available through the in-process subset of the CLR debugging API. They are defined in the CorDebug.idl file and explained in the CLR Debugging Overview.

In the .NET Framework 2.0, you can use the ICorProfilerInfo2::DoStackSnapshot method for this functionality.

See Also

Other Resources

Key Concepts in the Profiling API

Profiling Overview