I am trying to instrument our application looking for performance optimizations, but I cannot manage to get any data out of it. I am mainly interested in function running times and how many times where they were called.
Can you point to the flaw in my process please?
Here is what I do:
1. VSInstr MyAssembly.dll
This creates the instumented dll (like twice the size) and backs up the original. I get a warning about strong-named things so step 2
2. sn -Ra MyAssembly.dll TheKeyFile.snk
Says resigning is successfull
3. VsPerfCLREnv /traceon
Setting up environment variables
4. Running the program. I go right before the step I want to investigate.
5. VsPerfCmd /start:trace /output:../Reports/Report.vsp
Starting the trace
6. Clicking the button to do the process (app creation) and waiting to finish
7. VSPerfCmd /shutdown
Stop tracing.
8. VSPerfCLREnv /off
Reset environment to normal
At the end of all this I check the Report.vsp file. It is a 148KB file which when opened in VS2017 throws these two error popups and fails to open anything:
- File contains no data buffers
- Failed to analyse report