mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Add profiling calls
This commit is contained in:
parent
f3f39b4327
commit
b96da48809
2 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,7 @@ use hir_expand::{
|
|||
};
|
||||
use ra_arena::{map::ArenaMap, Arena};
|
||||
use ra_db::FileId;
|
||||
use ra_prof::profile;
|
||||
use ra_syntax::ast::{self, NameOwner, TypeBoundsOwner, TypeParamsOwner};
|
||||
|
||||
use crate::{
|
||||
|
@ -71,6 +72,7 @@ impl GenericParams {
|
|||
db: &impl DefDatabase,
|
||||
def: GenericDefId,
|
||||
) -> Arc<GenericParams> {
|
||||
let _p = profile("generic_params_query");
|
||||
let (params, _source_map) = GenericParams::new(db, def);
|
||||
Arc::new(params)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue