C# 클래스 FoundationDB.Filters.Logging.FdbTransactionLog

파일 보기 프로젝트 열기: BedeGaming/foundationdb-dotnet-client

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