Visual Studio 2019: show CPU profiling in C++ DLL called from C# application
I want to use Visual Studio 2019 to show me CPU profiling for code inside a C++ DLL that's called by a C# application. I have the code for the DLL and the application all in one solution, and it's built for Debug. The first time I tried it, it worked: the "CPU Usage" window showed me a call stack with CPU usage from the C# application all the way down into the C++ DLL. Then I restarted the IDE and did it again, and now the stack shows only the C# code. Where it calls down into the DLL, it shows only "dynamicClass.IL_STUB_PInvoke(string)". The "Load Symbols" and "Show External Code" options don't help. I didn't change any settings in the project or the IDE. Rebuilding the project didn't help either.