I use dotMemory in conjunction with a very basic memory analysis tool in my application that makes it easy to tell when a memory leak is occuring.
I'm trying to figure out if there's a way I can initiate taking a snapshot from within the application itself, and have it automatically open in my locally installed dotMemory. This feature (the memory tool) is not available in client builds so I don't need to worry about clients having or not having dotMemory, since they can't use this. I'm looking at the documentation (which seems very sparse, and does not seem very helpful) and I can't tell if this is possible. There's a DotMemory.Config object that has a .OpenDotMemory() method but calling this doesn't do anything.
Clicking the above dotMemory: Take Snapshot button calls this:
private async void TakeSnapshot_Click(object sender, RoutedEventArgs e)
IsBusy = true;
IsBusyText = "Ensuring dotMemory";
DotMemory.Config conf = new DotMemory.Config();
IsBusyText = "Taking snapshot";
IsBusy = false;
The app freezes but nothing happens. Am I missing something? How do I make this work? The documentation could use more actual real world examples, preferably where all methods are used. OpenDotMemory() has no example so I have no idea how to actually use it.