This documentation is archived and is not being maintained.

Performance and Diagnostics

The .NET Compact Framework provides performance counters that can be activated by a registry setting to generate a log file of performance statistics.

Note that you can also log the interop marshalling of native and managed types. For information about generating a log file, see the section "Interop Logging" in Marshaling Overview.

You can also release cached resources by using the MobileDevice class which provides the Hibernate event hander method, which provides an opportunity to release cached resources.

In This Section

Performance Counters in the .NET Compact Framework

Describes the performance counters in the .NET Compact Framework that can generate performance statistics.

How to: Generate Performance Statistics

Shows to set a registry key to generate statistics with the performance counters in the .NET Compact Framework.

How to: Monitor Performance at Run Time

Describes how to set up and run Remote Performance Monitor, which monitors application performance while the application is running.

Log File Information

Describes the content of log files for native code interoperability and loading programs.

How to: Create Log Files

Describes how to generate log files for native code interoperability and loading programs.

How to: Improve Performance

Contains techniques to improve performance and same memory in device applications.

How to: Use the High-Resolution Timer

Shows how to use the high resolution timer for time-sensitive applications and to help test code execution speed.

How to: Generate a Garbage Collector Heap Dump

Shows how to generate a garbage collector heap dump to assist in finding memory leaks.

Heap Dump File Information

Describes the content of heap dump files.

Show: