Skip to content

Commit 6943021

Browse files
Log upload duration
1 parent be4e675 commit 6943021

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

collector/src/execute.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ fn to_s3(local: &Path, remote: &Path) -> anyhow::Result<()> {
3030
buffered.flush()?;
3131
}
3232

33+
let start = std::time::Instant::now();
3334
let status = Command::new("aws")
3435
.arg("s3")
3536
.arg("cp")
37+
.arg("--only-show-errors")
3638
.arg(compressed_file.path())
3739
.arg(&format!("s3://rustc-perf/{}.sz", remote.to_str().unwrap()))
3840
.status()
@@ -51,6 +53,7 @@ fn to_s3(local: &Path, remote: &Path) -> anyhow::Result<()> {
5153
status
5254
);
5355
}
56+
log::trace!("uploaded {:?} to S3 in {:?}", local, start.elapsed());
5457
Ok(())
5558
}
5659

0 commit comments

Comments
 (0)