Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Object Allocation Tracking not enabled in Visual Studio 2022

I am trying to profile the .NET object Allocation in the profiling tools in Visual Studio.

Unfortunately, the option ":NET Object Allocation Tracking" is not enabled for my project.

My project is a .NET 7 application.

Thanks for you help

like image 906
EricImhauser Avatar asked Oct 29 '25 02:10

EricImhauser


2 Answers

I seems that ".NET Object Allocation Tracking" is mutually exclusive with all other options. Uncheck all of the others tools and it should be enabled.

like image 151
paradise Avatar answered Nov 01 '25 06:11

paradise


In my case when I openned the Performance profiler, the Memory Usage was preselected. If that's your case deselect it and the .Net Object Allocation Tracking will be enabled

like image 30
Nicoara Avatar answered Nov 01 '25 07:11

Nicoara