SqlProfiler
Contains helper code to time sql statements.
Assembly: ServiceStack.NetFramework.dll
View Source
Declaration
public class SqlProfiler
Properties
Profiler
The profiling session this SqlProfiler is part of.
View Source
Declaration
public MiniProfiler Profiler { get; }
Methods
ExecuteStartImpl(DbCommand, ExecuteType)
Tracks when 'command' is started.
View Source
Declaration
public void ExecuteStartImpl(DbCommand command, ExecuteType type)
Parameters
Type | Name |
---|---|
System.Data.Common.DbCommand | command |
ServiceStack.MiniProfiler.Data.ExecuteType | type |
GetInProgressCommands()
Returns all currently open commands on this connection
View Source
Declaration
public SqlTiming[] GetInProgressCommands()
Returns
ServiceStack.MiniProfiler.SqlTiming[]
ExecuteFinishImpl(DbCommand, ExecuteType, DbDataReader)
Finishes profiling for 'command', recording durations.
View Source
Declaration
public void ExecuteFinishImpl(DbCommand command, ExecuteType type, DbDataReader reader = null)
Parameters
Type | Name |
---|---|
System.Data.Common.DbCommand | command |
ServiceStack.MiniProfiler.Data.ExecuteType | type |
System.Data.Common.DbDataReader | reader |
ReaderFinishedImpl(DbDataReader)
Called when 'reader' finishes its iterations and is closed.
View Source
Declaration
public void ReaderFinishedImpl(DbDataReader reader)
Parameters
Type | Name |
---|---|
System.Data.Common.DbDataReader | reader |