Skip to content

Commit

Permalink
chore: update dependency to latest (#524)
Browse files Browse the repository at this point in the history
* chore: update dependency to latest

* make clippy happy
  • Loading branch information
PureWhiteWu authored Nov 6, 2024
1 parent 34f6a10 commit 29f80e5
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 28 deletions.
63 changes: 42 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ futures = "0.3"
futures-util = "0.3"
flate2 = "1"
git2 = { version = "0.19", default-features = false }
governor = "0.6"
governor = "0.7"
h2 = "0.4"
heck = "0.5"
hex = "0.4"
Expand Down Expand Up @@ -99,7 +99,7 @@ quote = "1"
rand = "0.8"
regex = "1"
reqwest = "0.12"
run_script = "0.10"
run_script = "0.11"
rustc-hash = { version = "2", features = ["rand"] }
same-file = "1"
scopeguard = "1"
Expand All @@ -111,9 +111,9 @@ simdutf8 = "0.1"
socket2 = "0.5"
sonic-rs = "0.3"
syn = "2"
sysinfo = "0.31"
sysinfo = "0.32"
tempfile = "3"
thiserror = "1"
thiserror = "2"
tokio = "1"
tokio-stream = "0.1"
tokio-test = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion benchmark/src/perf/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub async fn record_usage(cpu_usage_list: &mut Vec<f32>, cancel: CancellationTok
loop {
tokio::select! {
_ = tokio::time::sleep(DEFAULT_INTERVAL) => {
system.refresh_processes_specifics(sysinfo::ProcessesToUpdate::Some(&[pid]), ProcessRefreshKind::new().with_cpu());
system.refresh_processes_specifics(sysinfo::ProcessesToUpdate::Some(&[pid]), true, ProcessRefreshKind::new().with_cpu());
let cpu_usage = system
.process(pid)
.unwrap()
Expand Down
4 changes: 2 additions & 2 deletions benchmark/src/perf/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ pub async fn record_usage(mem_usage_list: &mut Vec<u64>, cancel: CancellationTok
loop {
tokio::select! {
_ = tokio::time::sleep(DEFAULT_INTERVAL) => {
system.refresh_processes_specifics(sysinfo::ProcessesToUpdate::Some(&[pid]), ProcessRefreshKind::new().with_memory());
system.refresh_processes_specifics(sysinfo::ProcessesToUpdate::Some(&[pid]), true, ProcessRefreshKind::new().with_memory());
let mem_usage = system
.process(pid)
.unwrap()
.memory();
if mem_usage > DEFAULT_RSS_THRESHOLD {
mem_usage_list.push(mem_usage as u64);
mem_usage_list.push(mem_usage);
}
}
_ = cancel.cancelled() => break,
Expand Down

0 comments on commit 29f80e5

Please sign in to comment.