Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8251464

make Node::dump(int depth) support indent

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b19
    • CPU:
      generic
    • OS:
      generic

      Description

      The parameter depth accepts both a positive and a negative integer.
      if depth is positive, it will traverse input nodes in breadth-first order .
      if depth is negative, it will traverse output nodes in breadth-first order.

      Currently, Node::dump(depth) doesn't support indent. I found indentation can help developers to recognize dependencies. It's particularly true if the ideal graph is not very deep.

        Attachments

        1. dump2.txt
          1 kB
        2. indent_with_idx.log
          7 kB
        3. root.log
          66 kB

          Issue Links

            Activity

              People

              Assignee:
              xliu Xin Liu
              Reporter:
              xliu Xin Liu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: