Table of Contents

Struct TensorRtAllocatorCallbackOwnerSnapshot

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Reports a copied, pointer-free lifecycle snapshot from TensorRtAllocatorCallbackOwner. 表示从 TensorRtAllocatorCallbackOwner 复制出的、无 pointer 的生命周期快照。

public readonly struct TensorRtAllocatorCallbackOwnerSnapshot
Inherited Members

Remarks

The snapshot exposes managed keep-alive, in-flight, exception-to-status, and release-hook diagnostics only. It does not expose a native callback owner pointer, device pointer, allocator-owned pointer, or borrowed TensorRT object. 该快照只暴露托管 keep-alive、in-flight、exception-to-status 和 release hook 诊断;不会暴露 native callback owner pointer、device pointer、allocator-owned pointer 或 TensorRT borrowed object。

Properties

ActivePrototypeCallCount

Gets the copied active prototype call count. 获取复制出的 active prototype 调用数量。

public int ActivePrototypeCallCount { get; }

Property Value

int

BorrowedPointerEscaped

Gets whether a borrowed pointer escaped through this public API. 获取 borrowed pointer 是否通过该 public API 逃逸。

public bool BorrowedPointerEscaped { get; }

Property Value

bool

CallbackKind

Gets the callback kind represented by this diagnostic snapshot. 获取该诊断快照代表的 callback 类型。

public string CallbackKind { get; }

Property Value

string

CallbackStatePinned

Gets whether managed callback state remains pinned. 获取托管 callback state 是否仍被 pin 住。

public bool CallbackStatePinned { get; }

Property Value

bool

DelegatePinned

Gets whether the managed delegate remains pinned. 获取托管 delegate 是否仍被 pin 住。

public bool DelegatePinned { get; }

Property Value

bool

DevicePointerExposed

Gets whether the public API exposes a device pointer. 获取 public API 是否暴露 device pointer。

public bool DevicePointerExposed { get; }

Property Value

bool

DevicePointerProduced

Gets whether the diagnostic produced a device pointer. 获取该诊断是否产生 device pointer。

public bool DevicePointerProduced { get; }

Property Value

bool

DisposeReleaseReady

Gets whether dispose released keep-alive handles after callbacks drained. 获取 Dispose 是否在 callback drain 后释放 keep-alive 句柄。

public bool DisposeReleaseReady { get; }

Property Value

bool

DisposeRequested

Gets whether dispose has been requested. 获取是否已请求释放。

public bool DisposeRequested { get; }

Property Value

bool

EvidenceKind

Gets the marker used by readiness to identify this snapshot. 获取 readiness 用于识别该快照的 marker。

public string EvidenceKind { get; }

Property Value

string

FailureCount

Gets the copied failure count. 获取复制出的失败次数。

public long FailureCount { get; }

Property Value

long

InFlightCallbackCount

Gets the copied in-flight callback count. 获取复制出的 in-flight callback 数量。

public long InFlightCallbackCount { get; }

Property Value

long

InvocationCount

Gets the copied invocation count. 获取复制出的调用次数。

public long InvocationCount { get; }

Property Value

long

IsAttached

Gets whether this owner is attached to TensorRT. 获取该 owner 是否已绑定到 TensorRT。

public bool IsAttached { get; }

Property Value

bool

IsRealCallbackRuntimeProof

Gets whether readiness may promote this snapshot as real callback runtime proof. 获取 readiness 是否可将该快照提升为真实 callback runtime proof。

public bool IsRealCallbackRuntimeProof { get; }

Property Value

bool

LastDiagnostic

Gets the copied diagnostic message. 获取复制出的诊断消息。

public string LastDiagnostic { get; }

Property Value

string

LastStatus

Gets the last copied bridge status. 获取最近一次复制出的 bridge status。

public BridgeStatusCode LastStatus { get; }

Property Value

BridgeStatusCode

ManagedKeepAliveReady

Gets whether managed keep-alive handles are still present for a pre-dispose owner. 获取释放前 owner 的托管 keep-alive 句柄是否仍存在。

public bool ManagedKeepAliveReady { get; }

Property Value

bool

MaxInFlightCallbackCount

Gets the copied maximum in-flight callback count. 获取复制出的最大 in-flight callback 数量。

public long MaxInFlightCallbackCount { get; }

Property Value

long

Operation

Gets the copied operation label. 获取复制出的操作标签。

public string Operation { get; }

Property Value

string

OwnerId

Gets the copied owner id. 获取复制出的 owner id。

public long OwnerId { get; }

Property Value

long

PointerFreeSurfaceReady

Gets whether the copied public surface is pointer-free. 获取复制出的 public surface 是否无 pointer。

public bool PointerFreeSurfaceReady { get; }

Property Value

bool

RealCallbackRuntime

Gets whether this snapshot proves a real TensorRT callback runtime. 获取该快照是否证明真实 TensorRT callback runtime。

public bool RealCallbackRuntime { get; }

Property Value

bool

ReleaseDiagnostic

Gets the copied release diagnostic message. 获取复制出的释放诊断消息。

public string ReleaseDiagnostic { get; }

Property Value

string

ReleaseHookCount

Gets the copied release hook count. 获取复制出的 release hook 次数。

public long ReleaseHookCount { get; }

Property Value

long

RuntimeEvidenceKind

Gets the runtime evidence kind. 获取 runtime 证据类型。

public string RuntimeEvidenceKind { get; }

Property Value

string

Succeeded

Gets whether this copied diagnostic completed without managed failures. 获取该复制诊断是否未出现托管失败。

public bool Succeeded { get; }

Property Value

bool

Methods

ToString()

Returns a compact diagnostic representation. 返回紧凑的诊断表示。

public override string ToString()

Returns

string

A diagnostic string. 诊断字符串。