Naveen's Blog

Software dev interested in .NET, windbg and anything on the way

Get GC Information in Silverlight

with 2 comments

I had earlier written a post on getting GC information on Silverlight using ETW. With that we would have to write code to parse the ETW csv file.  In this post I am going to be using Perfmonitor to do this. This tools uses the same ETW under covers, but it does all the plumbing and gives a nice report , which is much easier to read.  Here are the reports

To demonstrate this I used the bing’s world leader search page and here is the url

http://www.bing.com/visualsearch?q=World+leaders&g=world_leaders&FORM=Z9GE74#

Steps to get the GC information are

  1. Start a cmd or powershell  as admin , this required to collect ETW tracing
  2. Browse the above mentioned webpage using IE
  3. Issue the command “PerfMonitor.exe /process:4180 start” where 4180 is the internet explorer’s process id
  4. Do the necessary actions
  5. Then issue “PerfMonitor.exe stop”
  6. The command to get the report “PerfMonitor.exe GCTime”. This will generate a report and open it in the browser

Perfmonitor is like xperf for managed code. This is non-intrusive and can collect some valuable information in production. This is an xcopy tool and does not need an install.

About these ads

Written by Naveen

August 10, 2010 at 10:32 pm

Posted in ETW, Silverlight

2 Responses

Subscribe to comments with RSS.

  1. Get GC Information in Silverlight…

    Thank you for submitting this cool story – Trackback from DotNetShoutout…

    DotNetShoutout

    August 10, 2010 at 10:35 pm

  2. [...] This post was mentioned on Twitter by Richard Laksana, Sergiy Filypov. Sergiy Filypov said: Get GC Information in Silverlight http://bit.ly/axtKw5 [...]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: