Skip to content

Commit cdf505d

Browse files
committed
Initial implmentation for json file build output
This uses a simple backing Map (HashMap), for collecting the data. It's entirely driven by ProgressReporter and if not requested by the user, by specifying: `-H:BuildOutputJSONFile=<file>` on the command line, entirely disabled. It also adds a JSON schema to the native image manual as an asset.
1 parent f00f377 commit cdf505d

File tree

5 files changed

+898
-9
lines changed

5 files changed

+898
-9
lines changed

docs/reference-manual/native-image/BuildOutput.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ Run `native-image --expert-options-all | grep "BuildOutput"` to see all build ou
190190
-H:±BuildOutputBreakdowns Show code and heap breakdowns as part of the build output. Default: + (enabled).
191191
-H:±BuildOutputColorful Colorize build output. Default: + (enabled).
192192
-H:±BuildOutputGCWarnings Print GC warnings as part of build output. Default: + (enabled).
193+
-H:BuildOutputJSONFile="" Print build output statistics as JSON to the specified file. The output is according to the JSON schema located at:
194+
docs/reference-manual/native-image/assets/build-output-schema-v1.json.
193195
-H:±BuildOutputLinks Show links in build output. Default: + (enabled).
194196
-H:±BuildOutputPrefix Prefix build output with '<pid>:<image name>'. Default: - (disabled).
195197
-H:±BuildOutputProgress Report progress in build output. Default: + (enabled).

0 commit comments

Comments
 (0)