LLVM 19.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::TemporalProfTraceTy Struct Reference

An ordered list of functions identified by their NameRef found in INSTR_PROF_DATA. More...

#include "llvm/ProfileData/InstrProf.h"

Public Member Functions

 TemporalProfTraceTy (std::initializer_list< uint64_t > Trace={}, uint64_t Weight=1)
 

Static Public Member Functions

static std::vector< BPFunctionNodecreateBPFunctionNodes (ArrayRef< TemporalProfTraceTy > Traces)
 Use a set of temporal profile traces to create a list of balanced partitioning function nodes used by BalancedPartitioning to generate a function order that reduces page faults during startup.
 

Public Attributes

std::vector< uint64_tFunctionNameRefs
 
uint64_t Weight
 

Detailed Description

An ordered list of functions identified by their NameRef found in INSTR_PROF_DATA.

Definition at line 377 of file InstrProf.h.

Constructor & Destructor Documentation

◆ TemporalProfTraceTy()

llvm::TemporalProfTraceTy::TemporalProfTraceTy ( std::initializer_list< uint64_t Trace = {},
uint64_t  Weight = 1 
)
inline

Definition at line 380 of file InstrProf.h.

Member Function Documentation

◆ createBPFunctionNodes()

std::vector< BPFunctionNode > llvm::TemporalProfTraceTy::createBPFunctionNodes ( ArrayRef< TemporalProfTraceTy Traces)
static

Use a set of temporal profile traces to create a list of balanced partitioning function nodes used by BalancedPartitioning to generate a function order that reduces page faults during startup.

Definition at line 973 of file InstrProf.cpp.

References I, llvm::SetVector< T, Vector, Set, N >::insert(), llvm::Log2_64(), N, llvm::ArrayRef< T >::size(), llvm::Trace::size(), llvm::sort(), and Timestamp.

Member Data Documentation

◆ FunctionNameRefs

std::vector<uint64_t> llvm::TemporalProfTraceTy::FunctionNameRefs

Definition at line 378 of file InstrProf.h.

◆ Weight

uint64_t llvm::TemporalProfTraceTy::Weight

Definition at line 379 of file InstrProf.h.


The documentation for this struct was generated from the following files: