Add one more profiling span to add_dep

This commit is contained in:
Laurențiu Nicola 2021-04-22 21:48:17 +03:00
parent 6b187af337
commit c37ca7841c

View file

@ -239,6 +239,7 @@ impl CrateGraph {
name: CrateName,
to: CrateId,
) -> Result<(), CyclicDependenciesError> {
let _p = profile::span("add_dep");
if self.dfs_find(from, to, &mut FxHashSet::default()) {
return Err(CyclicDependenciesError {
from: (from, self[from].display_name.clone()),