Tracing and Analyzing application from within VS2019 using Concurrency Visualizer often keeps crashing for me. Also, I have been looking into some sort of cmd line support to make it seamless with automated workflows.
Typically it will be installed in
c:\program files\Microsoft Concurrency Visualizer Collection Tools\ directory, so getting in path with those spaces is a pain, but that’s what it is..
Launching/Attaching is quite breeze and so in analyzing the trace. Here is one such case where i have provided with
pid instead of process-name.
Analysis is where it starts looking up the symbols and does a lot of heavy lifting. Note it will overwrite your traces with new symbols information. In case this messes up there is no way to get back traced data (better to have a copy if you are worried about it).
ensure cmd is started with admin privileges, else the traces after analysis will be garbage
We don’t need to specify symbols path for tracing, in my case i ran the application and provided the
pid for attaching. Now the funny thing is that even if the traced process exited colection won’t stop, you have to manually
detach to stop. The comes the bit about specifying the symbol-paths and analyzing.
That’s it really, works pretty cool..