C# 클래스 StackExchange.Profiling.Timing

상속: IDisposable
파일 보기 프로젝트 열기: appacitive/Profiling 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetExecutedCount int
IDisposable void
Timing System

공개 메소드들

메소드 설명
AddChild ( Timing timing ) : void

Add the parameter 'timing' to this Timing's Children collection.

Used outside this assembly for custom deserialization when creating an Storage.IStorage implementation.

AddKeyValue ( string key, string value ) : void

Adds arbitrary string 'value' under 'key', allowing custom properties to be stored in this Timing step.

AddSqlTiming ( SqlTiming sqlTiming ) : void

Adds the parameter 'sqlTiming' to this Timing's SqlTimings collection.

Used outside this assembly for custom deserialization when creating an Storage.IStorage implementation.

Equals ( object obj ) : bool

Returns true if Ids match.

GetHashCode ( ) : int

Returns hashcode of Id.

RebuildParentTimings ( ) : void

Rebuilds all the parent timings on deserialization calls

Stop ( ) : void

Completes this Timing's duration and sets the MiniProfiler's Head up one level.

Timing ( StackExchange.Profiling.MiniProfiler profiler, Timing parent, string name ) : System

Creates a new Timing named 'name' in the 'profiler's session, with 'parent' as this Timing's immediate ancestor.

ToString ( ) : string

Returns this Timing's Name.

비공개 메소드들

메소드 설명
GetExecutedCount ( ExecuteType type ) : int

Returns the number of sql statements of type that were executed in this Timing.

IDisposable ( ) : void
Timing ( ) : System

메소드 상세

AddChild() 공개 메소드

Add the parameter 'timing' to this Timing's Children collection.
Used outside this assembly for custom deserialization when creating an Storage.IStorage implementation.
public AddChild ( Timing timing ) : void
timing Timing
리턴 void

AddKeyValue() 공개 메소드

Adds arbitrary string 'value' under 'key', allowing custom properties to be stored in this Timing step.
public AddKeyValue ( string key, string value ) : void
key string
value string
리턴 void

AddSqlTiming() 공개 메소드

Adds the parameter 'sqlTiming' to this Timing's SqlTimings collection.
Used outside this assembly for custom deserialization when creating an Storage.IStorage implementation.
public AddSqlTiming ( SqlTiming sqlTiming ) : void
sqlTiming SqlTiming A sql statement profiling that was executed in this Timing step.
리턴 void

Equals() 공개 메소드

Returns true if Ids match.
public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

Returns hashcode of Id.
public GetHashCode ( ) : int
리턴 int

RebuildParentTimings() 공개 메소드

Rebuilds all the parent timings on deserialization calls
public RebuildParentTimings ( ) : void
리턴 void

Stop() 공개 메소드

Completes this Timing's duration and sets the MiniProfiler's Head up one level.
public Stop ( ) : void
리턴 void

Timing() 공개 메소드

Creates a new Timing named 'name' in the 'profiler's session, with 'parent' as this Timing's immediate ancestor.
public Timing ( StackExchange.Profiling.MiniProfiler profiler, Timing parent, string name ) : System
profiler StackExchange.Profiling.MiniProfiler
parent Timing
name string
리턴 System

ToString() 공개 메소드

Returns this Timing's Name.
public ToString ( ) : string
리턴 string