Debug Class ???

  • Thread starter Thread starter tiger79
  • Start date Start date
T

tiger79

Hello,
I'd like to be able to get some info about the performance of an application
I wrote. I have an application which sends an sql query to a database,
places the results in a datatable, sends this datatable to another form
which then writes a part of the datatable in a treeview. Now I'd like to
know how much time evry operation takes and place this info or on screen or
in a log file...
I've been looking around and saw there is a Debug class, only I cant seem to
fully comprehend if this class is suitable form what I want to do, and if so
which members I should be using ?
Thanx...
 
Hi,

Performance can be messured in several ways.
To measure the time it takes for the SQL Query to execute, use the SQL Profiler.

From your post it seems you want to measure the time its taking to fire the application till it completes processing?
There are several 3rd Party Profilers available from AQTime, Rational which help you measure this without any special code. If you don't want to use these tools you can use the System.Threading.Timer class to print the start time before you invoke the method and the end times after the invocation. The difference between the start and the end time will give you an idea of the time your application is taking for execution.
 
Back
Top