Skip to content

Commit

Permalink
Merge pull request #15041 from mkouba/graalvm-dashboard-dump
Browse files Browse the repository at this point in the history
Native image - make it possible to generate the dashboard dump file
  • Loading branch information
gsmet authored Feb 15, 2021
2 parents 516db26 + acbe182 commit 8389134
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,12 @@ public static class Debug {
public boolean enabled;
}

/**
* Generate the report files for GraalVM Dashboard.
*/
@ConfigItem
public boolean enableDashboardDump;

/**
* Supported Container runtimes
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ public NativeImageBuildItem build(NativeConfig nativeConfig, NativeImageSourceJa
} else {
command.add("-H:-StackTrace");
}

if (nativeConfig.enableDashboardDump) {
command.add("-H:DashboardDump=" + outputTargetBuildItem.getBaseName() + "_dashboard.dump");
command.add("-H:+DashboardAll");
}

String executableName = outputTargetBuildItem.getBaseName() + packageConfig.runnerSuffix;
command.add(executableName);

Expand Down

0 comments on commit 8389134

Please sign in to comment.