@@ -23,58 +23,60 @@ Below is the example output when building a native executable of the `HelloWorld
23
23
================================================================================
24
24
GraalVM Native Image: Generating 'helloworld' (executable)...
25
25
================================================================================
26
- [1/8] Initializing... (2.8s @ 0.15GB )
27
- Java version: 25+13 , vendor version: GraalVM CE 25 -dev+13 .1
26
+ [1/8] Initializing... (2.0s @ 0.19GB )
27
+ Java version: 26+9 , vendor version: GraalVM CE 26 -dev+9 .1
28
28
Graal compiler: optimization level: 2, target machine: x86-64-v3
29
- C compiler: gcc (linux, x86_64, 12 .2.0 )
29
+ C compiler: gcc (linux, x86_64, 15 .2.1 )
30
30
Garbage collector: Serial GC (max heap size: 80% of RAM)
31
31
--------------------------------------------------------------------------------
32
- Build resources:
33
- - 13.24GB of memory (42.7 % of system memory, using available memory)
34
- - 16 thread(s) (100.0% of 16 available processor(s), determined at start)
35
- [2/8] Performing analysis... [****] (4.5s @ 0.54GB )
36
- 3,158 types, 3,625 fields, and 14,804 methods found reachable
37
- 1,012 types, 36 fields, and 377 methods registered for reflection
38
- 57 types, 57 fields, and 52 methods registered for JNI access
32
+ Build resources:
33
+ - 28.45GB of memory (42.5 % of system memory, using available memory)
34
+ - 20 thread(s) (100.0% of 20 available processor(s), determined at start)
35
+ [2/8] Performing analysis... [****** ] (3.4s @ 0.40GB )
36
+ 3,297 types, 3,733 fields, and 15,247 methods found reachable
37
+ 1,066 types, 36 fields, and 415 methods registered for reflection
38
+ 58 types, 59 fields, and 52 methods registered for JNI access
39
39
0 downcalls and 0 upcalls registered for foreign access
40
40
4 native libraries: dl, pthread, rt, z
41
- [3/8] Building universe... (0.8s @ 0.99GB )
42
- [4/8] Parsing methods... [*] (0.6s @ 0.75GB )
43
- [5/8] Inlining methods... [***] (0.3s @ 0.32GB )
44
- [6/8] Compiling methods... [**] (3.7s @ 0.60GB )
45
- [7/8] Laying out methods... [*] (0.8s @ 0.83GB )
46
- [8/8] Creating image... [**] (3.1s @ 0.58GB )
47
- 5.32MB (24.22 %) for code area: 8,702 compilation units
48
- 7.03MB (32.02 %) for image heap: 93,301 objects and 5 resources
49
- 8.96MB (40.83 %) for debug info generated in 1.0s
50
- 659.13kB ( 2.93 %) for other data
51
- 21 .96MB in total image size, 21.04MB in total file size
41
+ [3/8] Building universe... (1.0s @ 0.60GB )
42
+ [4/8] Parsing methods... [*] (0.4s @ 0.62GB )
43
+ [5/8] Inlining methods... [**** ] (0.2s @ 0.59GB )
44
+ [6/8] Compiling methods... [**] (3.7s @ 0.66GB )
45
+ [7/8] Laying out methods... [*] (0.7s @ 0.60GB )
46
+ [8/8] Creating image... [**] (2.3s @ 0.65GB )
47
+ 5.24MB (21.86 %) for code area: 8,788 compilation units
48
+ 7.67MB (32.01 %) for image heap: 90,323 objects and 55 resources
49
+ 9.43MB (39.34 %) for debug info generated in 0.3s
50
+ 11.05MB (46.13 %) for other data
51
+ 23 .96MB in total image size, 13.31MB in total file size
52
52
--------------------------------------------------------------------------------
53
53
Top 10 origins of code area: Top 10 object types in image heap:
54
- 4.03MB java.base 1.14MB byte[] for code metadata
55
- 927.05kB svm.jar (Native Image) 927.31kB java.lang.String
56
- 111.71kB java.logging 839.68kB byte[] for general heap data
57
- 63.38kB org.graalvm.nativeimage.base 736.91kB java.lang.Class
58
- 47.59kB jdk.proxy1 713.13kB byte[] for java.lang.String
59
- 35.85kB jdk.proxy3 272.85kB c.o.s.c.h.DynamicHubCompanion
60
- 27.06kB jdk.internal.vm.ci 250.83kB java.util.HashMap$Node
61
- 23.44kB org.graalvm.sdk 196.52kB java.lang.Object[]
62
- 11.42kB jdk.proxy2 182.77kB java.lang.String []
63
- 8.07kB jdk.graal.compiler 154.26kB byte[] for embedded resources
64
- 1.39kB for 2 more packages 1.38MB for 884 more object types
54
+ 791.32kB java.base/java.util 1.41MB byte[] for code metadata
55
+ 363.66kB java.base/java.lang 1.21MB byte[] for string data
56
+ 323.39kB java.base/java.text 838.53kB java.base/java.lang.String
57
+ 241.87kB java.base/java.util.stream 633.02kB o.g.n.~e/c.o.s.c.h.Dyna~anion
58
+ 229.23kB java.base/java.util.regex 431.58kB heap alignment
59
+ 214.23kB java.base/java.util.concurrent 428.26kB java.base/java.lang.Class
60
+ 166.60kB o.g.n.~e/c.o.svm.core.code 323.23kB java.base/j .util.HashMap$Node
61
+ 153.78kB java.base/java.time.format 284.47kB byte[] for general heap data
62
+ 152.90kB java.base/java.math 232.06kB java.base/java. lang.Object []
63
+ 142.02kB o.g.n.~e/c.o.s.c.genscavenge 183.10kB java.base/j.u.HashMap$Node[]
64
+ 2.32MB for 146 more packages 1.70MB for 966 more object types
65
65
--------------------------------------------------------------------------------
66
66
Recommendations:
67
+ FUTR: Use '--future-defaults=all' to prepare for future releases.
67
68
HEAP: Set max heap for improved and more predictable memory usage.
68
69
CPU: Enable more CPU features with '-march=native' for improved performance.
69
70
--------------------------------------------------------------------------------
70
- 0.8s (4.6 % of total time) in 35 GCs | Peak RSS: 1.93GB | CPU load: 9.61
71
+ 0.9s (6.1 % of total time) in 54 GCs | Peak RSS: 1.82GB | CPU load: 13.25
71
72
--------------------------------------------------------------------------------
72
73
Build artifacts:
74
+ /home/janedoe/helloworld/gdb-debughelpers.py (debug_info)
73
75
/home/janedoe/helloworld/helloworld (executable)
74
76
/home/janedoe/helloworld/helloworld.debug (debug_info)
75
77
/home/janedoe/helloworld/sources (debug_info)
76
78
================================================================================
77
- Finished generating 'helloworld' in 17.0s .
79
+ Finished generating 'helloworld' in 14.2s .
78
80
```
79
81
80
82
## Build Stages
0 commit comments