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

LogCompilation: add sort by nmethod code size

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b24

      Description

      While profiling an issue I added this sort by code size, with -z

      $ java -ea -jar target/LogCompilation-1.0-SNAPSHOT.jar -z 2000-2.log | head

      879 4 com.fee.fi.fo.Fum::foobar (3076 bytes)(code size: 57344)
      853 make_not_entrant
      853 3 com.fee.fi.fo.Fum::foobar (3076 bytes)(code size: 55968)
      895 4 com.fee.fi.fo.Fum::baz (2238 bytes)(code size: 46112)
      888 4 com.fee.fi.fo.Fum::quux (2165 bytes)(code size: 43200)

      The code size = stub_offset - insts_offset from what is in the log.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ecaspole Eric Caspole
              Reporter:
              ecaspole Eric Caspole
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: