Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Profiling .NET applications

Status
Not open for further replies.

alexboly

Programmer
Oct 23, 2002
83
RO
Does anybody know how to profile a .NET application? I went through MSDN and it is not very clear, unfortunately.
I would like to see the times of execution for some functions.
 
The Enterprise version of Visual Studio comes with a profiling tool.

Otherwise, you could use the Debug class:
Code:
Debug.Listeners.Add(new TextWriteTraceListener("Debug.txt"));


Debug.WriteLine("Start of function " + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss.fffff");
//Your code goes here
Debug.WriteLine("End of function " + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss.fffff");


Debug.Flush();
Debug.Close();
Chip H.
 
Well, I have Visual Studio.NET Enterprise Architect and I couldn't find any profiling tool. Can you tell me how it's called, and how do you use it?
I was aware about the debug and trace facilities. I was interested in something more automated, like it was in Visual Studio 6.0 Professional and Enterprise.
I don't need it for now, but I sure would like to know about it!
Thanks.
 
Search the help for Visual Studio Analyzer.

It's a profiling tool for distributed applications. For local apps, you can use the Microsoft Source Profiler (don't know where/how to get it, sorry). But VSA is bundled in with VS.NET, but it may not be installed by default.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top