RFR: 8320805: JFR: Create view for deprecated methods

Erik Gahlin egahlin at openjdk.org
Wed Dec 6 18:10:55 UTC 2023


Could I have a review of a new view for the 'jfr' command to display deprecated methods for removal.

Usage:

`$ jfr view deprecated-methods-for-removal <recording-file>`

If the package name doesn't fit, the _--width size_ option can be specified.

A new aggregator function SET is introduced and if the cell-height is more than 1, items in the set, or list, are written on separate lines. I also added support for the synthetic field "stackTrace.topFrame.class". Long term plan is to allow ".class" suffix on any method/frame field, not just the topFrame. Elipsis is no longer used when contents exactly matches the column width. Switched to LinkedHashSet to make results deterministic and in the order items are found in the file.

Testing: jdk/jdk/jfr

Thanks
Erik

-------------

Commit messages:
 - Use LinkedHashSet
 - Remove unused lines
 - Initial

Changes: https://git.openjdk.org/jdk/pull/17000/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17000&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8320805
  Stats: 96 lines in 7 files changed: 66 ins; 13 del; 17 mod
  Patch: https://git.openjdk.org/jdk/pull/17000.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17000/head:pull/17000

PR: https://git.openjdk.org/jdk/pull/17000


More information about the hotspot-jfr-dev mailing list