The Huagati.LinqToSQL.Profiler namespace contains the runtime functionality that is used by applications to generate Linq-to-SQL Profiler logs.

The entry point for profiling are the DataContext.BeginProfiling method overloads that is used for initializing profiling with a variety of alternative profiling and filter scenarios. See the BeginProfiling()()() methods in the ProfilingExtensions class for usage examples.

Also see the Huagati.LinqToSQL.Profiler.Filters namespace for details on filter implementations.

Classes

  ClassDescription
LogErrorEventArgs
Event arguments for the LogError event - raised if writing to the profiler log fails.
ProfilingExtensions
The ProfilingExtensions class contain DataContext extension methods that is used to initialize and to end Linq-to-SQL profiler query traces.
QueryContext
Query context identifying when/where etc for a Linq-to-SQL profiler log entry
QueryInformation
The QueryInformation class correspond to a Linq-to-SQL Profiler log entry. It contain information about individual query executions such as the generated SQL Query, SQL Server I/O data and timings, execution context (machine, user, date/time etc), managed call-stack, and (optionally) also SQL Server Execution plans.
QueryProfiler
Query profiler session object. Do not create directly, instead use the DataContext.BeginProfiling methods to initiate profiling.
TableRead
TableRead instances contain I/O statistics for individual tables involved/read/written during the execution of a query.

Delegates

  DelegateDescription
QueryProfiler..::.AfterSerializingDelegate
Delegate for the AfterSerializing event that is fired after a profiler log entry is serialized (or queued for serialization in case of asynchronous log writes).
QueryProfiler..::.BeforeSerializingDelegate
Delegate for the BeforeSerializing event that is fired before a profiler log entry is serialized.
QueryProfiler..::.FilteredOutDelegate
Delegate for the FilteredOut event that is fired if a profiler log entry is excluded from the log by a filter.

Enumerations

  EnumerationDescription
ExecutionPlanMode
Execution plan mode for a Linq-to-SQL Profiler session. None = no execution plan, Estimated = SQL Server's estimated execution plan will be extracted, Actual = the actual SQL Server execution plan will be extracted.