Tracker that manages context‐sensitive profiles for CSSPGO.
Synopsis
Declared in <llvm/Transforms/IPO/SampleContextTracker.h>
class SampleContextTracker;
Description
Profile tracker that manages profiles and its associated context. It provides interfaces used by sample profile loader to query context profile or base profile for given function or location; it also manages context tree manipulation that is needed to accommodate inline decisions so we have accurate post‐inline profile for functions. Internally context profiles are organized in a trie, with each node representing profile for specific calling context and the context is identified by path from root to the node.
Types
Name |
Description |
Forward iterator over context trie nodes in breadth‐first order. |
Type Aliases
Name |
Description |
Vector of context‐sensitive function sample profiles. |
Member Functions
Name |
Description |
|
Constructors |
Return an iterator to the first context trie node. |
|
Create a merged context‐less profile map in |
|
Dump the internal context profile trie. |
|
Return an iterator past the last context trie node. |
|
|
|
|
|
Query context profile for a specific callee at a callsite. |
|
Retrieve the context trie node for |
|
Return the trie node associated with profile |
|
|
|
|
|
Get the real function name for trie node |
|
Return the map from function name to context profiles. |
|
Get samples for indirect call targets at the callsite given by |
|
Return the trie node for |
|
Return the root node of the context trie. |
|
Mark context profile |
|
Populate the FuncToCtxtProfiles map after the trie is built. |
|
Promote and merge the context samples tree for callee |
Created with MrDocs