Measuring Performance Programmatically

This chapter starts by discussing the characteristics of the .NET Compact Framework runtime engine and notes how that may affect your application performance. In particular, you know that high memory usage negatively affects your application and that more code usually means slower code. Sometimes you may simply need to measure how long a particular method takes and, for example, optimize performance at the micro level of a particular algorithm.

Unfortunately, unlike the full .NET Framework, the .NET Compact Framework includes no profiling tools. This means that you cannot get a tool to report how long each method took to execute, how many times it was called, how long each code statement took, and so forth—all ...

Get Microsoft® Mobile Development Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.