Index: src/compiler/graph-visualizer.cc |
diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc |
index 385fbc569c31a648cd5592156b09538e59068d11..7eb4c84211c0af828c130546844354dee6f1020d 100644 |
--- a/src/compiler/graph-visualizer.cc |
+++ b/src/compiler/graph-visualizer.cc |
@@ -124,10 +124,12 @@ class JSONGraphNodeWriter { |
} else { |
os_ << ",\n"; |
} |
- std::ostringstream label; |
- label << *node->op(); |
+ std::ostringstream label, title; |
+ node->op()->PrintTo(label, Operator::PrintVerbosity::kSilent); |
+ node->op()->PrintTo(title, Operator::PrintVerbosity::kVerbose); |
os_ << "{\"id\":" << SafeId(node) << ",\"label\":\"" << Escaped(label, "\"") |
- << "\""; |
+ << "\"" |
+ << ",\"title\":\"" << Escaped(title, "\"") << "\""; |
IrOpcode::Value opcode = node->opcode(); |
if (IrOpcode::IsPhiOpcode(opcode)) { |
os_ << ",\"rankInputs\":[0," << NodeProperties::FirstControlIndex(node) |