Skip to content

Commit

Permalink
Add Adoptium to profiled vendors list. (#4498)
Browse files Browse the repository at this point in the history
* Add Adoptium to profiled vendors list.

* Spotless apply.
  • Loading branch information
cpwright authored Sep 15, 2023
1 parent f2a8d72 commit 55c695d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ static ThreadProfiler make() {
return NullThreadProfiler.INSTANCE;
}
final String vendor = System.getProperty("java.vendor");
if (vendor.contains("Sun") || vendor.contains("Oracle") || vendor.contains("OpenJDK")) {
if (vendor.contains("Sun")
|| vendor.contains("Oracle")
|| vendor.contains("OpenJDK")
|| vendor.contains("Adoptium")) {
return new SunThreadMXBeanThreadProfiler();
}
return new BaselineThreadMXBeanThreadProfiler();
Expand Down

0 comments on commit 55c695d

Please sign in to comment.