[all-commits] [llvm/llvm-project] eb9215: [MemProf] Add ability to export or highlight only ...
Teresa Johnson via All-commits
all-commits at lists.llvm.org
Sat Feb 22 05:43:07 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eb9215739930cdffde4201a9be42a788ea46c63f
https://github.com/llvm/llvm-project/commit/eb9215739930cdffde4201a9be42a788ea46c63f
Author: Teresa Johnson <tejohnson at google.com>
Date: 2025-02-22 (Sat, 22 Feb 2025)
Changed paths:
M llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
A llvm/test/Transforms/MemProfContextDisambiguation/dot.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list