Table of Contents

Struct PageCacheBackpressureEventData

Namespace
Typhon.Profiler
Assembly
Typhon.Profiler.dll

Decoded form of a PageCacheBackpressure event.

public readonly struct PageCacheBackpressureEventData
Inherited Members

Constructors

PageCacheBackpressureEventData(byte, long, long, ulong, ulong, ulong, ulong, int, int, int, ushort)

Construct a decoded page-cache backpressure event.

public PageCacheBackpressureEventData(byte threadSlot, long startTimestamp, long durationTicks, ulong spanId, ulong parentSpanId, ulong traceIdHi, ulong traceIdLo, int retryCount, int dirtyCount, int epochCount, ushort sourceLocationId = 0)

Parameters

threadSlot byte

Typhon thread slot.

startTimestamp long

Span start, in Stopwatch ticks.

durationTicks long

Stall duration, in Stopwatch ticks.

spanId ulong

Span id.

parentSpanId ulong

Parent span id, or 0.

traceIdHi ulong

High 64 bits of the trace id, or 0.

traceIdLo ulong

Low 64 bits of the trace id, or 0.

retryCount int

Allocation retries before a page freed up.

dirtyCount int

Dirty page count at stall time.

epochCount int

Epoch-protected page count at stall time.

sourceLocationId ushort

Source-location id, or 0 when no source attribution was carried.

Properties

DirtyCount

Count of dirty pages in the cache at the time of the stall.

public int DirtyCount { get; }

Property Value

int

DurationTicks

Span duration (length of the stall), in Stopwatch ticks.

public long DurationTicks { get; }

Property Value

long

EpochCount

Count of epoch-protected pages in the cache at the time of the stall.

public int EpochCount { get; }

Property Value

int

HasSourceLocation

True when the record carried a non-zero SourceLocationId.

public bool HasSourceLocation { get; }

Property Value

bool

HasTraceContext

True when a W3C trace context (TraceIdHi/TraceIdLo) was present on the wire.

public bool HasTraceContext { get; }

Property Value

bool

ParentSpanId

Span id of the parent span, or 0 when none.

public ulong ParentSpanId { get; }

Property Value

ulong

RetryCount

Number of allocation retries the writer spun through before a page freed up.

public int RetryCount { get; }

Property Value

int

SourceLocationId

Source-location id assigned by SourceLocationGenerator (#302). Zero when the wire record didn't carry source attribution.

public ushort SourceLocationId { get; }

Property Value

ushort

SpanId

Span id of this event.

public ulong SpanId { get; }

Property Value

ulong

StartTimestamp

Span start timestamp, in Stopwatch ticks.

public long StartTimestamp { get; }

Property Value

long

ThreadSlot

Typhon thread slot the backpressure stall was observed on.

public byte ThreadSlot { get; }

Property Value

byte

TraceIdHi

High 64 bits of the W3C trace id. 0 when no trace context was carried — see HasTraceContext.

public ulong TraceIdHi { get; }

Property Value

ulong

TraceIdLo

Low 64 bits of the W3C trace id. 0 when no trace context was carried — see HasTraceContext.

public ulong TraceIdLo { get; }

Property Value

ulong