llvm::InstrProfWriter::addTemporalProfileTraces

Add temporal profile traces using reservoir sampling.

Synopsis

Declared in <llvm/ProfileData/InstrProfWriter.h>

void
addTemporalProfileTraces(
    SmallVectorImpl<TemporalProfTraceTy>& SrcTraces,
    uint64_t SrcStreamSize);

Description

SrcStreamSize is the total number of temporal profiling traces the source has seen.

Parameters

NameDescription
SrcTracesTemporal traces to merge into this writer.
SrcStreamSizeTotal number of traces observed by the source.