C# Класс FoundationDB.Filters.Logging.FdbTransactionLog

Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CaptureStackTrace System.Diagnostics.StackTrace
GetDuration System.TimeSpan
GetFancyChar char
GetFancyGraph string
GetFirstInterestingStackFrame System.Diagnostics.StackFrame
GetTimeOffset System.TimeSpan
GetTimestamp long
GetUserFriendlyMethodName string

Открытые методы

Метод Описание
AddOperation ( Command cmd, bool countAsOperation = true ) : void

Adds a new already completed command to the log

BeginOperation ( Command cmd ) : void

Start tracking the execution of a new command

EndOperation ( Command cmd, Exception error = null ) : void

Mark the end of the execution of a command

FdbTransactionLog ( FdbLoggingOptions options ) : FoundationDB.Client

Create an empty log for a newly created transaction

GetCommandsReport ( ) : string

Generate an ASCII report with all the commands that were executed by the transaction

GetTimingsReport ( bool showCommands = false, KeyResolver keyResolver = null ) : string

Generate a full ASCII report with the detailed timeline of all the commands that were executed by the transaction

Start ( IFdbTransaction trans ) : void

Marks the start of the transaction

Stop ( IFdbTransaction trans ) : void

Marks the end of the transaction

Приватные методы

Метод Описание
CaptureStackTrace ( int numStackFramesToSkip ) : StackTrace
GetDuration ( long elapsed ) : System.TimeSpan
GetFancyChar ( int pos, int count, double start, double end, bool skip ) : char
GetFancyGraph ( int width, long offset, long duration, long total, int skip ) : string
GetFirstInterestingStackFrame ( StackTrace st ) : StackFrame
GetTimeOffset ( ) : System.TimeSpan
GetTimestamp ( ) : long
GetUserFriendlyMethodName ( [ m ) : string

Описание методов

AddOperation() публичный Метод

Adds a new already completed command to the log
public AddOperation ( Command cmd, bool countAsOperation = true ) : void
cmd Command
countAsOperation bool
Результат void

BeginOperation() публичный Метод

Start tracking the execution of a new command
public BeginOperation ( Command cmd ) : void
cmd Command
Результат void

EndOperation() публичный Метод

Mark the end of the execution of a command
public EndOperation ( Command cmd, Exception error = null ) : void
cmd Command
error System.Exception
Результат void

FdbTransactionLog() публичный Метод

Create an empty log for a newly created transaction
public FdbTransactionLog ( FdbLoggingOptions options ) : FoundationDB.Client
options FdbLoggingOptions
Результат FoundationDB.Client

GetCommandsReport() публичный Метод

Generate an ASCII report with all the commands that were executed by the transaction
public GetCommandsReport ( ) : string
Результат string

GetTimingsReport() публичный Метод

Generate a full ASCII report with the detailed timeline of all the commands that were executed by the transaction
public GetTimingsReport ( bool showCommands = false, KeyResolver keyResolver = null ) : string
showCommands bool
keyResolver KeyResolver
Результат string

Start() публичный Метод

Marks the start of the transaction
public Start ( IFdbTransaction trans ) : void
trans IFdbTransaction
Результат void

Stop() публичный Метод

Marks the end of the transaction
public Stop ( IFdbTransaction trans ) : void
trans IFdbTransaction
Результат void