Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know which instruction taking the longest time to finish ? (to increase my program performance)

Tags:

c#

I need to know how can I get every instruction's duration so I can maintain the code to increase the performance of my program .

like image 456
Dabbas Avatar asked Sep 14 '09 12:09

Dabbas


4 Answers

Use a profiler. If you have Visual Studio Team System, there's one included. Otherwise take a look at ANTS or dotTrace.

like image 136
Brian Rasmussen Avatar answered Nov 15 '22 04:11

Brian Rasmussen


what you're looking for is a profiler I believe :)

see: Profiler and List of Performance Analysis Tools

like image 27
mezoid Avatar answered Nov 15 '22 04:11

mezoid


You want an application profiler for that, it shows exactly what code takes how long.

like image 29
Jan Jongboom Avatar answered Nov 15 '22 05:11

Jan Jongboom


You need to use a profiler to accomplish this. It exists several profilers, some are free.

My preference goes to Red Gate Ants.

like image 31
Francis B. Avatar answered Nov 15 '22 06:11

Francis B.