Table of Contents

Struct TensorRtGpuAllocatorRuntimeSnapshot

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Reports copied, pointer-free state from a native IGpuAllocator owner. 报告 native IGpuAllocator owner 复制出的无指针状态。

public readonly struct TensorRtGpuAllocatorRuntimeSnapshot
Inherited Members

Properties

AllocateAsyncCount

Gets stream-aware allocation callback count. 获取异步分配回调次数。

public ulong AllocateAsyncCount { get; }

Property Value

ulong

AllocateCount

Gets synchronous allocation callback count. 获取同步分配回调次数。

public ulong AllocateCount { get; }

Property Value

ulong

AttachCount

Gets successful native attach count. 获取 native 挂载次数。

public ulong AttachCount { get; }

Property Value

ulong

AttachmentTarget

Gets the current attachment target. 获取当前挂载目标。

public TensorRtGpuAllocatorAttachmentTarget AttachmentTarget { get; }

Property Value

TensorRtGpuAllocatorAttachmentTarget

CallbackFailureCount

Gets managed callback failure count. 获取托管回调失败次数。

public ulong CallbackFailureCount { get; }

Property Value

ulong

CudaFailureCount

Gets native CUDA failure count. 获取 native CUDA 失败次数。

public ulong CudaFailureCount { get; }

Property Value

ulong

DeallocateAsyncCount

Gets stream-aware release callback count. 获取异步释放回调次数。

public ulong DeallocateAsyncCount { get; }

Property Value

ulong

DeallocateCount

Gets synchronous release callback count. 获取同步释放回调次数。

public ulong DeallocateCount { get; }

Property Value

ulong

DetachCount

Gets successful native detach count. 获取 native 解除挂载次数。

public ulong DetachCount { get; }

Property Value

ulong

Diagnostic

Gets copied native diagnostics. 获取复制后的 native 诊断。

public string Diagnostic { get; }

Property Value

string

InFlightCallbackCount

Gets callbacks currently in flight. 获取当前执行中的回调数。

public ulong InFlightCallbackCount { get; }

Property Value

ulong

InvocationCount

Gets total callback invocations. 获取回调总次数。

public ulong InvocationCount { get; }

Property Value

ulong

IsAttached

Gets whether the owner is attached. 获取 owner 是否已挂载。

public bool IsAttached { get; }

Property Value

bool

LastAlignment

Gets the last requested alignment. 获取最近请求对齐。

public ulong LastAlignment { get; }

Property Value

ulong

LastAllocatorFlags

Gets the last allocator flags. 获取最近 allocator flags。

public uint LastAllocatorFlags { get; }

Property Value

uint

LastCallbackKind

Gets the last callback kind. 获取最近回调类型。

public TensorRtGpuAllocatorCallbackKind LastCallbackKind { get; }

Property Value

TensorRtGpuAllocatorCallbackKind

LastCallbackSucceeded

Gets whether the last managed callback completed. 获取最近托管回调是否完成。

public bool LastCallbackSucceeded { get; }

Property Value

bool

LastHadCurrentMemory

Gets whether existing memory was reported without exposing it. 获取是否报告已有显存但不暴露地址。

public bool LastHadCurrentMemory { get; }

Property Value

bool

LastHadStream

Gets whether a CUDA stream was reported without exposing it. 获取是否报告 CUDA stream 但不暴露句柄。

public bool LastHadStream { get; }

Property Value

bool

LastOperationSucceeded

Gets whether the last native operation succeeded. 获取最近 native 操作是否成功。

public bool LastOperationSucceeded { get; }

Property Value

bool

LastRequestedSize

Gets the last requested size. 获取最近请求大小。

public ulong LastRequestedSize { get; }

Property Value

ulong

LastStatus

Gets the last bridge status. 获取最近 bridge 状态。

public BridgeStatusCode LastStatus { get; }

Property Value

BridgeStatusCode

Line

Gets the TensorRT API line. 获取 TensorRT API 版本线。

public TensorRtApiLine Line { get; }

Property Value

TensorRtApiLine

LiveAllocationBytes

Gets live owner-tracked bytes. 获取存活的 owner 台账字节数。

public ulong LiveAllocationBytes { get; }

Property Value

ulong

LiveAllocationCount

Gets live owner-tracked allocations. 获取存活的 owner 台账分配数。

public ulong LiveAllocationCount { get; }

Property Value

ulong

MaxInFlightCallbackCount

Gets peak callback concurrency. 获取回调峰值并发数。

public ulong MaxInFlightCallbackCount { get; }

Property Value

ulong

NativePointerExposed

Gets whether this public snapshot exposes any native pointer. 获取该公开快照是否暴露 native pointer。

public bool NativePointerExposed { get; }

Property Value

bool

OwnerId

Gets the stable native owner id. 获取稳定的 native owner id。

public ulong OwnerId { get; }

Property Value

ulong

PeakLiveAllocationBytes

Gets peak live bytes. 获取峰值存活字节数。

public ulong PeakLiveAllocationBytes { get; }

Property Value

ulong

RealCallbackRuntime

Gets whether a successful real TensorRT allocation callback was observed. 获取是否观察到成功的真实 TensorRT 分配回调。

public bool RealCallbackRuntime { get; }

Property Value

bool

ReallocateCount

Gets reallocation callback count. 获取重分配回调次数。

public ulong ReallocateCount { get; }

Property Value

ulong

RejectedCount

Gets managed policy rejection count. 获取托管策略拒绝次数。

public ulong RejectedCount { get; }

Property Value

ulong

RuntimeEvidenceKind

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

public string RuntimeEvidenceKind { get; }

Property Value

string

Methods

ToString()

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

public override string ToString()

Returns

string