Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there CLR profiler for .NET 4.0 around?

Tags:

clr

profiler

The CLR profiler I downloaded from here link text does not work for my app which is implemented using .NET 4.0. Is there a version for .NET 4.0? Thanks.

like image 263
jiangok Avatar asked Dec 04 '10 01:12

jiangok


People also ask

What is .NET profiler?

A profiler is a tool that monitors the execution of another application. A common language runtime (CLR) profiler is a dynamic link library (DLL) that consists of functions that receive messages from, and send messages to, the CLR by using the profiling API. The profiler DLL is loaded by the CLR at run time.

What is Cor_enable_profiling?

COR_ENABLE_PROFILING: The CLR connects to a profiler only if this environment variable exists and is set to 1. COR_PROFILER: If the COR_ENABLE_PROFILING check passes, the CLR connects to the profiler that has this CLSID or ProgID, which must have been stored previously in the registry.

Is .NET a runtime environment?

. NET Framework is a run-time execution environment that manages apps that target .


2 Answers

UPDATE: The CLR Profiler for .NET Framework 4 is now available here.

I couldn't find the CLR Profiler for .NET 4.0, but you should be able to use the older version if you set the environment variable: COMPLUS_ProfAPI_ProfilerCompatibilitySetting. For more information see this blog post.

Also note that as of .NET 4.0 the CLR outputs some more information to the Event Log to help you diagnose issues loading profilers. You can easily view these logs with the Event Viewer.

like image 186
Colin Thomsen Avatar answered Oct 23 '22 08:10

Colin Thomsen


CLR Profile 4.0 can be downloaded here:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=f4addc9d-be61-4ebc-90b2-5f50812c2037

it looks like the installer is 64bit only, but you can unpack it using 7z and the 32bit version is inside the package.

like image 30
WalkingCat Avatar answered Oct 23 '22 09:10

WalkingCat