Show / Hide Table of Contents

Class ResourceTracerContext

Inheritance
object
ResourceTracerContext
Implements
ISoTimeRecorderContext
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.Diagnostics
Assembly: SoCore.dll
Syntax
public class ResourceTracerContext : ISoTimeRecorderContext, IDisposable

Fields

CpuTimer

Declaration
public IExecutionStopwatch CpuTimer
Field Value
Type Description
IExecutionStopwatch

Timer

Declaration
public Stopwatch Timer
Field Value
Type Description
Stopwatch

Properties

Category

Declaration
public string Category { get; }
Property Value
Type Description
string

IsRunning

Declaration
public bool IsRunning { get; }
Property Value
Type Description
bool

Parent

Declaration
public ResourceTracer Parent { get; }
Property Value
Type Description
ResourceTracer

RecorderType

Declaration
public SoTimerType RecorderType { get; }
Property Value
Type Description
SoTimerType

Methods

Dispose()

Declaration
public void Dispose()

End()

Stop the timer and obtain the time since the start of the timing.

Declaration
public void End()

Increment()

Increment the build in counter

Declaration
public void Increment()

Lap(Func<string>)

Perform a lap operation and see the time since the previous lap.

Declaration
public void Lap(Func<string> description)
Parameters
Type Name Description
Func<string> description

Information about the lap.

Split(Func<string>)

Perform a split operation to see how long time was spent since the the timer was started.

Declaration
public void Split(Func<string> description)
Parameters
Type Name Description
Func<string> description

Information about the split time.

Implements

ISoTimeRecorderContext
IDisposable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top