Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | Videos | Photos | Downloads | Blogs | E-Books | Interviews | Jobs | Beginners | Training
 | Consulting  
Submit an Article Submit a Blog 
 Login Close
User Id:
Password:
 
Forgot Password
Forgot Username
Why Register
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
 Resources  
Close
 Our Network  
Close
Search :       Advanced Search »
Home » Tips » Is your code a resource pig?
Is your code a resource pig?
Mahesh Chand  Apr 07, 2007

Are you sure your code is doing what it supposed to without taking too much time and consuming too much resources? Check it out here.

« Previous Tip | Next Tip »
    Printable Version  

Due to hectic deadlines and work load, there are times when we forget to go back, revisit our code, and refactor it. So how do you make sure the code is doing what it supposed to without taking too much time or consuming too much resources?

Recently, I got a chance to work on a Web application, that was very slow in performance specially when multiple users were accessing the application simultaneously. It was a big challange for me to find out what part of code is taking too much time since I never worked on that project.

First method for me was to revisit the code line by line, understand and evaluate it, debug line-by-line, and refacor it. As you may guess, this process would have taken me days and weeks.

The simplest method I found was ANTS Profiler. I downloaded a FREE trial but fully-functional version of ANTS Profiler, installed it and profiled my application using it. It took me total 30 minutes to do all this. After 30 mins, I got the results exactly I was looking for. ANTS Profiler told me what lines of code were taking how much time and sort listed the slowest methods and lines of code for me.

I would highly recommend you to download a trial version of ANTS Profiler and give it a try. Guess what? Tool costs less than $300. If it saves you couple of hrs work, it's worth giving it a try. Download it here.

 


         Printable Version
« Previous Tip | Next Tip »
 About the author
Mahesh Chand
Mahesh is a software developer with over 13 years of experience building systems for Financial and Banking, Engineering & Architectural, Imaging, Construction, Biological & Pharmaceuticals, Healthcare and Education industries. His expertise is Windows Forms, ASP.NET, Silverlight, WPF, WCF, Visual Studio 2010, SQL Server, and Oracle. If you are looking for a Windows Forms, ASP.NET, WPF, Silverlight, C#, VB.NET, Oracle, and SQL Server Consultant in Philadelphia area or remote location, drop me a line at MAHESH [AT] C-SHARPCORNER [DOT] COM.
Support Us
Tell your friends about us
Is this article is a Bad Submission report us here
Submit articles, tutorials, and tips
Help by answering questions on our discussion forums
Help us correct errors and broken links
Looking for a job? Post your resume here
Looking for developers? Post your job here


 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Site Map  |  Suggest an Idea  |  Media Kit
Current Version: 5.2009.6.2
 © 1999 - 2009  Mindcracker LLC. All Rights Reserved