Skip to main content

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
TypeName
System.Data.Common.DbCommandcommand
ServiceStack.MiniProfiler.Data.ExecuteTypetype

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
TypeName
System.Data.Common.DbCommandcommand
ServiceStack.MiniProfiler.Data.ExecuteTypetype
System.Data.Common.DbDataReaderreader

ReaderFinishedImpl(DbDataReader)

Called when 'reader' finishes its iterations and is closed.

View Source
Declaration
public void ReaderFinishedImpl(DbDataReader reader)
Parameters
TypeName
System.Data.Common.DbDataReaderreader