Silverlight 4 Profiling

I have a Silverlight page that displays ScrollViewer user controls in ScrollViewer (approximately 50% of the controls are displayed right away, depending on browser resolution).

When scrolling with ScrollViewer, the scrolling is sluggish and one of my 4 processor cores goes 100% (and stays there while I keep moving the scroll bar).

I wanted to profile the application in order to better understand where the time is spent following the instructions on this MSDN blog . As one of the commentators, I get an error

No call tree data.

when i open the .vsp file.

I start a profiling session with this batch file:

 call vsperfclrenv /sampleon set CORECLR_ENABLE_PROFILING=1 set CORECLR_PROFILER=%COR_PROFILER% call vsperfcmd /start:sample /output:myProfile.vsp call vsperfcmd /launch:"c:\Program Files (x86)\Internet Explorer\iexplore.exe" /timer:100000 echo Browse to http://localhost:9567/MyTestPage.aspx#/Home call vsperfcmd /shutdown Echo Before viewing, turn on the symbols server in VS2010 through: Tools-->Options-->Debugging-->Symbols-->check microsoft symbols server. Echo Open .vsp file in VS2010 

One blog commentator suggested that the problem is with the 64-bit version of vsperfcmd. While I am using the 64-bit version of Windows 7, vsperfcmd suggests that this is an x86 build:

vsperfcmd

Microsoft (R) VSPerf Team Version 10.0.40219 x86

What am I missing for the profile of my user code?

0
source share
1 answer

Did you try to run this in the admin console window - I recently noticed that I can not use Silverlight applications for profiles (code coverages) if I do not start under the administrator account, i.e. launches a console window with "run as administrator"

0
source

Source: https://habr.com/ru/post/1334520/


All Articles