I have a problem with building performance profile for my .net web app
See my steps below:
- Setup global variables
VSPerfCLREnv /traceon
VSPerfCLREnv /globaltranceon
- Instrument assemblies
vsinstr "path to my assembly"
- Restart iis
iisreset
- Start profiling
VSPerfCmd /start:trace /output:traceoutput.vsp
Open app in browser, perform some actions on it
Stop profiling
VSPerfCmd /shutdown
It creates the file traceoutput.vsp, but when I try to open it in visual studio, it whows "Error Error VSP1734 : File contains no data: C:\Program Files\Microsoft Visual Studio 9.0\Team Tools\Performance Tools\traceoutput.vsp" message.
I was successfull in console application profiling. So, I have this problem only for assemblies in web app.