C# Class StackExchange.Profiling.ProfilerExtensions

The profiler extensions.
ファイルを表示 Open project: JSkimming/MiniProfiler.WebAPI

Public Methods

Method Description
Deserialize ( string serializedProfiler ) : StackExchange.Profiling.MiniProfiler
Serialize ( this profiler ) : string

Serializes the supplied profiler to a compressed base 64 encoded string.

UpdateStartMillisecondTimingsByDelta ( this timing, decimal deltaMilliseconds ) : void

Delta is added to the existing StartMillisecondsValue Recursive method

UpdateStartMillisecondTimingsToAbsolute ( this timing, decimal newStartMilliseconds ) : void

We don't actually know the start milliseconds, but lets take it as zero being the start of the current head

Method Details

Deserialize() public static method

public static Deserialize ( string serializedProfiler ) : StackExchange.Profiling.MiniProfiler
serializedProfiler string
return StackExchange.Profiling.MiniProfiler

Serialize() public static method

Serializes the supplied profiler to a compressed base 64 encoded string.
public static Serialize ( this profiler ) : string
profiler this The profiler to serialize.
return string

UpdateStartMillisecondTimingsByDelta() public static method

Delta is added to the existing StartMillisecondsValue Recursive method
public static UpdateStartMillisecondTimingsByDelta ( this timing, decimal deltaMilliseconds ) : void
timing this The timing.
deltaMilliseconds decimal The delta Milliseconds.
return void

UpdateStartMillisecondTimingsToAbsolute() public static method

We don't actually know the start milliseconds, but lets take it as zero being the start of the current head
public static UpdateStartMillisecondTimingsToAbsolute ( this timing, decimal newStartMilliseconds ) : void
timing this the timing data
newStartMilliseconds decimal new Start Milliseconds.
return void