Also profile finishing the encoding.
This commit is contained in:
parent
df24315ddf
commit
8ee9322c10
3 changed files with 9 additions and 4 deletions
|
@ -49,7 +49,7 @@ pub fn save_dep_graph(tcx: TyCtxt<'_>) {
|
|||
},
|
||||
move || {
|
||||
sess.time("incr_comp_persist_dep_graph", || {
|
||||
if let Err(err) = tcx.dep_graph.encode() {
|
||||
if let Err(err) = tcx.dep_graph.encode(&tcx.sess.prof) {
|
||||
sess.err(&format!(
|
||||
"failed to write dependency graph to `{}`: {}",
|
||||
staging_dep_graph_path.display(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue