From fae1d999c0e6f06ab387581e07ae4226e275e821 Mon Sep 17 00:00:00 2001 From: acheronfail Date: Mon, 15 Jan 2024 21:00:52 +1030 Subject: [PATCH] upgrade to released version of max_rss --- Dockerfile | 2 +- justfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 64a6d08..62f01fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,6 @@ RUN cd && curl -fSL "$(curl -fSL https://ziglang.org/download/index.json | jq -r && rm zig.tar.xz ENV PATH="/root/.zig:$PATH" -RUN cargo install --git https://github.com/acheronfail/max_rss.git --rev fae12f9 +RUN cargo install max_rss --version 0.1.0 WORKDIR /var/count diff --git a/justfile b/justfile index f4e5bca..f1a32f9 100644 --- a/justfile +++ b/justfile @@ -93,8 +93,8 @@ measure what: jq '. += {"size":"'"$(cat SIZE)"'"}' "$out" | sponge "$out" fi - max_rss $(cat CMD) - jq '. += {"rss":'$(jq '.max_rss' ./max_rss.json)'}' "$out" | sponge "$out" + max_rss -o STATS -- $(cat CMD) + jq '. += {"rss":'$(jq '.max_rss' STATS)'}' "$out" | sponge "$out" measure-all: #!/usr/bin/env bash