locked
steps to profile Silverlight in instrumentation mode RRS feed

  • Question

  • Hello,

    I am trying to profile my Silverlight project using instrumentation mode, but could not get it work. Have posted the question on Silverlight site and was rerecommented to ask here.

    Simply to say, here was I have tried:

    From Visual Studio:

         Analyze->Lanuch Performance Wizard-> Instrumentation->A dynamic-link library (.DLL file)->Provide the path of one dll on the Release directory of my Silverlight project, path of iexplore.exe as the Exceutable path, the TestPage.html on the Release directory as the Command-line arguments, and path of Release as the Working Directory->check Launch profiling after the wizard finishes.

        It seems profiling but I got "File contains no data buffers" and "Analysis failed".

     

    From command line:

    > vsperfclrenv /traceon
    > vsinstr C:\....\Bin\Release\MyProj.dll
    > vsperfcmd /start:trace /output:some.vsp
    > C:\Program Files\...\iexplore.exe C:\.....\Bin\Release\TestPage.html
    > (interact with my Silverlight application)
    > vsperfcmd /shutdown
    >vsperfclrenv /off

    Then I got the same messages "File contains no data buffers" and "Analysis failed".

    To my notice, the size of the generated vsp file was always 148k.


    Is instrumentation profiling supported on Silverlight project now? If yes, what are the steps to instrument a Silverlight project, either from Visual Studio UI or command line?  

    Thanks a lot!

    Thursday, May 12, 2011 3:46 PM

Answers

  • Unfortunately, we don't support instrumentation profiling on Silverlight due to issues with partial trust security.

    We only support sampling profiling for Silverlight (version 4 and above) with Visual Studio 2010 and above.

    Thanks.

     


    Andrew Pechersky, VS Diagnostics Team. The posting is provided "AS IS".
    Monday, May 16, 2011 6:35 PM

All replies

  • Unfortunately, we don't support instrumentation profiling on Silverlight due to issues with partial trust security.

    We only support sampling profiling for Silverlight (version 4 and above) with Visual Studio 2010 and above.

    Thanks.

     


    Andrew Pechersky, VS Diagnostics Team. The posting is provided "AS IS".
    Monday, May 16, 2011 6:35 PM
  • Thanks Andrew! You saved my time and effort on it. Have to wait then.

     

    Helen 

    Monday, May 16, 2011 7:27 PM