mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Add one more profiling span to add_dep
This commit is contained in:
parent
6b187af337
commit
c37ca7841c
@ -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…
x
Reference in New Issue
Block a user