Table of Contents

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

ExecutionTable

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

ConcurrentDictionary<string, int>

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

Stopwatch

TimestampStart

Gets or sets time stamp represents begin of request

public DateTime TimestampStart { get; set; }

Property Value

DateTime

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

string
To top