I just wanted to add this bit of info for newbies who might benefit from it.
If you'd like to be able to watch your application make calls to the database, etc. in real time and see where performance bottlenecks are occurring, set up your app to use the built-in IdeaBlade TraceViewer.
Add
the TraceViewer to Your
Program
It's
incredibly easy to do.
- In
your start-up project,
add a reference to IdeaBlade.UI.WinForms.PlatformControls.
- Open
your start-up class (typically
Program.cs or Program.vb).
- Find
the static Main method (Shared Main in VB).
- Make
some room just below
any calls to the Application class (e.g., Application.EnableVisualStyles()).
- Add
the following code to
show the TraceViewer.
// C#:
IdeaBlade.UI.WinForms.PlatformControls.TraceViewerForm traceForm;
traceForm = new IdeaBlade.UI.WinForms.PlatformControls.TraceViewerForm();
traceForm.Show();
'
VB.NET:
Dim traceForm As _
New IdeaBlade.UI.WinForms.PlatformControls.TraceViewerForm()
traceForm.Show()
That
is all there is to it.
Next time you launch
your application, the
TraceViewer will appear,
followed shortly thereafter
by your application's
main window. You can
toggle between the two
windows at will.
|