Is there a way to profile memory of a native C++ application on a remote machine where VS is not installed?
Per MSFT document below, remote tool is installed on the remote Windows and VSDiagnostics.exe
should be used. There are also two relevant agent DLLs (MemoryProfilerCollectionAgent
and NativeMemoryCollectionAgent
). However, there are no sample agent config JSON files for them.
And I don’t seem to find any page that introduces these two agents. So hence to ask:
- Is memory profiling actually supported remotely (by
VSDiagnostics.exe
)? - If yes, how can I get the CLSID of them and write my own agent config files for them?
VSDiagnostics.exe start <id> /attach:<pid> /loadConfig:<configFile>