Skip to content

return memory.peak after calling sandboxed commands#115

Merged
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:rustwide-memory-2
Feb 11, 2026
Merged

return memory.peak after calling sandboxed commands#115
GuillaumeGomez merged 1 commit into
rust-lang:mainfrom
syphar:rustwide-memory-2

Conversation

@syphar
Copy link
Copy Markdown
Member

@syphar syphar commented Feb 11, 2026

This is related to rust-lang/docs.rs#878 (and rust-lang/docs.rs#842), where we want to get the memory usage of the build and store it.

We will already have the CommandError kind after rust-lang/docs.rs#3201, we show build durations since rust-lang/docs.rs#3172, now the only thing missing is memory usage.

I imagine this could also be useful for crater etc.

I'm not a docker pro, so I'm not 100% certain if all of this is fine. The test seem to pass without issue.

@syphar syphar self-assigned this Feb 11, 2026
@syphar syphar changed the title WIP: return memory.peak after calling sandboxed commands return memory.peak after calling sandboxed commands Feb 11, 2026
@syphar syphar marked this pull request as ready for review February 11, 2026 04:29
@syphar
Copy link
Copy Markdown
Member Author

syphar commented Feb 11, 2026

I know it's a long time ago, @emilyalbini @Nemo157 does one of you have any insight?

From my high level docker knowledge this should be fine?

@syphar syphar removed the request for review from GuillaumeGomez February 11, 2026 04:49
@syphar syphar marked this pull request as draft February 11, 2026 04:49
@syphar

This comment was marked as outdated.

Comment thread src/cmd/sandbox.rs
@GuillaumeGomez GuillaumeGomez merged commit ede1e47 into rust-lang:main Feb 11, 2026
6 of 10 checks passed
@syphar syphar deleted the rustwide-memory-2 branch February 11, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants