Skip to content

Commit

Permalink
Rollup merge of rust-lang#133856 - GuillaumeGomez:update-sysinfo, r=c…
Browse files Browse the repository at this point in the history
…lubby789

Update sysinfo version to 0.33.0
  • Loading branch information
matthiaskrgr authored Dec 4, 2024
2 parents d80d2c6 + 52a6bad commit 670affb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/bootstrap/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ dependencies = [

[[package]]
name = "libc"
version = "0.2.162"
version = "0.2.167"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398"
checksum = "09d6582e104315a817dff97f75133544b2e094ee22447d2acf4a74e189ba06fc"

[[package]]
name = "libredox"
Expand Down Expand Up @@ -558,9 +558,9 @@ dependencies = [

[[package]]
name = "sysinfo"
version = "0.31.4"
version = "0.33.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "355dbe4f8799b304b05e1b0f05fc59b2a18d36645cf169607da45bde2f69a1be"
checksum = "948512566b1895f93b1592c7574baeb2de842f224f2aab158799ecadb8ebbb46"
dependencies = [
"core-foundation-sys",
"libc",
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ walkdir = "2.4"
xz2 = "0.1"

# Dependencies needed by the build-metrics feature
sysinfo = { version = "0.31.2", default-features = false, optional = true, features = ["system"] }
sysinfo = { version = "0.33.0", default-features = false, optional = true, features = ["system"] }

[target.'cfg(windows)'.dependencies.junction]
version = "1.0.0"
Expand Down
7 changes: 4 additions & 3 deletions src/bootstrap/src/utils/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl BuildMetrics {
running_steps: Vec::new(),

system_info: System::new_with_specifics(
RefreshKind::new().with_cpu(CpuRefreshKind::everything()),
RefreshKind::nothing().with_cpu(CpuRefreshKind::everything()),
),
timer_start: None,
invocation_timer_start: Instant::now(),
Expand Down Expand Up @@ -161,8 +161,9 @@ impl BuildMetrics {

let dest = build.out.join("metrics.json");

let mut system =
System::new_with_specifics(RefreshKind::new().with_cpu(CpuRefreshKind::everything()));
let mut system = System::new_with_specifics(
RefreshKind::nothing().with_cpu(CpuRefreshKind::everything()),
);
system.refresh_cpu_usage();
system.refresh_memory();

Expand Down

0 comments on commit 670affb

Please sign in to comment.