Class ExecutionTable
- Namespace
- Dynamicweb.Diagnostics
- Assembly
- Dynamicweb.Diagnostics.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.
Fields
DbCount
The database count
[Obsolete]
public ConcurrentDictionary<string, int> DbCount
Field Value
Start
The start time of this object
[Obsolete]
public DateTime Start
Field Value
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
true
if [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
true
if [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
true
if [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
true
if debug; otherwise,false
.
ExecutionTableMapper
Gets or sets the execution table mapper.
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
true
if [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
eventName
string- Name of the event.
AddDbStat(string)
Adds a line to the dbstat output.
public void AddDbStat(string message)
Parameters
message
string- The message.
CountDbCall(string)
Adds or increses given data base query counter to DbCounter collection
public void CountDbCall(string dbQuery)
Parameters
dbQuery
string- The data base query
GetDbStat()
Gets the dbstat output.
public string GetDbStat()
Returns
- string
- System.String.
GetExecutionTable()
Gets the execution table.
public string GetExecutionTable()
Returns
GetExecutionTable(bool)
Gets the execution table.
[Obsolete("Use GetExecutionTable() instead.", true)]
public string GetExecutionTable(bool fromRequestStart)
Parameters
fromRequestStart
bool- if set to
true
timer from when the request started, otherwise from instance of Exceution was created.
Returns
Reset()
Resets this instance.
[Obsolete]
public static void Reset()