Table of Contents

Struct NoOpAllocationTracker

Namespace
Apache.Arrow.Memory
Assembly
Apache.Arrow.dll

Avoid informing the GC about native allocations. Consider using for micro-benchmarks where the impact of GC.AddMemoryPressure and GC.RemoveMemoryPressure can skew timing results.

public struct NoOpAllocationTracker : INativeAllocationTracker
Implements
Inherited Members

Methods

Track(int, long)

Record an allocation event

public void Track(int count, long bytes)

Parameters

count int

+1 when a new native chunk is allocated, -1 when deallocated and 0 when resized

bytes long

the delta in allocated bytes