I would like to run Memory Usage session or Object Allocation (preferable both) but I have only available types CPU Usage and GPU Usage. VS does not show any hint while given section is disabled.
I tried out several other projects I wrote and one after another all have just those two sections.
I run 64-bit Windows 10.
When the Diagnostic Tools window appears, choose the Memory Usage tab, and then choose Heap Profiling.
Open the Performance and Diagnostics hub from the Debug -> Performance and Diagnostics (ALT+F2) menu. We support 3 profiling modes for the Memory Usage tool. You can set this using the Settings link available next to the Memory Usage tool prior to starting a profiling session. 1.
The Performance Profiler and Diagnostic Tools window in Visual Studio have many different settings which affect the overall performance of the tools. Changing some settings can cause analysis to run quickly or cause additional wait times while processing results in tools. Below is a summary of certain settings and their impact on performance.
Instead of profiling objects on the Java heap, the Native Memory Profiler only tracks allocations made through the C/C++ allocator, including native JNI objects. The Native Memory Profiler is built on heapprofd in the Perfetto stack of performance analysis tools.
Specifically, the Memory Profiler can show you the following about object allocations: What types of objects were allocated and how much space they use. The stack trace of each allocation, including in which thread. When the objects were deallocated (only when using a device with Android 8.0 or higher).
It's possible that the current tool selection prevents you from selecting what you want.
For example, here's what I see:
I can't select the Memory Usage
tool unless I deselect both the CPU Usage
and Database
tools:
In my case, Memory Usage was disabled because of project's framework version. It was set to 3.5. When I changed it to newest (on my computer 4.7.2), Memory Usage functionality starts working. After profiling, I will change framework version back to 3.5, due to our product compatibility.
Framework version settings is in: Project / Properties / Application / Target Framework
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With