Questions tagged [clrprofiler]

CLRProfiler is a free profiler tool from Microsoft for profiling .NET Framework applications. For questions on implementing .NET profilers using Microsoft CLR profiling API's, such as ICorProfilerInfo and ICorProfilerCallback, use the clr-profiling-api tag.

CLRProfiler is a free GUI profiler tool from Microsoft for profiling .NET Framework applications.

It allows for investigating performance bottlenecks in .NET applications, by providing various performance metrics, including the contents of the managed heap, garbage collection, and memory allocation call stacks.

CLRProfiler is no longer being maintained. The latest version could be downloaded from Microsoft: CLR Profiler for .NET Framework 4. The project used to be hosted on CodePlex, and is now archived. A mirror is also available on Microsoft's GitHub page.

24 questions
7
votes
1 answer

No CLR Version v4. is loaded into the target process. - CLR Profiler Error

I am trying to profile my application using CLR Profiler. I downloaded latest version of profiler from http://www.microsoft.com/download/en/details.aspx?id=16273. I tried to profile application by attaching a it. But always I am getting a message…
Anuraj
  • 18,859
  • 7
  • 53
  • 79
5
votes
3 answers

How do I use CLR Profiler to debug an ASP.Net app running on IIS 7.5?

I am having memory leak issues with my ASP.Net application. I've tried WinDbg, which IMO displays mostly useless information, and I'm currently trying to get the CLR profiler to work. My problem is everytime I try to "Profile ASP.NET" It just…
Ben Lesh
  • 107,825
  • 47
  • 247
  • 232
4
votes
3 answers

Problem with CLRProfiler

I am trying to use Microsoft's CLRProfiler to profile my fairly large app, and it is crashing whenever it tries to write (or read) a log file. Ironically, the exact bug is documented on the MS 'Feedback' site as being not reproducible, and seems…
Joel in Gö
  • 7,460
  • 9
  • 47
  • 77
4
votes
1 answer

Why is server garbage collection faster if I'm not collecting garbage?

I'm writing a data structure and if I set in my app.config file, the program adds 500,000 items in 200 milliseconds. If I set it takes 300 milliseconds. That is, setting this flag to false…
Ryan Peschel
  • 11,087
  • 19
  • 74
  • 136
4
votes
1 answer

CLR Profiler and 0 Heap Statistics

Why would I get 0 for my heap statistics allocation for an ASP.NET MVC web application with CLR profiler?
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
3
votes
2 answers

Unable to find expected objects in VS 2015 memory usage profiler

I have the following simple program which I am trying to use with VS 2015's Diagnostic Tools related to Memory Usage. class Program { static void Main(string[] args) { Console.WriteLine("Begin"); Console.ReadLine(); …
Kiran
  • 56,921
  • 15
  • 176
  • 161
3
votes
1 answer

Capturing the ADO.net DB queries run-time

I am trying to capture the Db query for this below piece of C# .net Web application. There are way to do if i use DbProviderfactory by making a proxy of it. But instead of using a DbProviderFactory if i use SqlConnection and SqlCommand directly like…
Sel_va
  • 588
  • 5
  • 25
2
votes
1 answer

Instrumentation Profiler in CoreCLR - Ways to Load HelperAssembly in to dotnet process

I am trying to Instrument .NET Core web applications that runs on .NET Core 3.1 using CoreCLR Profiler in linux centos7. I have set the environment values CORECLR_PROFILER , CORECLR_ENABLE_PROFILING and CORECLR_PROFILER_PATH, where my…
jay
  • 61
  • 2
2
votes
1 answer

CLR Profiler 2.0 does not work on .NET 4.0 Client Profile WPF application

I have a WPF application that is targeting the .NET Framework 4.0 Client Profile. When I run it from the CLR Profiler 2.0 (which runs with administrative rights), the application starts and runs normally, but the CLR Profiler does not show any…
Jonas Sourlier
  • 13,684
  • 16
  • 77
  • 148
2
votes
0 answers

How to profile surviving objects

i'm not too sure if CLR profiler if the right tool or not.. but what i'm trying to achieve is to be able to see the state of an object in memory such as getting disposed or not after exiting a method.. if CLR profiler is not the right tool, can…
user384080
  • 4,576
  • 15
  • 64
  • 96
2
votes
1 answer

CLRProfiler not connecting to CLR when hosted

I have a native Win32 application that hosts the CLR to use C# as a sophisticated 'scripting' language. I've got a memory leak and I decided to try Microsoft's CLR Profiler to investigate. (I'm not sure if the leak is managed or not and was hoping…
Kevin
  • 1,179
  • 7
  • 18
1
vote
1 answer

.NET profiling api - calculate time taken to execute async method

To monitor my dotnet core application I'm using .NET clr profiling api to get method level trace and calculate the time taken by any method to complete its execution. I'm unable to get the time taken by async methods. public…
Zader
  • 67
  • 7
1
vote
1 answer

Application crashes when started using CLR Profiler

I am trying to use CLR Profiler for my WPF application, but the app crashes every time. Upon finding the Trace log for the application I got that in my app's MainNavigation.xmal.cs uses a Singleton class to store global data. When I start the app…
emni
  • 11
  • 1
1
vote
1 answer

Can CLR Profiler be used to find memory leaks

My .NET application has memory leak. Few people seem to recommend using CLR Profiler for this pupose I am a bit lost on the idea. To me in order to find a memory leak, tool should compare two memory states that can give you statistics like growth in…
palm snow
  • 2,392
  • 4
  • 29
  • 49
1
vote
1 answer

Summary by CLRProfiler: Heap Statistics values are 0

I am using CLRProfiler, 64bit for .NET 4. I am attaching CLRProfiler to a running iis worker-process running a single website. All values in the Summary-view are always zero. Only Heap Dumps has a value of 1 and I can see the Heap Graph. Only if I…
hlintrup
  • 169
  • 1
  • 13
1
2