How to view a Visual Studio VSP file created on another computer?

I ran Visual Studio Profiler on my development machine and created a VSP file. On my development machine, the Function Details view allows me to see lines of code that take a long time to run. My question is: how to send this file to someone else without losing functionality?

When I copy only a VSP file to another computer and try to open it in Visual Studio, I get some functions, but I don’t see any code in the “Function Details” view and instead see “Source Code Not Available. You May Not Have appropriate symbol paths or there was an error loading characters. "

I also tried to copy the source and PDB files, but the same results. In the output window, it seems that Visual Studio is trying to find the PDB files in the path that existed on my development machine, but since it works on another computer, it cannot find them.

+6
source share
1 answer

You have two options (see MSDN for details):

  • You can open a report (VSP) once on your development machine because it should automatically serialize the characters for you. You can then copy the modified VSP file to your development machine. OR:
  • You can use the vsperfreport.exe command line vsperfreport.exe to package characters on your development machine.

This should solve any problems with missing PDB files, but to view the source code you will need to have the source files in the same path on another computer as on your development machine.

+3
source

Source: https://habr.com/ru/post/887667/


All Articles