background preloader

Code Quality

Facebook Twitter

Performance and Memory Profiler. DotTrace is a family of performance and memory profilers for .NET applications. Our latest release, dotTrace 5.5 Performance, helps .NET developers quickly find performance bottlenecks and optimize their applications. Read what's new in dotTrace 5.5 Performance » Performance Profiling dotTrace 5.5 Performance10-day free trial (34.5 Mb) dotTrace Performance helps detect performance bottlenecksin a variety of .NET Framework applications. Profile any .NET application: Profile the performance of applications targeting , , or .NET Compact . Memory Profiling dotTrace Memory lets you discover memory leaks and optimize memory usagein applications based on .NET Framework up to version 3.5.

Support for a variety of .NET applications: dotTrace 3.5 Memory helps you find memory leaks in applications based on .NET Framework up to version 3.5, including desktop, web applications, and Windows services. ...and 20 more world's top 100 companies are using dotTrace profilers. Detect memory leaks. Download source code - 34 KB Table of contents Improve garbage collector performance using finalize/dispose pattern Introduction Memory leaks in .NET applications have always been a programmer’s nightmare. Memory leaks is the biggest problems when it comes to production servers. Productions servers normally need to run with the least down time. Memory leaks grow slowly and after sometime they bring down the server by consuming huge chunks of memory. Please feel free to download my free 500 questions and answers eBook which covers .NET , ASP.NET, SQL Server, WCF, WPF, WWF @ Avoid task manager to detect memory leaks The first and foremost task is to confirm that there is a memory leak.

First let’s try to understand how the Task Manager memory information is misleading. So the working set memory can be bigger in amount than the actual memory used. Using private bytes performance counters to detect memory leak Three step process to investigate memory leak Source code. Customize FxCop Dictionary. Mobile PractiCEs. Code Analysis Warnings. Design Guidelines. The design guidelines for developing class libraries are for library development that extends and interacts with the .NET Framework. The goal of the .NET Framework design guidelines is to help library designers ensure that their users reap the benefits of API consistency and ease of use by providing a unified programming model that is independent of the programming language used for development. It is strongly recommended that you follow these design guidelines when developing classes and components that extend the .NET Framework. Inconsistent library design adversely affects developer productivity and discourages adoption.

These guidelines are intended to help class library designers understand the trade-offs between different solutions. Portions Copyright 2005 Microsoft Corporation. Portions Copyright Addison-Wesley Corporation. Describes guidelines for naming types and members in class libraries. Describes guidelines for designing libraries that can be extended.

C# Programming Guide. Analyzing Code Quality.