views:

12

answers:

1

I have a problem with building performance profile for my .net web app

See my steps below:

  1. Setup global variables

VSPerfCLREnv /traceon
VSPerfCLREnv /globaltranceon

  1. Instrument assemblies

vsinstr "path to my assembly"

  1. Restart iis

iisreset

  1. Start profiling

VSPerfCmd /start:trace /output:traceoutput.vsp

  1. Open app in browser, perform some actions on it

  2. 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.

A: 

I've resolved this issue. I just forgot to specify the user. I have had to write

VSPerfCmd /start:trace /output:traceoutput.vsp /user:ASPNET
Egor4eg