LLVM: llvm::xray::Profile Class Reference (original) (raw)
Profile instances are thread-compatible. More...
#include "[llvm/XRay/Profile.h](Profile%5F8h%5Fsource.html)"
| Public Types | |
|---|---|
| using | ThreadID = uint64_t |
| using | PathID = unsigned |
| using | FuncID = int32_t |
| using | const_iterator = BlockList::const_iterator |
| Public Member Functions | |
|---|---|
| LLVM_ABI Expected< std::vector< FuncID > > | expandPath (PathID P) const |
| Provides a sequence of function IDs from a previously interned PathID. | |
| LLVM_ABI PathID | internPath (ArrayRef< FuncID > P) |
| The stack represented in |P | |
| LLVM_ABI Error | addBlock (Block &&B) |
| Appends a fully-formed Block instance into the Profile. | |
| Profile ()=default | |
| ~Profile ()=default | |
| Profile (Profile &&O) noexcept | |
| Profile & | operator= (Profile &&O) noexcept |
| LLVM_ABI | Profile (const Profile &) |
| LLVM_ABI Profile & | operator= (const Profile &) |
| const_iterator | begin () const |
| const_iterator | end () const |
| bool | empty () const |
Profile instances are thread-compatible.
Definition at line 51 of file Profile.h.
◆ const_iterator
using llvm::xray::Profile::const_iterator = BlockList::const_iterator
◆ FuncID
using llvm::xray::Profile::FuncID = int32_t
◆ PathID
◆ ThreadID
◆ Profile() [1/3]
| llvm::xray::Profile::Profile ( ) | default |
|---|
| llvm::xray::Profile::~Profile ( ) | default |
|---|
◆ Profile() [2/3]
| llvm::xray::Profile::Profile ( Profile && O) | inlinenoexcept |
|---|
◆ Profile() [3/3]
◆ addBlock()
◆ begin()
| const_iterator llvm::xray::Profile::begin ( ) const | inline |
|---|
◆ empty()
| bool llvm::xray::Profile::empty ( ) const | inline |
|---|
◆ end()
| const_iterator llvm::xray::Profile::end ( ) const | inline |
|---|
◆ expandPath()
| Expected< std::vector< Profile::FuncID > > Profile::expandPath | ( | PathID | P | ) | const |
|---|
Provides a sequence of function IDs from a previously interned PathID.
Returns an error if |P| had not been interned before into the Profile.
Definition at line 129 of file Profile.cpp.
References llvm::make_error(), and P.
◆ internPath()
◆ operator=() [1/2]
◆ operator=() [2/2]
| Profile & llvm::xray::Profile::operator= ( Profile && O) | inlinenoexcept |
|---|
◆ swap
The documentation for this class was generated from the following files:
- include/llvm/XRay/Profile.h
- lib/XRay/Profile.cpp