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
BorrowedPointerEscaped
Gets whether a borrowed pointer escaped through this public API. 获取 borrowed pointer 是否通过该 public API 逃逸。
public bool BorrowedPointerEscaped { get; }
Property Value
CallbackKind
Gets the callback kind represented by this diagnostic snapshot. 获取该诊断快照代表的 callback 类型。
public string CallbackKind { get; }
Property Value
CallbackStatePinned
Gets whether managed callback state remains pinned. 获取托管 callback state 是否仍被 pin 住。
public bool CallbackStatePinned { get; }
Property Value
DelegatePinned
Gets whether the managed delegate remains pinned. 获取托管 delegate 是否仍被 pin 住。
public bool DelegatePinned { get; }
Property Value
DevicePointerExposed
Gets whether the public API exposes a device pointer. 获取 public API 是否暴露 device pointer。
public bool DevicePointerExposed { get; }
Property Value
DevicePointerProduced
Gets whether the diagnostic produced a device pointer. 获取该诊断是否产生 device pointer。
public bool DevicePointerProduced { get; }
Property Value
DisposeReleaseReady
Gets whether dispose released keep-alive handles after callbacks drained. 获取 Dispose 是否在 callback drain 后释放 keep-alive 句柄。
public bool DisposeReleaseReady { get; }
Property Value
DisposeRequested
Gets whether dispose has been requested. 获取是否已请求释放。
public bool DisposeRequested { get; }
Property Value
EvidenceKind
Gets the marker used by readiness to identify this snapshot. 获取 readiness 用于识别该快照的 marker。
public string EvidenceKind { get; }
Property Value
FailureCount
Gets the copied failure count. 获取复制出的失败次数。
public long FailureCount { get; }
Property Value
InFlightCallbackCount
Gets the copied in-flight callback count. 获取复制出的 in-flight callback 数量。
public long InFlightCallbackCount { get; }
Property Value
InvocationCount
Gets the copied invocation count. 获取复制出的调用次数。
public long InvocationCount { get; }
Property Value
IsAttached
Gets whether this owner is attached to TensorRT. 获取该 owner 是否已绑定到 TensorRT。
public bool IsAttached { get; }
Property Value
IsRealCallbackRuntimeProof
Gets whether readiness may promote this snapshot as real callback runtime proof. 获取 readiness 是否可将该快照提升为真实 callback runtime proof。
public bool IsRealCallbackRuntimeProof { get; }
Property Value
LastDiagnostic
Gets the copied diagnostic message. 获取复制出的诊断消息。
public string LastDiagnostic { get; }
Property Value
LastStatus
Gets the last copied bridge status. 获取最近一次复制出的 bridge status。
public BridgeStatusCode LastStatus { get; }
Property Value
ManagedKeepAliveReady
Gets whether managed keep-alive handles are still present for a pre-dispose owner. 获取释放前 owner 的托管 keep-alive 句柄是否仍存在。
public bool ManagedKeepAliveReady { get; }
Property Value
MaxInFlightCallbackCount
Gets the copied maximum in-flight callback count. 获取复制出的最大 in-flight callback 数量。
public long MaxInFlightCallbackCount { get; }
Property Value
Operation
Gets the copied operation label. 获取复制出的操作标签。
public string Operation { get; }
Property Value
OwnerId
Gets the copied owner id. 获取复制出的 owner id。
public long OwnerId { get; }
Property Value
PointerFreeSurfaceReady
Gets whether the copied public surface is pointer-free. 获取复制出的 public surface 是否无 pointer。
public bool PointerFreeSurfaceReady { get; }
Property Value
RealCallbackRuntime
Gets whether this snapshot proves a real TensorRT callback runtime. 获取该快照是否证明真实 TensorRT callback runtime。
public bool RealCallbackRuntime { get; }
Property Value
ReleaseDiagnostic
Gets the copied release diagnostic message. 获取复制出的释放诊断消息。
public string ReleaseDiagnostic { get; }
Property Value
ReleaseHookCount
Gets the copied release hook count. 获取复制出的 release hook 次数。
public long ReleaseHookCount { get; }
Property Value
RuntimeEvidenceKind
Gets the runtime evidence kind. 获取 runtime 证据类型。
public string RuntimeEvidenceKind { get; }
Property Value
Succeeded
Gets whether this copied diagnostic completed without managed failures. 获取该复制诊断是否未出现托管失败。
public bool Succeeded { get; }
Property Value
Methods
ToString()
Returns a compact diagnostic representation. 返回紧凑的诊断表示。
public override string ToString()
Returns
- string
A diagnostic string. 诊断字符串。