diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 414de27..d693b2f 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -74118,6 +74118,7 @@ exports.generateReports = exports.setUpNativeImageBuildReports = void 0; const c = __importStar(__nccwpck_require__(9042)); const core = __importStar(__nccwpck_require__(2186)); const fs = __importStar(__nccwpck_require__(7147)); +const github = __importStar(__nccwpck_require__(5438)); const path_1 = __nccwpck_require__(1017); const os_1 = __nccwpck_require__(2037); const utils_1 = __nccwpck_require__(1314); @@ -74191,6 +74192,7 @@ function setNativeImageOption(value) { } } function createReport(data) { + const context = github.context; const info = data.general_info; const analysis = data.analysis_results; const details = data.image_details; @@ -74201,40 +74203,149 @@ function createReport(data) { debugInfoBytes; let debugInfoLine = ''; if (details.debug_info) { - debugInfoLine = `\n| [Debug info](${DOCS_BASE}#glossary-debug-info) | ${bytesToHuman(debugInfoBytes)} | ${toPercent(debugInfoBytes, details.total_bytes)} | |`; + debugInfoLine = ` +
| GraalVM version | +${info.graalvm_version} | +C compiler | +${info.c_compiler} | +
| Java version | +${info.java_version} | +Garbage collector | +${info.garbage_collector} | +
| Category | +Types | +in % | +Fields | +in % | +Methods | +in % | +
|---|---|---|---|---|---|---|
| Reachable | +${analysis.classes.reachable} | +${toPercent(analysis.classes.reachable, analysis.classes.total)} | +${analysis.fields.reachable} | +${toPercent(analysis.fields.reachable, analysis.fields.total)} | +${analysis.methods.reachable} | +${toPercent(analysis.methods.reachable, analysis.methods.total)} | +
| Reflection | +${analysis.classes.reflection} | +${toPercent(analysis.classes.reflection, analysis.classes.total)} | +${analysis.fields.reflection} | +${toPercent(analysis.fields.reflection, analysis.fields.total)} | +${analysis.methods.reflection} | +${toPercent(analysis.methods.reflection, analysis.methods.total)} | +
| JNI | +${analysis.classes.jni} | +${toPercent(analysis.classes.jni, analysis.classes.total)} | +${analysis.fields.jni} | +${toPercent(analysis.fields.jni, analysis.fields.total)} | +${analysis.methods.jni} | +${toPercent(analysis.methods.jni, analysis.methods.total)} | +
| Loaded | +${analysis.classes.total} | +100.000% | +${analysis.fields.total} | +100.000% | +${analysis.methods.total} | +100.000% | +
| Category | +Size | +in % | +Details | +
|---|---|---|---|
| Code area | +${bytesToHuman(details.code_area.bytes)} | +${toPercent(details.code_area.bytes, details.total_bytes)} | +${details.code_area.compilation_units} compilation units | +
| Image heap | +${bytesToHuman(details.image_heap.bytes)} | +${toPercent(details.image_heap.bytes, details.total_bytes)} | +${bytesToHuman(details.image_heap.resources.bytes)} for ${details.image_heap.resources.count} resources | +
| Other data | +${bytesToHuman(otherBytes)} | +${toPercent(otherBytes, details.total_bytes)} | ++ |
| Total | +${bytesToHuman(details.total_bytes)} | +100.000% | ++ |
| Garbage collection | +${resources.garbage_collection.total_secs.toFixed(2)}s in ${resources.garbage_collection.count} GCs | +
| Peak RSS | +${bytesToHuman(resources.memory.peak_rss_bytes)} (${toPercent(resources.memory.peak_rss_bytes, resources.memory.system_total)} of ${bytesToHuman(resources.memory.system_total)} system memory) | +
| CPU load | +${resources.cpu.load.toFixed(3)} (${toPercent(resources.cpu.load, resources.cpu.total_cores)} of ${resources.cpu.total_cores} CPU cores) | +
| GraalVM version | +${info.graalvm_version} | +C compiler | +${info.c_compiler} | +
| Java version | +${info.java_version} | +Garbage collector | +${info.garbage_collector} | +
| Category | +Types | +in % | +Fields | +in % | +Methods | +in % | +
|---|---|---|---|---|---|---|
| Reachable | +${analysis.classes.reachable} | +${toPercent(analysis.classes.reachable, analysis.classes.total)} | +${analysis.fields.reachable} | +${toPercent(analysis.fields.reachable, analysis.fields.total)} | +${analysis.methods.reachable} | +${toPercent(analysis.methods.reachable, analysis.methods.total)} | +
| Reflection | +${analysis.classes.reflection} | +${toPercent(analysis.classes.reflection, analysis.classes.total)} | +${analysis.fields.reflection} | +${toPercent(analysis.fields.reflection, analysis.fields.total)} | +${analysis.methods.reflection} | +${toPercent(analysis.methods.reflection, analysis.methods.total)} | +
| JNI | +${analysis.classes.jni} | +${toPercent(analysis.classes.jni, analysis.classes.total)} | +${analysis.fields.jni} | +${toPercent(analysis.fields.jni, analysis.fields.total)} | +${analysis.methods.jni} | +${toPercent(analysis.methods.jni, analysis.methods.total)} | +
| Loaded | +${analysis.classes.total} | +100.000% | +${analysis.fields.total} | +100.000% | +${analysis.methods.total} | +100.000% | +
| Category | +Size | +in % | +Details | +
|---|---|---|---|
| Code area | +${bytesToHuman(details.code_area.bytes)} | +${toPercent(details.code_area.bytes, details.total_bytes)} | +${details.code_area.compilation_units} compilation units | +
| Image heap | +${bytesToHuman(details.image_heap.bytes)} | +${toPercent(details.image_heap.bytes, details.total_bytes)} | +${bytesToHuman(details.image_heap.resources.bytes)} for ${details.image_heap.resources.count} resources | +
| Other data | +${bytesToHuman(otherBytes)} | +${toPercent(otherBytes, details.total_bytes)} | ++ |
| Total | +${bytesToHuman(details.total_bytes)} | +100.000% | ++ |
| Garbage collection | +${resources.garbage_collection.total_secs.toFixed(2)}s in ${resources.garbage_collection.count} GCs | +
| Peak RSS | +${bytesToHuman(resources.memory.peak_rss_bytes)} (${toPercent(resources.memory.peak_rss_bytes, resources.memory.system_total)} of ${bytesToHuman(resources.memory.system_total)} system memory) | +
| CPU load | +${resources.cpu.load.toFixed(3)} (${toPercent(resources.cpu.load, resources.cpu.total_cores)} of ${resources.cpu.total_cores} CPU cores) | +
| GraalVM version | +${info.graalvm_version} | +C compiler | +${info.c_compiler} | +
| Java version | +${info.java_version} | +Garbage collector | +${info.garbage_collector} | +
| Category | +Types | +in % | +Fields | +in % | +Methods | +in % | +
|---|---|---|---|---|---|---|
| Reachable | +${analysis.classes.reachable} | +${toPercent( + analysis.classes.reachable, + analysis.classes.total + )} | +${analysis.fields.reachable} | +${toPercent( + analysis.fields.reachable, + analysis.fields.total + )} | +${analysis.methods.reachable} | +${toPercent( + analysis.methods.reachable, + analysis.methods.total + )} | +
| Reflection | +${analysis.classes.reflection} | +${toPercent( + analysis.classes.reflection, + analysis.classes.total + )} | +${analysis.fields.reflection} | +${toPercent( + analysis.fields.reflection, + analysis.fields.total + )} | +${analysis.methods.reflection} | +${toPercent( + analysis.methods.reflection, + analysis.methods.total + )} | +
| JNI | +${analysis.classes.jni} | +${toPercent( + analysis.classes.jni, + analysis.classes.total + )} | +${analysis.fields.jni} | +${toPercent( + analysis.fields.jni, + analysis.fields.total + )} | +${analysis.methods.jni} | +${toPercent( + analysis.methods.jni, + analysis.methods.total + )} | +
| Loaded | +${analysis.classes.total} | +100.000% | +${analysis.fields.total} | +100.000% | +${analysis.methods.total} | +100.000% | +
| Category | +Size | +in % | +Details | +
|---|---|---|---|
| Code area | +${bytesToHuman(details.code_area.bytes)} | +${toPercent( + details.code_area.bytes, + details.total_bytes + )} | +${ + details.code_area.compilation_units + } compilation units | +
| Image heap | +${bytesToHuman(details.image_heap.bytes)} | +${toPercent( + details.image_heap.bytes, + details.total_bytes + )} | +${bytesToHuman( + details.image_heap.resources.bytes + )} for ${details.image_heap.resources.count} resources | +
| Other data | +${bytesToHuman(otherBytes)} | +${toPercent(otherBytes, details.total_bytes)} | ++ |
| Total | +${bytesToHuman( + details.total_bytes + )} | +100.000% | ++ |
| Garbage collection | +${resources.garbage_collection.total_secs.toFixed( + 2 + )}s in ${resources.garbage_collection.count} GCs | +
| Peak RSS | +${bytesToHuman( + resources.memory.peak_rss_bytes + )} (${toPercent( + resources.memory.peak_rss_bytes, + resources.memory.system_total + )} of ${bytesToHuman(resources.memory.system_total)} system memory) | +
| CPU load | +${resources.cpu.load.toFixed(3)} (${toPercent( + resources.cpu.load, resources.cpu.total_cores - } CPU cores) | + )} of ${resources.cpu.total_cores} CPU cores) | +