-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add SIRUN_READY_FD ready signal to exclude startup time #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9edee78
feat: add futures dependency for ready-signal select logic
rochdev d9f3e21
refactor: add ready_fd parameter to run_cmd (all callers pass None)
rochdev 973404a
test: add failing integration tests for SIRUN_READY_FD ready signal
rochdev cd7a79a
feat: implement SIRUN_READY_FD ready-signal for startup exclusion
rochdev 9c8728b
docs: document SIRUN_READY_FD environment variable
rochdev 2cd47b5
fix: user/system time cover full lifetime; remove dead rusage reset
rochdev bfedb15
chore: ignore docs/superpowers/; untrack committed spec
rochdev d40c1bc
feat: add read_child_cpu_us for mid-run CPU snapshot (Linux + macOS)
rochdev 01ffbd3
feat: subtract startup CPU from user.time/system.time at ready signal
rochdev 5e36354
test: verify cpu.pct.wall.time stays bounded with CPU-intensive ready…
rochdev 871deed
refactor: replace futures select/Either with sequential pipe read
rochdev 4fa2e86
refactor: use async_std::fs::File instead of spawn_blocking in read_o…
rochdev afee830
revert: use spawn_blocking in read_one_byte (async_std::fs::File caus…
rochdev 0500501
fix: use python3 fixture to avoid bash subprocess CPU leaking into RU…
rochdev 2dd0977
refactor: use async_std::fs::File instead of spawn_blocking in read_o…
rochdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| /docs/superpowers/ | ||
| /target | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "run": "python3 -c \"import os,time; [None for _ in range(1000000)]; os.write(int(os.environ['SIRUN_READY_FD']),b'x'); time.sleep(0.3)\"" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "run": "bash -c 'sleep 0.5; echo x >&$SIRUN_READY_FD'" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.