diff options
author | Laurențiu Nicola <[email protected]> | 2021-04-22 19:48:17 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2021-04-22 19:48:17 +0100 |
commit | c37ca7841cb42b659eb2ed4b2a095a283db5dce7 (patch) | |
tree | e4320984e794f1c7df79db4acfa594a034a30c5c /crates/base_db | |
parent | 6b187af33712498196233883f8a20588eb314685 (diff) |
Add one more profiling span to add_dep
Diffstat (limited to 'crates/base_db')
-rw-r--r-- | crates/base_db/src/input.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/base_db/src/input.rs b/crates/base_db/src/input.rs index 07628935f..0ef77ef5d 100644 --- a/crates/base_db/src/input.rs +++ b/crates/base_db/src/input.rs | |||
@@ -239,6 +239,7 @@ impl CrateGraph { | |||
239 | name: CrateName, | 239 | name: CrateName, |
240 | to: CrateId, | 240 | to: CrateId, |
241 | ) -> Result<(), CyclicDependenciesError> { | 241 | ) -> Result<(), CyclicDependenciesError> { |
242 | let _p = profile::span("add_dep"); | ||
242 | if self.dfs_find(from, to, &mut FxHashSet::default()) { | 243 | if self.dfs_find(from, to, &mut FxHashSet::default()) { |
243 | return Err(CyclicDependenciesError { | 244 | return Err(CyclicDependenciesError { |
244 | from: (from, self[from].display_name.clone()), | 245 | from: (from, self[from].display_name.clone()), |