Skip to content

Commit

Permalink
Use -H:PrintAnalysisCallTreeType=CSV to generate csv call tree files
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Mar 11, 2022
1 parent d3da73b commit 8ee9946
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,19 @@ public NativeImageInvokerInfo build() {
//address https://github.com/quarkusio/quarkus-quickstarts/issues/993
nativeImageArgs.add("-J--add-opens=java.base/java.text=ALL-UNNAMED");

if (nativeConfig.enableReports) {
if (graalVMVersion.isOlderThan(GraalVM.Version.VERSION_22_0_0_2)) {
nativeImageArgs.add("-H:+PrintAnalysisCallTree");
} else {
nativeImageArgs.add("-H:PrintAnalysisCallTreeType=CSV");
}
}

/*
* Any parameters following this call are forced over the user provided parameters in
* quarkus.native.additional-build-args. So if you need a parameter to be overridable through
* quarkus.native.additional-build-args please make sure to add it before this call.
*/
handleAdditionalProperties(nativeImageArgs);

nativeImageArgs.add(
Expand Down Expand Up @@ -713,9 +726,6 @@ public NativeImageInvokerInfo build() {
.add("-J-Xrunjdwp:transport=dt_socket,address=" + debugBuildProcessHost + ":"
+ DEBUG_BUILD_PROCESS_PORT + ",server=y,suspend=y");
}
if (nativeConfig.enableReports) {
nativeImageArgs.add("-H:+PrintAnalysisCallTree");
}
if (nativeConfig.dumpProxies) {
nativeImageArgs.add("-Dsun.misc.ProxyGenerator.saveGeneratedFiles=true");
}
Expand Down

0 comments on commit 8ee9946

Please sign in to comment.