Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,945 changes: 690 additions & 1,255 deletions Cargo.lock

Large diffs are not rendered by default.

115 changes: 53 additions & 62 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,106 +15,101 @@ anyhow = { workspace = true }
clap = { workspace = true, features = ["env", "color"] }
itertools = { workspace = true }
log = { workspace = true }
rand = "0.8.5"
rayon = "1.10"
regex = "1.10.2"
rand = "0.10"
rayon = "1.12"
regex = "1.12.3"
semver = "1.0"
reqwest = { version = "0.11.22", features = [
"json",
"stream",
"native-tls-vendored",
] }
reqwest-middleware = "0.2.4"
reqwest-retry = "0.3.0"
reqwest = { version = "0.12", features = ["json", "stream", "native-tls-vendored"] }
reqwest-middleware = { version = "0.4", features = ["json"] }
reqwest-retry = "0.7"
serde = { workspace = true }
serde_json = { workspace = true, features = ["preserve_order"] }
url = "2.4.1"
sha256 = "1.4.0"
url = "2.5.8"
sha256 = "1.6"
tokio = { version = "1", features = ["macros", "rt"] }
tokio-tar = { package = "astral-tokio-tar", version = "0.6.0" }
tokio-util = "0.7.16"
md5 = "0.7.0"
base64 = "0.21.0"
async-compression = { version = "0.4.5", features = ["tokio", "gzip"] }
tokio-tar = { package = "astral-tokio-tar", version = "0.6.2" }
tokio-util = "0.7.18"
md5 = "0.8"
base64 = "0.22.1"
async-compression = { version = "0.4.42", features = ["tokio", "gzip"] }
schemars = "1.2.1"
simplelog = { version = "0.12.1", default-features = false, features = [
"termcolor",
] }
simplelog = { version = "0.12.2", default-features = false, features = ["termcolor"] }
tempfile = { workspace = true }
git2 = "0.20.4"
git2 = "0.21"
nestify = "0.3.3"
gql_client = { git = "https://github.com/CodSpeedHQ/gql-client-rs", rev = "617a889e1d9089b5aa36679f1a5aa13ad01993ae" }
serde_yaml = "0.9.34"
sysinfo = { version = "0.33.1", features = ["serde"] }
indicatif = "0.17.8"
console = "0.15.8"
async-trait = "0.1.82"
sysinfo = { version = "0.37", features = ["serde"] }
indicatif = "0.18"
console = "0.16"
async-trait = "0.1.89"
libc = { workspace = true }
bincode = "1.3.3"
object = "0.36.7"
bincode = "1.3.3" # Pinned to 1.x: 2.0 changes the wire format and serde integration
object = "0.39"
linux-perf-data = { git = "https://github.com/mstange/linux-perf-data.git", rev = "da5bce4b9fb724e84b1eea0cb6ab9c8a291bc676", features = [
"zstd",
"zstd",
] } # unreleased main as of 2026-03-19
debugid = "0.8.0"
memmap2 = "0.9.5"
nix = { version = "0.31.1", features = ["fs", "time", "user"] }
futures = "0.3.31"
memmap2 = "0.9.10"
nix = { version = "0.31.3", features = ["fs", "time", "user"] }
futures = "0.3.32"
runner-shared = { path = "crates/runner-shared" }
memtrack = { path = "crates/memtrack", default-features = false }
exec-harness = { path = "crates/exec-harness" }
instrument-hooks-bindings = { path = "crates/instrument-hooks-bindings" }
ipc-channel = "0.18"
shellexpand = { version = "3.1.1", features = ["tilde"] }
addr2line = "0.25"
gimli = "0.32"
open = "5.3.2"
ipc-channel = { workspace = true }
shellexpand = { version = "3.1.2", features = ["tilde"] }
addr2line = "0.26"
gimli = "0.33"
open = "5.3.5"
axoupdater = { version = "0.10.0", features = ["github_releases"] }
tabled = { version = "0.20.0", features = ["ansi"] }
shell-words = "1.1.0"
rmp-serde = "1.3.0"
uuid = { version = "1.21.0", features = ["v4"] }
shell-words = "1.1.1"
rmp-serde = "1.3.1"
uuid = { version = "1.23.1", features = ["v4"] }
which = "8.0.2"
crc32fast = "1.5.0"
samply = { git = "https://github.com/CodSpeedHQ/samply-codspeed", branch = "codspeed" }

[target.'cfg(target_os = "linux")'.dependencies]
procfs = "0.17.0"
procfs = "0.18"

[dev-dependencies]
temp-env = { version = "0.3.6", features = ["async_closure"] }
insta = { version = "1.29.0", features = ["json", "redactions"] }
test-log = "0.2.19"
test-with = { version = "0.15", default-features = false, features = [] }
rstest = { version = "0.25.0", default-features = false }
insta = { workspace = true, features = ["json", "redactions"] }
test-log = { workspace = true }
test-with = { workspace = true }
rstest = { workspace = true }
rstest_reuse = "0.7.0"
shell-quote = "0.7.2"
assert_cmd = "2.0.16"
assert_cmd = "2.2"
predicates = "3.1.4"
strum = { version = "0.28.0", features = ["derive"] }

[workspace]
members = [
"crates/runner-shared",
"crates/memtrack",
"crates/exec-harness",
"crates/instrument-hooks-bindings",
"crates/runner-shared",
"crates/memtrack",
"crates/exec-harness",
"crates/instrument-hooks-bindings",
]

[workspace.dependencies]
anyhow = "1.0"
clap = { version = "4.5", features = ["derive", "env"] }
clap = { version = "4.6", features = ["derive", "env"] }
libc = "0.2"
log = "0.4.28"
serde_json = "1.0"
serde = { version = "1.0.228", features = ["derive"] }
ipc-channel = "0.18"
ipc-channel = "0.20"
itertools = "0.14.0"
env_logger = "0.11.8"
tempfile = "3.10.0"
object = { version = "0.36", default-features = false, features = [
"read_core",
"elf",
] }
env_logger = "0.11.10"
tempfile = "3.27.0"
object = { version = "0.39", default-features = false, features = ["read_core", "elf"] }
insta = { version = "1.47", default-features = false }
rstest = { version = "0.26", default-features = false }
test-log = "0.2.20"
test-with = { version = "0.16", default-features = false, features = [] }

[workspace.metadata.release]
sign-tag = true
Expand All @@ -132,11 +127,7 @@ lto = "thin"
strip = true

[package.metadata.dist]
targets = [
"aarch64-apple-darwin",
"aarch64-unknown-linux-musl",
"x86_64-unknown-linux-musl",
]
targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-musl", "x86_64-unknown-linux-musl"]
binaries.aarch64-apple-darwin = ["codspeed"]
binaries.aarch64-unknown-linux-musl = ["codspeed"]
binaries.x86_64-unknown-linux-musl = ["codspeed"]
2 changes: 1 addition & 1 deletion crates/exec-harness/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env_logger = { workspace = true }
clap = { workspace = true }
serde_json = { workspace = true }
serde = { workspace = true }
humantime = "2.1"
humantime = "2.3"
runner-shared = { path = "../runner-shared" }
tempfile = { workspace = true }
object = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/instrument-hooks-bindings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2024"

[dependencies]
nix = { version = "0.31.1", features = ["time"] }
nix = { version = "0.31.3", features = ["time"] }

[build-dependencies]
cc = "1.0"
16 changes: 8 additions & 8 deletions crates/memtrack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ runner-shared = { path = "../runner-shared" }
ipc-channel = { workspace = true }
static_assertions = "1.1"
itertools = { workspace = true }
paste = "1.0"
libbpf-rs = { version = "0.25.0", features = ["vendored"], optional = true }
paste = "1.0.15"
libbpf-rs = { version = "0.26", features = ["vendored"], optional = true }
glob = "0.3.3"
object = { workspace = true }

[build-dependencies]
libbpf-cargo = { version = "0.25.0", optional = true }
libbpf-cargo = { version = "0.26", optional = true }
vmlinux = { git = "https://github.com/libbpf/vmlinux.h.git", rev = "991dd4b8dfd8c9d62ce8999521b24f61d9b7fc52", optional = true }
bindgen = "0.71"
bindgen = "0.72"

[dev-dependencies]
tempfile = { workspace = true }
rstest = "0.21"
test-log = "0.2"
insta = { version = "1.46.1", default-features = false }
test-with = "0.14"
rstest = { workspace = true }
test-log = { workspace = true }
insta = { workspace = true }
test-with = { workspace = true }

[package.metadata.dist]
targets = ["aarch64-unknown-linux-gnu", "x86_64-unknown-linux-gnu"]
Expand Down
7 changes: 4 additions & 3 deletions crates/runner-shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ edition = "2024"
anyhow = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
# Pinned to 1.x: 2.0 changes the wire format and serde integration
bincode = "1.3"
itertools = { workspace = true }
log = { workspace = true }
rmp = "0.8.14"
rmp-serde = "1.3.0"
rmp = "0.8.15"
rmp-serde = "1.3.1"
libc = { workspace = true }
zstd = "0.13"
zstd = "0.13.3"

[dev-dependencies]
divan = { version = "4.2.0", package = "codspeed-divan-compat" }
Expand Down
2 changes: 1 addition & 1 deletion src/cli/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fn detect_repository() -> Option<ParsedRepository> {
let root_path = find_repository_root(&current_dir)?;
let git_repository = Repository::open(&root_path).ok()?;
let remote = git_repository.find_remote("origin").ok()?;
let url = remote.url()?;
let url = remote.url().ok()?;
parse_repository_from_remote(url).ok()
}

Expand Down
6 changes: 3 additions & 3 deletions src/executor/helpers/profile_folder.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
use crate::prelude::*;

use rand::distributions::Alphanumeric;
use rand::distributions::DistString;
use rand::distr::Alphanumeric;
use rand::distr::SampleString;
use std::env;
use std::fs;
use std::path::PathBuf;

pub fn create_profile_folder() -> Result<PathBuf> {
let folder_name = format!(
"profile.{}.out",
Alphanumeric.sample_string(&mut rand::thread_rng(), 10)
Alphanumeric.sample_string(&mut rand::rng(), 10)
);
let mut folder_path = env::temp_dir();
folder_path.push(folder_name);
Expand Down
5 changes: 2 additions & 3 deletions src/system/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ impl SystemInfo {
.with_cpu(CpuRefreshKind::everything())
.with_memory(MemoryRefreshKind::everything()),
);
let cpu_cores = s
.physical_core_count()
.ok_or(anyhow!("Failed to get CPU core count"))?;
let cpu_cores =
System::physical_core_count().ok_or(anyhow!("Failed to get CPU core count"))?;
let total_memory_gb = s.total_memory().div_ceil(1024_u64.pow(3));

// take the first CPU to get the brand, name and vendor id
Expand Down