From f897669723729c3470d12ddd239e17736ee42c76 Mon Sep 17 00:00:00 2001 From: David Kozak Date: Thu, 11 Jan 2024 15:12:01 +0100 Subject: [PATCH] formatting updates --- .../src/com/oracle/svm/driver/NativeImage.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java b/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java index 979a0eba6054..9166d3b6f9df 100644 --- a/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java +++ b/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java @@ -1701,10 +1701,10 @@ protected int buildImage(List javaArgs, LinkedHashSet cp, LinkedHa try { p = pb.inheritIO().start(); imageBuilderPid = p.pid(); - System.out.println("Pid of the image builder is " + imageBuilderPid); - var prophetPluginHome = Objects.requireNonNull(System.getenv("PROPHET_PLUGIN_HOME"),"PROPHET_PLUGIN_HOME not set"); - Path.of(prophetPluginHome,"graal-prophet-utils","measure_rss.sh") - var rssWatcher = new ProcessBuilder().command("/Users/dkozak/Projects/graal-prophet/measure_rss.sh", imageBuilderPid + "").inheritIO().start(); + System.out.println("PID of the image builder is " + imageBuilderPid); + var prophetPluginHome = Objects.requireNonNull(System.getenv("PROPHET_PLUGIN_HOME"), "PROPHET_PLUGIN_HOME not set"); + var scriptPath = Path.of(prophetPluginHome, "graal-prophet-utils", "measure_rss.sh"); + var rssWatcher = new ProcessBuilder().command(scriptPath.toString(), imageBuilderPid + "").inheritIO().start(); installImageBuilderCleanupHook(p); var before = System.currentTimeMillis(); int resCode = p.waitFor();