Vimmi Patel is running the visual studio performance profiler from command line using VSInstr tool or VSPerfASPNETCmd, I was getting the below error.
VSP2340: Environment variables were not properly set during profiling run and managed symbols may not resolve
I have found the solution posted here. It helped me.
https://social.msdn.microsoft.com/Forums/en-US/845e0743-e543-4e56-9dc9-5e10aef7cc4d/vsp2340-environment-variables-were-not-properly-set-during-profiling-run-and-managed-symbols-may?forum=vstsprofiler
Hope this helps!