mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
Add one more profiling span to add_dep
This commit is contained in:
parent
6b187af337
commit
c37ca7841c
1 changed files with 1 additions and 0 deletions
|
@ -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()),
|
||||||
|
|
Loading…
Reference in a new issue