LLVM 20.0.0git
Namespaces | Functions
Profile.cpp File Reference
#include "llvm/XRay/Profile.h"
#include "llvm/Support/DataExtractor.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/XRay/Trace.h"
#include <deque>
#include <memory>

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::xray
 

Functions

Profile llvm::xray::mergeProfilesByThread (const Profile &L, const Profile &R)
 This algorithm will merge two Profile instances into a single Profile instance, aggregating blocks by Thread ID.
 
Profile llvm::xray::mergeProfilesByStack (const Profile &L, const Profile &R)
 This algorithm will merge two Profile instances into a single Profile instance, aggregating blocks by function call stack.
 
Expected< Profilellvm::xray::loadProfile (StringRef Filename)
 This function will attempt to load an XRay Profiling Mode profile from the provided |Filename|.
 
Expected< Profilellvm::xray::profileFromTrace (const Trace &T)
 This function takes a Trace and creates a Profile instance from it.
 

Variable Documentation

◆ FuncId

Profile::FuncID FuncId

◆ Number

uint32_t Number

◆ Size

uint32_t Size

Definition at line 46 of file Profile.cpp.

◆ Thread

uint64_t Thread

Definition at line 48 of file Profile.cpp.

Referenced by llvm::CrashRecoveryContext::RunSafelyOnThread().

◆ Timestamp

uint64_t Timestamp

Definition at line 320 of file Profile.cpp.

Referenced by llvm::TemporalProfTraceTy::createBPFunctionNodes().