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

jcmd: Compiler.CodeHeap_Analytics cmd does not inform about missing aggregate

XMLWordPrintable

    • b18
    • generic
    • generic

        If jcmd users want to print statistical data about a specific property of the code heap (instead of requesting "all"), they first have to aggregate such data. If this step was forgotten, the requested function just returns. This should be improved.

        ------ Output before enhancement --------
        > bin/jcmd <pid> Compiler.CodeHeap_Analytics FreeSpace
        <pid>:

        __ CodeHeapStateAnalytics lock wait took 0.000 seconds _________

        __ CodeHeapStateAnalytics total duration 0.000 seconds _________



        ------ Output after enhancement --------
        > bin/jcmd <pid> Compiler.CodeHeap_Analytics FreeSpace
        <pid>:

        __ CodeHeapStateAnalytics lock wait took 0.000 seconds _________

        No aggregated data available for heap CodeHeap. Run function aggregate first.

        __ CodeHeapStateAnalytics total duration 0.000 seconds _________

              lucy Lutz Schmidt (Inactive)
              lucy Lutz Schmidt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: