Class ExecutionTable
- Namespace
- Dynamicweb.Diagnostics
- Assembly
- Dynamicweb.Core.dll
Represents an execution table. Add events to it and get a html table with time taken on the different events with the getExecutionTable.
public sealed class ExecutionTable
- Inheritance
-
ExecutionTable
- Inherited Members
Remarks
Used internally by pageview object.
Properties
ConnectionCounter
Counter for number of database connections during the request.
public int ConnectionCounter { get; set; }
Property Value
- int
The connection counter.
Current
Gets execution table for current thread.
public static ExecutionTable Current { get; }
Property Value
DbCountEnabled
Gets or sets a value indicating whether database call count is recorded.
public bool DbCountEnabled { get; set; }
Property Value
- bool
trueif [database count]; otherwise,false.
DbCounter
Gets or sets count of data base calls per query
public ConcurrentDictionary<string, int> DbCounter { get; set; }
Property Value
DbStat
Gets or sets a value indicating whether database debug information should be recorded.
public bool DbStat { get; set; }
Property Value
- bool
trueif [database stat]; otherwise,false.
DbStatClean
Gets or sets a value indicating whether to collection debug information for a limited dbstat.
public bool DbStatClean { get; set; }
Property Value
- bool
trueif [database stat clean]; otherwise,false.
Debug
Gets or sets a value indicating whether this ExecutionTable should record debug information.
public bool Debug { get; set; }
Property Value
- bool
trueif debug; otherwise,false.
ExecutionTableMapper
Gets or sets the execution table mapper.
[NotNull]
public static IExecutionTableMapper? ExecutionTableMapper { get; set; }
Property Value
- IExecutionTableMapper
The execution table mapper.
IgnoreDbStatCounter
Gets or sets a value indicating whether to skip the connection counter increment.
public bool IgnoreDbStatCounter { get; set; }
Property Value
- bool
trueif [ignore database stat counter]; otherwise,false.
Stopwatch
public Stopwatch Stopwatch { get; set; }
Property Value
TimestampStart
Gets or sets time stamp represents begin of request
public DateTime TimestampStart { get; set; }
Property Value
Methods
Add(string)
Adds the specified event name to the executing table.
public void Add(string eventName)
Parameters
eventNamestringName of the event.
AddDbStat(string)
Adds a line to the dbstat output.
public void AddDbStat(string message)
Parameters
messagestringThe message.
CountDbCall(string)
Adds or increses given data base query counter to DbCounter collection
public void CountDbCall(string dbQuery)
Parameters
dbQuerystringThe data base query
GetDbStat()
Gets the dbstat output.
public string GetDbStat()
Returns
- string
System.String.
GetExecutionTable()
Gets the execution table.
public string GetExecutionTable()