C# Class FoundationDB.Filters.Logging.FdbTransactionLog

Exibir arquivo Open project: BedeGaming/foundationdb-dotnet-client

Private Properties

Property Type Description
CaptureStackTrace System.Diagnostics.StackTrace
GetDuration System.TimeSpan
GetFancyChar char
GetFancyGraph string
GetFirstInterestingStackFrame System.Diagnostics.StackFrame
GetTimeOffset System.TimeSpan
GetTimestamp long
GetUserFriendlyMethodName string

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AddOperation() public method

Adds a new already completed command to the log
public AddOperation ( Command cmd, bool countAsOperation = true ) : void
cmd Command
countAsOperation bool
return void

BeginOperation() public method

Start tracking the execution of a new command
public BeginOperation ( Command cmd ) : void
cmd Command
return void

EndOperation() public method

Mark the end of the execution of a command
public EndOperation ( Command cmd, Exception error = null ) : void
cmd Command
error System.Exception
return void

FdbTransactionLog() public method

Create an empty log for a newly created transaction
public FdbTransactionLog ( FdbLoggingOptions options ) : FoundationDB.Client
options FdbLoggingOptions
return FoundationDB.Client

GetCommandsReport() public method

Generate an ASCII report with all the commands that were executed by the transaction
public GetCommandsReport ( ) : string
return string

GetTimingsReport() public method

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
return string

Start() public method

Marks the start of the transaction
public Start ( IFdbTransaction trans ) : void
trans IFdbTransaction
return void

Stop() public method

Marks the end of the transaction
public Stop ( IFdbTransaction trans ) : void
trans IFdbTransaction
return void