Skip to content

Commit

Permalink
Special case Native Image module.
Browse files Browse the repository at this point in the history
SubstrateVM components are part of the `org.graalvm.nativeimage.builder` module, which can be confusing. Show `svm.jar (Native Image)` instead for now.
  • Loading branch information
fniephaus committed Jan 9, 2023
1 parent e06ca9d commit 0b52fa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference-manual/native-image/BuildOutput.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ GraalVM Native Image: Generating 'helloworld' (executable)...
--------------------------------------------------------------------------------
Top 10 origins of code area: Top 10 object types in image heap:
3.43MB java.base 1.01MB byte[] for code metadata
760.98KB o.graalvm.nativeimage.builder 1000.72KB java.lang.String
760.98KB svm.jar (Native Image) 1000.72KB java.lang.String
102.06KB java.logging 884.18KB byte[] for general heap data
48.03KB org.graalvm.nativeimage.base 686.91KB byte[] for java.lang.String
40.49KB jdk.proxy1 659.87KB java.lang.Class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ private void calculateCodeBreakdown(Collection<CompileTask> compilationTasks) {
Module module = javaClass.getModule();
if (module.isNamed()) {
key = module.getName();
if ("org.graalvm.nativeimage.builder".equals(key)) {
key = "svm.jar (Native Image)";
}
} else {
key = findJARFile(javaClass);
if (key == null) {
Expand Down

0 comments on commit 0b52fa9

Please sign in to comment.