LLVM 22.0.0git
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 <memory>

Go to the source code of this file.

Functions

static Expected< BlockHeader > readBlockHeader (DataExtractor &Extractor, uint64_t &Offset)
static Expected< std::vector< Profile::FuncID > > readPath (DataExtractor &Extractor, uint64_t &Offset)
static Expected< Profile::Data > readData (DataExtractor &Extractor, uint64_t &Offset)

Function Documentation

◆ readBlockHeader()

Expected< BlockHeader > readBlockHeader ( DataExtractor & Extractor,
uint64_t & Offset )
static

Definition at line 51 of file Profile.cpp.

References H, llvm::make_error(), and llvm::Offset.

Referenced by llvm::xray::loadProfile().

◆ readData()

Expected< Profile::Data > readData ( DataExtractor & Extractor,
uint64_t & Offset )
static

Definition at line 96 of file Profile.cpp.

References D(), llvm::make_error(), and llvm::Offset.

Referenced by llvm::xray::loadProfile().

◆ readPath()

Expected< std::vector< Profile::FuncID > > readPath ( DataExtractor & Extractor,
uint64_t & Offset )
static

Definition at line 78 of file Profile.cpp.

References llvm::make_error(), and llvm::Offset.

Referenced by llvm::xray::loadProfile().