RFR: 8332980: [IR Framework] Add option to measure IR rule processing time

Theo Weidmann tweidmann at openjdk.org
Thu Jan 23 12:09:56 UTC 2025


Adds a flag to the IR Framework that prints the time it took to verify the IR rules for each method.

Example use:


jtreg -jdk:build/fastdeb/jdk -verbose:all vmoptions:"-DPrintRuleMatchingTime=true" path/to/Test.java  


Example output:


Verifying IR rules for testByteArray: 548584 ns = 0 ms
Verifying IR rules for testIntArray: 702042 ns = 0 ms
Verifying IR rules for testLongArray: 466209 ns = 0 ms
Verifying IR rules for testShortArray: 731708 ns = 0 ms

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

Commit messages:
 - Update IRMethod.java
 - Add PrintRuleMatchingTime

Changes: https://git.openjdk.org/jdk/pull/23266/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23266&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8332980
  Stats: 21 lines in 3 files changed: 18 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/23266.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23266/head:pull/23266

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


More information about the hotspot-compiler-dev mailing list