3

I would like to profile certain actions in my application in a production environment.

I have previously used Stopwatch in .NET It does not seem to exist in Silverlight (despite being in the documentation).

Can anyone suggest some alternatives? Is there anything better than DateTime.UtcNow?

I have used Yourkit and use ANTs in development, but I would like to gather information about performance of deployed software. I do not have access to the kind of data the users have, but can gather some logging.

Dave Hillier
  • 18,105
  • 9
  • 43
  • 87

4 Answers4

1

Is this post any use at all?

It sounds like you want to deploy profiling IN your application so you can see how it performs on the user's PC?

Chris Shepherd
  • 1,436
  • 1
  • 11
  • 17
0

Firstly you could have a look at this answer. Standard timers (eg looking at the value of DateTime.Now) are only going to give you rough resolution, which seems to be around 16ms at best.

Otherwise you can grab a performance profiling tool, there are several now which work out of the box with Silverlight, are easy enough to use and don't really take that long to get started with, with free evaluations. Two such tools JetBrains dotTrace and RedGate ANTS

Community
  • 1
  • 1
Nicholas W
  • 2,231
  • 1
  • 14
  • 15
-1

Have you looked at this question: How to profile a silverlight application?

Are you looking for something other than this?

Community
  • 1
  • 1
Mrchief
  • 75,126
  • 20
  • 142
  • 189
-1

Telerik also has a pretty fantastic product for profiling named : JustTrace

JustTrace enables the profiling of local applications, running applications, Silverlight applications and local ASP .NET web site.

BentOnCoding
  • 27,307
  • 14
  • 64
  • 92