From 8e80a2706ff5c76a431e513cc9616c324637d95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Rakic?= Date: Thu, 16 Jun 2022 11:17:31 +0200 Subject: [PATCH] increase tracelog buffer sizes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise a lot of the benchmarks trigger errors and warnings about lost events, for example (pardon my french ...xperf): ``` xperf: error: rustc-perf-counters: Le nom d'instance passé n'a pas été reconnu valide par un fournisseur de données WMI. (0x1069). xperf: warning: Session "rustc-perf-counters" lost 5204 events. ``` --- collector/src/rustc-fake.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/collector/src/rustc-fake.rs b/collector/src/rustc-fake.rs index bcdaf2de6..b92d6c8a1 100644 --- a/collector/src/rustc-fake.rs +++ b/collector/src/rustc-fake.rs @@ -150,6 +150,12 @@ fn main() { "CSWITCH+PROC_THREAD+LOADER", "-PMC", "InstructionRetired,TotalCycles:CSWITCH", + "-b", + "1024", + "-min", + "512", + "-max", + "2048", ]); let status = cmd.status().expect("failed to spawn tracelog"); assert!(status.success(), "tracelog did not complete successfully");