Skip to content

Commit

Permalink
update max_rss to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Jan 16, 2024
1 parent fae19d4 commit fae1ca0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 max_rss --version 0.1.0
RUN cargo install max_rss --version 0.2.1

WORKDIR /var/count
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ measure what:
fi

max_rss -o STATS -- $(cat CMD)
jq '. += {"rss":'$(jq '.max_rss' STATS)'}' "$out" | sponge "$out"
jq '. += {"max_rss": '$(cat STATS)'}' "$out" | sponge "$out"

measure-all:
#!/usr/bin/env bash
Expand Down
4 changes: 2 additions & 2 deletions scripts/summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ ${markdownTable(
['#', 'name', 'rss'],
...results
.slice()
.sort((a, b) => a.rss - b.rss)
.map(({ name, rss }, i) => [i + 1, wrap(name), formatSize(rss, { minimumFractionDigits: 7 })]),
.sort((a, b) => a.max_rss.max_rss - b.max_rss.max_rss)
.map(({ name, max_rss }, i) => [i + 1, wrap(name), formatSize(max_rss.max_rss, { minimumFractionDigits: 7 })]),
],
{
align: ['l', 'l', 'r'],
Expand Down

0 comments on commit fae1ca0

Please sign in to comment.