diff options
author | Teresa Johnson <tejohnson@google.com> | 2025-02-22 05:42:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-22 05:42:46 -0800 |
commit | eb9215739930cdffde4201a9be42a788ea46c63f (patch) | |
tree | 58d627d4ee2925a80a64c0dbd32cf2bfc880daa5 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | 9d6f2647ded4c72b82ab329cffce11b9e7cccafa (diff) | |
download | llvm-eb9215739930cdffde4201a9be42a788ea46c63f.zip llvm-eb9215739930cdffde4201a9be42a788ea46c63f.tar.gz llvm-eb9215739930cdffde4201a9be42a788ea46c63f.tar.bz2 |
[MemProf] Add ability to export or highlight only a portion of graph (#128255)
To simplify debugging and analysis, particularly for very large
applications with large graphs, this patch adds support for either
highlighting a single context id or allocation's context ids, and/or
only exporting the nodes/edges for a single context id or allocation's
context ids. When highlighting, the specified nodes and edges are a
brighter color and larger.
This can be controlled by the new -memprof-dot-scope={all,alloc,context}
flag which controls how much to export, along with two companion flags:
-memprof-dot-alloc-id=ID
-memprof-dot-context-id=ID
These two are interpreted differently depending on the value of
-memprof-dot-scope (where "all" is the default).
If exporting all, one of the above flags can optionally be passed to
highlight the nodes/edges for the given context id or allocation's
context ids.
If exporting alloc scope, an alloc id must be provided. A context id can
optionally be provided to highlight that context.
If exporting context scope, a context id must be provided.
The ids to use can be obtained either by looking at the full graph, or a
context id can be identified from the -memprof-report-hinted-sizes
output after PR128188 is merged.
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
0 files changed, 0 insertions, 0 deletions