Category Archives: .net

Performance profiling SharePoint sites using Redgate ANTS Profiler

I used the 5.0 evaluation copy of  RedGate ANTS profiler tool on a standard Windows Sever 2003 R2 / SharePoint 2007 virtual machine.

To get profiling working with my SharePoint code base I made the following adjustments:

  • Allow site collection administrator to “Act as part of the operating system” and “Impersonate a client after authentication” and to Administrators group – All this was already the case.
  • Run “ANTS Performance Profiler 5 Service” and “ANTS Memory Profile 5 Service” under the site collection administrator account
  • Copied my applications dll’s and pdbs from GAC to web application bin folder, as I was previously using the GAC.

A complete guide to setting up ANTS profiler with SharePoint

The ANTS profiler is extremely easy to use and it quickly helped me narrow down some issues using XlstCompiledTransform objects.

Tagged ,

Roy Osherove is giving an hands-on TDD Masterclass in the UK, September 21-25

Roy Osherove is giving an hands-on TDD Masterclass in the UK, September 21-25. Roy is author of “The Art of Unit Testing” (http://www.artofunittesting.com/), a leading tdd & unit testing book; he maintains a blog at http://iserializable.com (which amoung other things has critiqued tests written by Microsoft for asp.net MVC – check out the testreviews category) and has recently been on the Scott Hanselman podcast (http://bit.ly/psgYO) where he educated Scott on best practices in Unit Testing techniques. For a further insight into Roy’s style, be sure to also check out Roy’s talk at the recent Norwegian Developer’s Conference (http://bit.ly/NuJVa).

Full Details here: http://bbits.co.uk/tddmasterclass

bbits are holding a raffle for a free ticket for the event. To be eligible to win the ticket (worth £2395!) you MUST paste this text, including all links, into your blog and email Ian@bbits.co.uk with the url to the blog entry.  The draw will be made on September 1st and the winner informed by email and on bbits.co.uk/blog

Tagged

Strategy Pattern

Over the next couple of months I hope to cover some of the common software design patterns. I’m going to cover them in the order they are written about in the book Head First Design Patterns.

Motivation

The desire to model varying implementations of the same core behaviour and to decouple this behaviour from the consuming client.

Solution

The Strategy pattern defines a family of behaviours or algorithms. Each type of algorithm is encapsulated in a separate entity. The client can consume different types of algorithm interchangeably.

Strategy

Resources

Tagged