mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8357649: IGV: add block index to the supplemental node properties
Co-authored-by: Roberto Castañeda Lozano <rcastanedalo@openjdk.org> Reviewed-by: rcastanedalo, chagedorn
This commit is contained in:
parent
3dbd2d3d2d
commit
a37e8265b5
@ -474,6 +474,10 @@ void IdealGraphPrinter::visit_node(Node* n, bool edges) {
|
||||
// Enforce dots as decimal separators, as required by IGV.
|
||||
StringUtils::replace_no_expand(buffer, ",", ".");
|
||||
print_prop("frequency", buffer);
|
||||
// Print block index for nodes that are placed in blocks and scheduled locally.
|
||||
if (block->contains(node)) {
|
||||
print_prop("block_index", block->find_node(node));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user