StopProfile;
The StopProfile method stops profiling and displays its results. Use the IDalDriverExt.StartProfile method to resume profiling.
Executing the example requires a form that contains the Button component with the Button1 identifier. SQL queries profiling is being executed. The example is a handler of the OnClick event for the Button1 component.
Add links to the Dal, ExtCtrls, and Forms system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MsDalDriver: IDalDriverExt;
Begin
MsDalDriver := (New DalMsSql2008Driver.Create) As IDalDriverExt;
MsDalDriver.StopProfile;
End Sub Button1OnClick;
After executing the example SQL queries profiling is stopped, profiling results are displayed in the debugger.
See also: