C# Class FoundationDB.Filters.Logging.FdbTransactionLog

Afficher le fichier Open project: BedeGaming/foundationdb-dotnet-client

Private Properties

Свойство Type Description
CaptureStackTrace System.Diagnostics.StackTrace
GetDuration System.TimeSpan
GetFancyChar char
GetFancyGraph string
GetFirstInterestingStackFrame System.Diagnostics.StackFrame
GetTimeOffset System.TimeSpan
GetTimestamp long
GetUserFriendlyMethodName string

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

BeginOperation() public méthode

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

EndOperation() public méthode

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

FdbTransactionLog() public méthode

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

GetCommandsReport() public méthode

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

GetTimingsReport() public méthode

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
Résultat string

Start() public méthode

Marks the start of the transaction
public Start ( IFdbTransaction trans ) : void
trans IFdbTransaction
Résultat void

Stop() public méthode

Marks the end of the transaction
public Stop ( IFdbTransaction trans ) : void
trans IFdbTransaction
Résultat void