Utilities for analyzing and applying memory profile information.
Types
Name |
Description |
Top‐level MemProf dataset used with YAML for now. |
|
Allocation site with inline frame contents for temporary in‐memory use. |
|
Call site information with frame contents stored inline. |
|
Helper to iterate stack ids in memprof metadata or ThinLTO summaries. |
|
Function object that returns a call stack for a given CallStackId. |
|
OnDiskChainedHashTable lookup trait for CallStackId to FrameId sequences. |
|
Builder that compresses call stacks into a serialized radix tree array. |
|
Trie of profiled call‐stack contexts for one allocation call. |
|
OnDiskChainedHashTable writer trait for CallStackId to FrameId sequences. |
|
Extracts caller‐callee pairs from the call stack radix tree array. |
|
Encapsulates the data access profile data and the methods to operate on it. This class provides profile look‐up, serialization and deserialization. |
|
The data access profiles for a symbol. |
|
Call frame for a dynamic allocation context, typically from a stack depot. |
|
Function object that returns a Frame for a given FrameId. |
|
OnDiskChainedHashTable lookup trait for FrameId to Frame mappings. |
|
Aggregate occurrence statistics for a single FrameId across call stacks. |
|
OnDiskChainedHashTable writer trait for FrameId to Frame mappings. |
|
Strong typedef for a 64‐bit MemProf function GUID in YAML. |
|
Pair of a function GUID and its MemProf record for YAML I/O. |
|
Allocation site that stores its call stack as a CallStackId. |
|
Call site information that stores frames by CallStackId. |
|
Convenience wrapper around FrameIdConverter and CallStackIdConverter for tests. |
|
Space‐optimized container for indexed MemProf profile data. |
|
MemProf profile for one function, storing frames by identifier. |
|
Source location of a call expressed as line offset plus column. |
|
Function object that returns a call stack stored in the profile array. |
|
Function object that returns a Frame stored at an index into the profile. |
|
Reader for MemProf profile data populated from external sources. |
|
MemProf profile for one function with frame contents stored inline. |
|
Summary statistics for a MemProf profile. |
|
Builds aggregate MemProf summary statistics from allocation profile records. |
|
Portable MemInfoBlock whose fields may be partially serialized by schema. |
|
MemProfReader that populates data from raw binary instrumentation profiles. |
|
OnDiskChainedHashTable lookup trait for IndexedMemProfRecord entries. |
|
OnDiskChainedHashTable writer trait for IndexedMemProfRecord entries. |
|
The location of data in the source code. Used by profile lookup API. |
|
MemProfReader that populates data from a YAML MemProf profile. |
|
Owned YAML‐friendly view of |
Type Aliases
Name |
Description |
Pair of a call‐site LineLocation and the callee function GUID. |
|
Identifier indexing into the table of call stacks. |
|
Map from stack‐depot id to virtual addresses for each PC in a callstack. |
|
Pair of profiled context size data and its allocation type. |
|
Hash identifier for a unique call Frame. |
|
Dense linear index into the call stack array used by newer indexed formats. |
|
Dense linear index into the frame array used by newer indexed formats. |
|
Map from a profile source location to the matching location in the IR. |
|
Ordered list of Meta field identifiers describing a MemInfoBlock schema. |
|
Owning handle identifying a profiled data symbol. |
|
Non‐owning handle identifying a profiled data symbol. |
Enums
Name |
Description |
Eligibility of a global variable for section‐prefix annotation. |
|
Versions of the indexed MemProf profile format. |
|
Identifiers for fields stored in a PortableMemInfoBlock schema. |
Functions
Name |
Description |
Returns true if the annotation kind of the global variable |
|
Adds an "ambiguous" memprof attribute to call with a matched allocation profile but that we haven't yet been able to disambiguate. |
|
Build callstack metadata from the provided list of call stack ids. |
|
Compute a histogram of Frames in call stacks. |
|
Generate a single hash id for a given callstack. |
|
Compute an undrifting map from profile locations to IR locations. |
|
Extract all calls from the IR, keyed by caller GUID. |
|
Return the allocation type for a given set of memory profile values. |
|
Returns the string to use in attributes with the given type. |
|
Returns the annotation kind of the global variable |
|
Return the full schema of MemInfoBlock fields currently in use. |
|
Return the memprof GUID for |
|
Return the schema of fields used for hot/cold memory hinting. |
|
Returns the allocation type from an MIB metadata node. |
|
Returns the stack node from an MIB metadata node. |
|
Return the Darwin linkage name of the memprof default‐options string. |
|
Return the IR‐level name of the memprof default‐options string symbol. |
|
True if the AllocTypes bitmask contains just a single type. |
|
Whether the alloc memeprof metadata will include context size info for all MIBs. |
|
Whether the alloc memprof metadata may include context size info for some MIBs (but possibly not all). |
|
Read a MemProfSchema from |
|
Whether we need to record the context size info in the alloc trie used to build metadata. |
|
Removes any existing "ambiguous" memprof attribute. Called before we apply a specific allocation type such as "cold", "notcold", or "hot". |
Variables
Name |
Description |
Newest indexed MemProf format version supported by this reader/writer. |
|
Oldest indexed MemProf format version supported by this reader/writer. |
Created with MrDocs