I am looking for information about runtime of function, like "Include actual execution plan" in SqlServer, to know how much time took every function execution, there is any way? I am work in ASP.NET c# application vs 2003. Thanks.
Asked
Active
Viewed 1,065 times
1
-
4What you are looking for is called a profiler, and there is no such tool included in Visual Studio. There are third-party options, though. – erikkallen Jan 26 '14 at 10:19
-
Here's a couple of commercial profilers you should consider: http://www.jetbrains.com/profiler/ https://www.red-gate.com/products/dotnet-development/ants-performance-profiler/ – Kev Jan 26 '14 at 10:22
-
@erikkallen Higher Visual Studio SKUs do actually have profilers ( http://msdn.microsoft.com/en-us/magazine/cc337887.aspx ) – Dai Jan 26 '14 at 10:22
3 Answers
1
You can use profiler such as
See this question: Best .NET memory and performance profiler?

Community
- 1
- 1
1
You can always use the c# Stopwatch to track how long things are taking:
http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch(v=vs.110).aspx
If this is production code and you are worried about the performance, it would probably be worth while to add it's performance to your logging/diagnostics structure, so that it can be monitored in the field.

Caleb
- 1,088
- 7
- 7
0
Check with speed trace and appsight. They are pretty detailed in profiling and recording data.

sunnytyra
- 89
- 1
- 3