StartProfile;
The StartProfile method starts profiling. Use the IDalDriverExt.StopProfile method to stop profiling.
Executing the example requires a form that contains the Button component with the Button1 identifier. 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.StartProfile;
End Sub Button1OnClick;
SQL queries profiling is started after executing the example.
See also: