1
Fork 0

Also profile finishing the encoding.

This commit is contained in:
Camille GILLOT 2021-03-23 13:19:42 +01:00
parent df24315ddf
commit 8ee9322c10
3 changed files with 9 additions and 4 deletions

View file

@ -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(),