The Tracer component is a rudimentary profiler for ASP pages. It acts as a stopwatch that can be started and stopped from within a script. It can be used to output debugging strings. The component can be instantiated on any page you want to profile. The following sample code illustrates the ASP Tracer component:
<%
Set trcr = Server.CreateObject("IISSample.Tracer")
trcr.Name = "Default Trace" '--- Give the tracer a name
trcr.TimerStart '--- Start profiling
%>
<!-- Perform first script processing here -->
<%
trcr.TimerSplit "Part I" '--- Note time, and continue
%>
<!-- Perform more script processing here -->
<%
trcr.Trace "Value: " & MyVal '--- Output debug string
trcr.TimerStop '--- Stop profiling
%>
Tracer output simply goes to the debug stream (using OuputDebugString), but you can easily modify the component to log to a file or whatever you choose. All output is formatted as a comma-separated list, so it is easy to import into your favorite database or spreadsheet for manipulation.