diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-07-23 16:25:58 +0200 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-10-07 14:22:29 +0200 |
| commit | 947a33bf206e8bec15a9734e217cd540b8a2fb5c (patch) | |
| tree | a2c210053fd367e15fe57c2ea2a3288edbbfef48 /compiler/rustc_incremental | |
| parent | ca8078d7b2e40c24a39e5fe2a910afef4c91ebfc (diff) | |
| download | rust-947a33bf206e8bec15a9734e217cd540b8a2fb5c.tar.gz rust-947a33bf206e8bec15a9734e217cd540b8a2fb5c.zip | |
Add support for artifact size profiling
Diffstat (limited to 'compiler/rustc_incremental')
| -rw-r--r-- | compiler/rustc_incremental/src/persist/file_format.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_incremental/src/persist/file_format.rs b/compiler/rustc_incremental/src/persist/file_format.rs index 572a4fc6971..392c5bdc15a 100644 --- a/compiler/rustc_incremental/src/persist/file_format.rs +++ b/compiler/rustc_incremental/src/persist/file_format.rs @@ -95,6 +95,12 @@ where return; } + sess.prof.artifact_size( + &name.replace(' ', "_"), + path_buf.file_name().unwrap().to_string_lossy(), + encoder.position() as u64, + ); + debug!("save: data written to disk successfully"); } |
