Skip to content

Run script or project with graalvm's automatic metadata collection via the tracing agent #3222

Open
@Flowdalic

Description

@Flowdalic

There is already good support to build a native image using graalvm via scala-cli. However, many applications require a native-image configuration due to the dynamic features of Java. Creating those configuration files by hand can become a complex task.

Luckily, graalvm allows to automatically generate the native-image configuration by tracing the application.

It would be great if scala-cli run would grew a --native-image-trace [out-dir] option that results in out-dir becoming populated with the native-image configuration. If out-dir is unspecified, it probably should default to the current working directory.

Even though it is possible that the resulting configuration is incomplete, because the program did not exhibit a certain behavior during the trace, it would be still a good starting point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GraalVMIssues tied with GraalVM native imagesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions