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, name: CrateName,
to: CrateId, to: CrateId,
) -> Result<(), CyclicDependenciesError> { ) -> Result<(), CyclicDependenciesError> {
let _p = profile::span("add_dep");
if self.dfs_find(from, to, &mut FxHashSet::default()) { if self.dfs_find(from, to, &mut FxHashSet::default()) {
return Err(CyclicDependenciesError { return Err(CyclicDependenciesError {
from: (from, self[from].display_name.clone()), from: (from, self[from].display_name.clone()),