Skip to main content

ClikaRT::ProfileSummary::AllocationPairing

struct

Header: ClikaRT/profiler/profiler.h

Allocation-lifetime pairing at one tier: the REQUEST tier (tensor allocations) or the SEGMENT tier (the calls the memory pools make to the OS or the device driver). A capture window legitimately crosses lifetimes at both of its edges, so these are diagnostics, not failures; the one real defect a pairing can show is double_frees.

Data members​

live_at_end_allocs​

std::size_t live_at_end_allocs = 0

Allocated in the window and not freed by its end (still-held tensors: the norm for any mid-session capture).

Declared in ClikaRT/profiler/profiler.h, line 58

live_at_end_bytes​

std::uint64_t live_at_end_bytes = 0

Bytes those still-held allocations hold.

Declared in ClikaRT/profiler/profiler.h, line 60

freed_pre_window​

std::size_t freed_pre_window = 0

Freed in the window, allocated before it.

Declared in ClikaRT/profiler/profiler.h, line 62

double_frees​

std::size_t double_frees = 0

The same allocation freed twice: a real defect.

Declared in ClikaRT/profiler/profiler.h, line 64

unattributed_allocs​

std::size_t unattributed_allocs = 0

Allocation events that carry no identity (no profiler was active when the allocation was made).

Declared in ClikaRT/profiler/profiler.h, line 67

unattributed_frees​

std::size_t unattributed_frees = 0

Free events that carry no identity.

Declared in ClikaRT/profiler/profiler.h, line 69