C# Класс StackExchange.Profiling.Timing

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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