Tag: Debugging
All the articles with the tag "Debugging".
-
Code performance analysis in Visual Studio 2008
Visual Studio developer, did you know you have a great performance analysis (profiling) tool at your fingertips? In Visual Studio 2008 this profiling tool has been placed in a separate menu item to increase visibility and usage. Allow me to show what this tool can do for you in this walktrough. Before we can get started, we need a (simple) application with a “smell”. Create a new Windows application, drag a TextBox on the surface, and add the following code: [code:c#] private void Form1_Load(object sender, EventArgs e) { string s = ""; for (int i = 0; i < 1500; i++) { s = s + " test"; } textBox1.Text = s; } [/code]