Skip to content

Commit

Permalink
Automatic merge of master into galahad
Browse files Browse the repository at this point in the history
  • Loading branch information
OracleLabsAutomation committed Oct 16, 2024
2 parents b46a74b + 548e414 commit 5d55e61
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -875,13 +875,15 @@ protected void printResults(OptionValues options, Map<ResolvedJavaMethod, Compil
int limit = Options.MetricsReportLimit.getValue(harnessOptions);
if (limit > 0) {
TTY.println("Longest compile times:");
compileTimes.entrySet().stream().sorted(Comparator.comparing(entry -> entry.getValue().compileTime())).limit(limit).forEach(e -> {
final Comparator<Map.Entry<ResolvedJavaMethod, CompilationResult>> compileTimeComparator = Comparator.comparing(entry -> entry.getValue().compileTime());
compileTimes.entrySet().stream().sorted(compileTimeComparator.reversed()).limit(limit).forEach(e -> {
long time = nanoToMillis(e.getValue().compileTime());
ResolvedJavaMethod method = e.getKey();
TTY.println(" %,10d ms %s [bytecodes: %d]", time, method.format("%H.%n(%p)"), method.getCodeSize());
});
TTY.println("Largest methods skipped due to bytecode size exceeding HugeMethodLimit (%d):", getHugeMethodLimit(getGraalRuntime().getVMConfig()));
hugeMethods.entrySet().stream().sorted((e1, e2) -> e2.getValue().compareTo(e1.getValue())).limit(limit).forEach(e -> {
final Comparator<Map.Entry<ResolvedJavaMethod, Integer>> codeSizeComparator = Map.Entry.comparingByValue();
hugeMethods.entrySet().stream().sorted(codeSizeComparator.reversed()).limit(limit).forEach(e -> {
ResolvedJavaMethod method = e.getKey();
TTY.println(" %,10d %s", e.getValue(), method.format("%H.%n(%p)"), method.getCodeSize());
});
Expand Down

0 comments on commit 5d55e61

Please sign in to comment.