mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
Add current reports for strict example
This commit is contained in:
@@ -182,6 +182,8 @@
|
||||
<configuration>
|
||||
<cleanupServer>true</cleanupServer>
|
||||
<enableHttpUrlHandler>true</enableHttpUrlHandler>
|
||||
<enableRetainedHeapReporting>true</enableRetainedHeapReporting>
|
||||
<enableCodeSizeReporting>true</enableCodeSizeReporting>
|
||||
<graalvmHome>${graalvmHome}</graalvmHome>
|
||||
</configuration>
|
||||
</execution>
|
||||
@@ -193,4 +195,4 @@
|
||||
</profiles>
|
||||
|
||||
|
||||
</project>
|
||||
</project>
|
||||
|
||||
@@ -48,6 +48,12 @@ public class NativeImageMojo extends AbstractMojo {
|
||||
@Parameter
|
||||
private boolean enableHttpUrlHandler;
|
||||
|
||||
@Parameter
|
||||
private boolean enableRetainedHeapReporting;
|
||||
|
||||
@Parameter
|
||||
private boolean enableCodeSizeReporting;
|
||||
|
||||
@Parameter(defaultValue = "${env.GRAALVM_HOME}")
|
||||
private String graalvmHome;
|
||||
|
||||
@@ -99,6 +105,13 @@ public class NativeImageMojo extends AbstractMojo {
|
||||
if(enableHttpUrlHandler) {
|
||||
command.add("-H:EnableURLProtocols=http");
|
||||
}
|
||||
if (enableRetainedHeapReporting) {
|
||||
command.add("-H:+PrintRetainedHeapHistogram");
|
||||
}
|
||||
if (enableCodeSizeReporting) {
|
||||
command.add("-H:+PrintCodeSizeReport");
|
||||
}
|
||||
|
||||
//command.add("-H:+AllowVMInspection");
|
||||
System.out.println(command);
|
||||
Process process = Runtime.getRuntime().exec(command.toArray(new String[0]), null, outputDirectory);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user