CLR Profiler

A CLR profiler is written in C++ and compiled into a COM component which gets loaded into the same process as an executing managed application which facilitates the exchange of information between them.

profiler1.png

Coding a Profiler

The first few project commits are setup to demonstrate steps you can follow to understand how a CLR profiler is put together.

Using a Profiler

Whenever a managed application launches it examines a couple of environment variables to first decide if profiling is enabled and if its to find the CLSID of the profiler DLL to load.

set COR_ENABLE_PROFILING=1
set COR_PROFILER={D8545FFE-7AC0-4E4A-95CF-22F6A4375FB8}

Last edited Jul 14, 2013 at 11:48 AM by aanodide, version 12

Comments

No comments yet.