Skip to content

Conversation

graalvmbot
Copy link
Collaborator

No description provided.

@@ -447,12 +447,11 @@ public void printCreationEnd(int imageSize, int numHeapObjects, long imageHeapSi
.doclink("code area", "#glossary-code-area").a(":%,10d compilation units", numCompilations).println();
EconomicMap<Pair<String, String>, ResourceStorageEntry> resources = Resources.singleton().resources();
int numResources = resources.size();
recordJsonMetrics(ImageDetailKey.IMAGE_HEAP_RESOURCE_COUNT, numResources);
recordJsonResourceMetrics(resources);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fniephaus by removing recordJsonResourceMetrics you no longer generate the image_details -> image_heap -> resources -> bytes value in the JSON output and the produced JSON would therefore no longer be a according to schema here:
https://github.com/oracle/graal/blob/fniephaus/GR-39497/json-build-output/docs/reference-manual/native-image/assets/build-output-schema-v1.json#L259..L262

So either, drop it from the schema too or keep the method.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, definitely. Thanks! That wasn't in my version of the checkout when I last looked. Particularly 5e652cd

jerboaa and others added 7 commits June 30, 2022 11:29
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.
and rename `recordJsonMetrics` to `recordJsonMetric`.
@graalvmbot graalvmbot force-pushed the fniephaus/GR-39497/json-build-output branch from d64ad84 to 439a0fe Compare June 30, 2022 09:33
@fniephaus fniephaus self-assigned this Jun 30, 2022
@fniephaus fniephaus added this to the 22.3 milestone Jun 30, 2022
@graalvmbot graalvmbot force-pushed the fniephaus/GR-39497/json-build-output branch from ada1b8c to 67c2f2c Compare June 30, 2022 13:48
@graalvmbot graalvmbot force-pushed the fniephaus/GR-39497/json-build-output branch from 67c2f2c to 13dbf2a Compare June 30, 2022 15:43
@graalvmbot graalvmbot merged commit a16f0f9 into master Jul 1, 2022
@graalvmbot graalvmbot deleted the fniephaus/GR-39497/json-build-output branch July 1, 2022 02:48
@fniephaus fniephaus assigned jerboaa and unassigned fniephaus Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

3 participants