traceperf
    Preparing search index...

    Interface AllocationProfile<T>

    interface AllocationProfile<T> {
        allocatedBytes: number;
        countsCollected: boolean;
        result: T;
        sites: AllocationSite[];
    }

    Type Parameters

    • T
    Index
    allocatedBytes: number

    Estimated total bytes allocated while fn ran

    countsCollected: boolean

    Whether allocations that were garbage-collected before the profile ended are included (V8 >= 11, i.e. Node.js 20+). When false, only allocations still alive at the end are counted.

    result: T

    Top allocation sites, largest first