-
Notifications
You must be signed in to change notification settings - Fork 7
feat: add perf support in walltime #73
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
not-matthias
merged 7 commits into
main
from
cod-674-collect-profiles-while-benchmarks-are-running
May 7, 2025
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9e9db5b
chore: dont use regex in perf map harvest
not-matthias 0790357
feat: add fifo ipc
not-matthias 3871787
feat(runner): add perf integration for rust
not-matthias 476a551
feat(runner): add perf integration for python
not-matthias 308bb0f
chore: Release codspeed-runner version 3.6.0-beta.2
adriencaccia 8e4a390
feat: install perf on setup
not-matthias 4d6c062
fix: use bash to ensure correct behavior across systems
not-matthias 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
Large diffs are not rendered by default.
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 |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| [toolchain] | ||
| channel = "1.84.0" | ||
| channel = "1.85.0" | ||
| components = ["rustfmt", "clippy"] |
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 |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ pub mod env; | |
| pub mod get_bench_command; | ||
| pub mod profile_folder; | ||
| pub mod run_command_with_log_pipe; | ||
| pub mod setup; | ||
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,32 @@ | ||
| use crate::prelude::*; | ||
| use log::{debug, info}; | ||
| use std::process::{Command, Stdio}; | ||
|
|
||
| /// Run a command with sudo if available | ||
| pub fn run_with_sudo(command_args: &[&str]) -> Result<()> { | ||
| let use_sudo = Command::new("sudo") | ||
| // `sudo true` will fail if sudo does not exist or the current user does not have sudo privileges | ||
| .arg("true") | ||
| .stdout(Stdio::null()) | ||
| .status() | ||
| .is_ok_and(|status| status.success()); | ||
| let mut command_args: Vec<&str> = command_args.into(); | ||
| if use_sudo { | ||
| command_args.insert(0, "sudo"); | ||
| } | ||
|
|
||
| debug!("Running command: {}", command_args.join(" ")); | ||
| let output = Command::new(command_args[0]) | ||
| .args(&command_args[1..]) | ||
| .stdout(Stdio::piped()) | ||
| .output() | ||
| .map_err(|_| anyhow!("Failed to execute command: {}", command_args.join(" ")))?; | ||
|
|
||
| if !output.status.success() { | ||
| info!("stdout: {}", String::from_utf8_lossy(&output.stdout)); | ||
| error!("stderr: {}", String::from_utf8_lossy(&output.stderr)); | ||
| bail!("Failed to execute command: {}", command_args.join(" ")); | ||
| } | ||
|
|
||
| Ok(()) | ||
| } |
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
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
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,4 +1,4 @@ | ||
| pub mod executor; | ||
| mod helpers; | ||
| pub mod helpers; | ||
| mod measure; | ||
| mod setup; |
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
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 @@ | ||
| pub mod executor; | ||
| pub mod perf; |
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.