mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Fix memory usage calculation's queries list
This commit is contained in:
parent
89c0ffa6b0
commit
1fae57fa55
2 changed files with 49 additions and 21 deletions
|
@ -4,35 +4,43 @@
|
||||||
//!
|
//!
|
||||||
//! But we need this for at least LRU caching at the query level.
|
//! But we need this for at least LRU caching at the query level.
|
||||||
pub use hir_def::db::{
|
pub use hir_def::db::{
|
||||||
AttrsQuery, BlockDefMapQuery, BlockItemTreeQuery, BodyQuery, BodyWithSourceMapQuery,
|
AttrsQuery, BlockDefMapQuery, BlockItemTreeQuery, BlockItemTreeWithSourceMapQuery, BodyQuery,
|
||||||
ConstDataQuery, ConstVisibilityQuery, CrateDefMapQuery, CrateLangItemsQuery,
|
BodyWithSourceMapQuery, ConstDataQuery, ConstVisibilityQuery, CrateDefMapQuery,
|
||||||
CrateNotableTraitsQuery, CrateSupportsNoStdQuery, DefDatabase, DefDatabaseStorage,
|
CrateLangItemsQuery, CrateNotableTraitsQuery, CrateSupportsNoStdQuery, DefDatabase,
|
||||||
EnumDataQuery, EnumVariantDataWithDiagnosticsQuery, ExprScopesQuery, ExternCrateDeclDataQuery,
|
DefDatabaseStorage, EnumDataQuery, EnumVariantDataWithDiagnosticsQuery,
|
||||||
FieldVisibilitiesQuery, FieldsAttrsQuery, FieldsAttrsSourceMapQuery, FileItemTreeQuery,
|
ExpandProcAttrMacrosQuery, ExprScopesQuery, ExternCrateDeclDataQuery, FieldVisibilitiesQuery,
|
||||||
FunctionDataQuery, FunctionVisibilityQuery, GenericParamsQuery, ImplDataWithDiagnosticsQuery,
|
FieldsAttrsQuery, FieldsAttrsSourceMapQuery, FileItemTreeQuery, FileItemTreeWithSourceMapQuery,
|
||||||
ImportMapQuery, InternAnonymousConstQuery, InternBlockQuery, InternConstQuery, InternDatabase,
|
FunctionDataQuery, FunctionVisibilityQuery, GenericParamsQuery,
|
||||||
InternDatabaseStorage, InternEnumQuery, InternExternBlockQuery, InternExternCrateQuery,
|
GenericParamsWithSourceMapQuery, ImplDataWithDiagnosticsQuery, ImportMapQuery,
|
||||||
InternFunctionQuery, InternImplQuery, InternInTypeConstQuery, InternMacro2Query,
|
IncludeMacroInvocQuery, InternAnonymousConstQuery, InternBlockQuery, InternConstQuery,
|
||||||
InternMacroRulesQuery, InternProcMacroQuery, InternStaticQuery, InternStructQuery,
|
InternDatabase, InternDatabaseStorage, InternEnumQuery, InternExternBlockQuery,
|
||||||
InternTraitAliasQuery, InternTraitQuery, InternTypeAliasQuery, InternUnionQuery,
|
InternExternCrateQuery, InternFunctionQuery, InternImplQuery, InternInTypeConstQuery,
|
||||||
InternUseQuery, LangItemQuery, Macro2DataQuery, MacroRulesDataQuery, ProcMacroDataQuery,
|
InternMacro2Query, InternMacroRulesQuery, InternProcMacroQuery, InternStaticQuery,
|
||||||
StaticDataQuery, StructDataWithDiagnosticsQuery, TraitAliasDataQuery,
|
InternStructQuery, InternTraitAliasQuery, InternTraitQuery, InternTypeAliasQuery,
|
||||||
TraitDataWithDiagnosticsQuery, TypeAliasDataQuery, UnionDataWithDiagnosticsQuery,
|
InternUnionQuery, InternUseQuery, LangItemQuery, Macro2DataQuery, MacroDefQuery,
|
||||||
|
MacroRulesDataQuery, NotableTraitsInDepsQuery, ProcMacroDataQuery, StaticDataQuery,
|
||||||
|
StructDataWithDiagnosticsQuery, TraitAliasDataQuery, TraitDataWithDiagnosticsQuery,
|
||||||
|
TypeAliasDataQuery, UnionDataWithDiagnosticsQuery,
|
||||||
};
|
};
|
||||||
pub use hir_expand::db::{
|
pub use hir_expand::db::{
|
||||||
AstIdMapQuery, DeclMacroExpanderQuery, ExpandDatabase, ExpandDatabaseStorage,
|
AstIdMapQuery, DeclMacroExpanderQuery, ExpandDatabase, ExpandDatabaseStorage,
|
||||||
ExpandProcMacroQuery, InternMacroCallQuery, InternSyntaxContextQuery, MacroArgQuery,
|
ExpandProcMacroQuery, InternMacroCallQuery, InternSyntaxContextQuery, MacroArgQuery,
|
||||||
ParseMacroExpansionErrorQuery, ParseMacroExpansionQuery, ProcMacrosQuery, RealSpanMapQuery,
|
ParseMacroExpansionErrorQuery, ParseMacroExpansionQuery, ProcMacroSpanQuery, ProcMacrosQuery,
|
||||||
|
RealSpanMapQuery,
|
||||||
};
|
};
|
||||||
pub use hir_ty::db::{
|
pub use hir_ty::db::{
|
||||||
AdtDatumQuery, AdtVarianceQuery, AssociatedTyDataQuery, AssociatedTyValueQuery, BorrowckQuery,
|
AdtDatumQuery, AdtVarianceQuery, AssociatedTyDataQuery, AssociatedTyValueQuery, BorrowckQuery,
|
||||||
CallableItemSignatureQuery, ConstEvalDiscriminantQuery, ConstEvalQuery, ConstEvalStaticQuery,
|
CallableItemSignatureQuery, ConstEvalDiscriminantQuery, ConstEvalQuery, ConstEvalStaticQuery,
|
||||||
ConstParamTyQuery, FieldTypesQuery, FnDefDatumQuery, FnDefVarianceQuery, GenericDefaultsQuery,
|
ConstParamTyQuery, DynCompatibilityOfTraitQuery, FieldTypesQuery, FnDefDatumQuery,
|
||||||
GenericPredicatesForParamQuery, GenericPredicatesQuery, HirDatabase, HirDatabaseStorage,
|
FnDefVarianceQuery, GenericDefaultsQuery, GenericPredicatesForParamQuery,
|
||||||
ImplDatumQuery, ImplSelfTyQuery, ImplTraitQuery, IncoherentInherentImplCratesQuery,
|
GenericPredicatesQuery, GenericPredicatesWithoutParentQuery, HirDatabase, HirDatabaseStorage,
|
||||||
|
ImplDatumQuery, ImplSelfTyQuery, ImplTraitQuery, IncoherentInherentImplCratesQuery, InferQuery,
|
||||||
InherentImplsInBlockQuery, InherentImplsInCrateQuery, InternCallableDefQuery,
|
InherentImplsInBlockQuery, InherentImplsInCrateQuery, InternCallableDefQuery,
|
||||||
InternClosureQuery, InternCoroutineQuery, InternImplTraitIdQuery, InternLifetimeParamIdQuery,
|
InternClosureQuery, InternCoroutineQuery, InternImplTraitIdQuery, InternLifetimeParamIdQuery,
|
||||||
InternTypeOrConstParamIdQuery, LayoutOfAdtQuery, MirBodyQuery, ProgramClausesForChalkEnvQuery,
|
InternTypeOrConstParamIdQuery, LayoutOfAdtQuery, LayoutOfTyQuery, LookupImplMethodQuery,
|
||||||
ReturnTypeImplTraitsQuery, TargetDataLayoutQuery, TraitDatumQuery, TraitEnvironmentQuery,
|
MirBodyForClosureQuery, MirBodyQuery, MonomorphizedMirBodyForClosureQuery,
|
||||||
TraitImplsInBlockQuery, TraitImplsInCrateQuery, TraitImplsInDepsQuery, TyQuery, ValueTyQuery,
|
MonomorphizedMirBodyQuery, ProgramClausesForChalkEnvQuery, ReturnTypeImplTraitsQuery,
|
||||||
|
TargetDataLayoutQuery, TraitDatumQuery, TraitEnvironmentQuery, TraitImplsInBlockQuery,
|
||||||
|
TraitImplsInCrateQuery, TraitImplsInDepsQuery, TraitSolveQuery, TyQuery,
|
||||||
|
TypeAliasImplTraitsQuery, ValueTyQuery,
|
||||||
};
|
};
|
||||||
|
|
|
@ -100,16 +100,19 @@ impl RootDatabase {
|
||||||
hir::db::ConstEvalQuery
|
hir::db::ConstEvalQuery
|
||||||
hir::db::ConstEvalStaticQuery
|
hir::db::ConstEvalStaticQuery
|
||||||
hir::db::ConstParamTyQuery
|
hir::db::ConstParamTyQuery
|
||||||
|
hir::db::DynCompatibilityOfTraitQuery
|
||||||
hir::db::FieldTypesQuery
|
hir::db::FieldTypesQuery
|
||||||
hir::db::FnDefDatumQuery
|
hir::db::FnDefDatumQuery
|
||||||
hir::db::FnDefVarianceQuery
|
hir::db::FnDefVarianceQuery
|
||||||
hir::db::GenericDefaultsQuery
|
hir::db::GenericDefaultsQuery
|
||||||
hir::db::GenericPredicatesForParamQuery
|
hir::db::GenericPredicatesForParamQuery
|
||||||
hir::db::GenericPredicatesQuery
|
hir::db::GenericPredicatesQuery
|
||||||
|
hir::db::GenericPredicatesWithoutParentQuery
|
||||||
hir::db::ImplDatumQuery
|
hir::db::ImplDatumQuery
|
||||||
hir::db::ImplSelfTyQuery
|
hir::db::ImplSelfTyQuery
|
||||||
hir::db::ImplTraitQuery
|
hir::db::ImplTraitQuery
|
||||||
hir::db::IncoherentInherentImplCratesQuery
|
hir::db::IncoherentInherentImplCratesQuery
|
||||||
|
hir::db::InferQuery
|
||||||
hir::db::InherentImplsInBlockQuery
|
hir::db::InherentImplsInBlockQuery
|
||||||
hir::db::InherentImplsInCrateQuery
|
hir::db::InherentImplsInCrateQuery
|
||||||
hir::db::InternCallableDefQuery
|
hir::db::InternCallableDefQuery
|
||||||
|
@ -119,7 +122,12 @@ impl RootDatabase {
|
||||||
hir::db::InternLifetimeParamIdQuery
|
hir::db::InternLifetimeParamIdQuery
|
||||||
hir::db::InternTypeOrConstParamIdQuery
|
hir::db::InternTypeOrConstParamIdQuery
|
||||||
hir::db::LayoutOfAdtQuery
|
hir::db::LayoutOfAdtQuery
|
||||||
|
hir::db::LayoutOfTyQuery
|
||||||
|
hir::db::LookupImplMethodQuery
|
||||||
|
hir::db::MirBodyForClosureQuery
|
||||||
hir::db::MirBodyQuery
|
hir::db::MirBodyQuery
|
||||||
|
hir::db::MonomorphizedMirBodyForClosureQuery
|
||||||
|
hir::db::MonomorphizedMirBodyQuery
|
||||||
hir::db::ProgramClausesForChalkEnvQuery
|
hir::db::ProgramClausesForChalkEnvQuery
|
||||||
hir::db::ReturnTypeImplTraitsQuery
|
hir::db::ReturnTypeImplTraitsQuery
|
||||||
hir::db::TargetDataLayoutQuery
|
hir::db::TargetDataLayoutQuery
|
||||||
|
@ -128,13 +136,16 @@ impl RootDatabase {
|
||||||
hir::db::TraitImplsInBlockQuery
|
hir::db::TraitImplsInBlockQuery
|
||||||
hir::db::TraitImplsInCrateQuery
|
hir::db::TraitImplsInCrateQuery
|
||||||
hir::db::TraitImplsInDepsQuery
|
hir::db::TraitImplsInDepsQuery
|
||||||
|
hir::db::TraitSolveQuery
|
||||||
hir::db::TyQuery
|
hir::db::TyQuery
|
||||||
|
hir::db::TypeAliasImplTraitsQuery
|
||||||
hir::db::ValueTyQuery
|
hir::db::ValueTyQuery
|
||||||
|
|
||||||
// DefDatabase
|
// DefDatabase
|
||||||
hir::db::AttrsQuery
|
hir::db::AttrsQuery
|
||||||
hir::db::BlockDefMapQuery
|
hir::db::BlockDefMapQuery
|
||||||
hir::db::BlockItemTreeQuery
|
hir::db::BlockItemTreeQuery
|
||||||
|
hir::db::BlockItemTreeWithSourceMapQuery
|
||||||
hir::db::BodyQuery
|
hir::db::BodyQuery
|
||||||
hir::db::BodyWithSourceMapQuery
|
hir::db::BodyWithSourceMapQuery
|
||||||
hir::db::ConstDataQuery
|
hir::db::ConstDataQuery
|
||||||
|
@ -145,17 +156,21 @@ impl RootDatabase {
|
||||||
hir::db::CrateSupportsNoStdQuery
|
hir::db::CrateSupportsNoStdQuery
|
||||||
hir::db::EnumDataQuery
|
hir::db::EnumDataQuery
|
||||||
hir::db::EnumVariantDataWithDiagnosticsQuery
|
hir::db::EnumVariantDataWithDiagnosticsQuery
|
||||||
|
hir::db::ExpandProcAttrMacrosQuery
|
||||||
hir::db::ExprScopesQuery
|
hir::db::ExprScopesQuery
|
||||||
hir::db::ExternCrateDeclDataQuery
|
hir::db::ExternCrateDeclDataQuery
|
||||||
hir::db::FieldVisibilitiesQuery
|
hir::db::FieldVisibilitiesQuery
|
||||||
hir::db::FieldsAttrsQuery
|
hir::db::FieldsAttrsQuery
|
||||||
hir::db::FieldsAttrsSourceMapQuery
|
hir::db::FieldsAttrsSourceMapQuery
|
||||||
hir::db::FileItemTreeQuery
|
hir::db::FileItemTreeQuery
|
||||||
|
hir::db::FileItemTreeWithSourceMapQuery
|
||||||
hir::db::FunctionDataQuery
|
hir::db::FunctionDataQuery
|
||||||
hir::db::FunctionVisibilityQuery
|
hir::db::FunctionVisibilityQuery
|
||||||
hir::db::GenericParamsQuery
|
hir::db::GenericParamsQuery
|
||||||
|
hir::db::GenericParamsWithSourceMapQuery
|
||||||
hir::db::ImplDataWithDiagnosticsQuery
|
hir::db::ImplDataWithDiagnosticsQuery
|
||||||
hir::db::ImportMapQuery
|
hir::db::ImportMapQuery
|
||||||
|
hir::db::IncludeMacroInvocQuery
|
||||||
hir::db::InternAnonymousConstQuery
|
hir::db::InternAnonymousConstQuery
|
||||||
hir::db::InternBlockQuery
|
hir::db::InternBlockQuery
|
||||||
hir::db::InternConstQuery
|
hir::db::InternConstQuery
|
||||||
|
@ -177,7 +192,9 @@ impl RootDatabase {
|
||||||
hir::db::InternUseQuery
|
hir::db::InternUseQuery
|
||||||
hir::db::LangItemQuery
|
hir::db::LangItemQuery
|
||||||
hir::db::Macro2DataQuery
|
hir::db::Macro2DataQuery
|
||||||
|
hir::db::MacroDefQuery
|
||||||
hir::db::MacroRulesDataQuery
|
hir::db::MacroRulesDataQuery
|
||||||
|
hir::db::NotableTraitsInDepsQuery
|
||||||
hir::db::ProcMacroDataQuery
|
hir::db::ProcMacroDataQuery
|
||||||
hir::db::StaticDataQuery
|
hir::db::StaticDataQuery
|
||||||
hir::db::StructDataWithDiagnosticsQuery
|
hir::db::StructDataWithDiagnosticsQuery
|
||||||
|
@ -212,6 +229,7 @@ impl RootDatabase {
|
||||||
hir::db::MacroArgQuery
|
hir::db::MacroArgQuery
|
||||||
hir::db::ParseMacroExpansionErrorQuery
|
hir::db::ParseMacroExpansionErrorQuery
|
||||||
hir::db::ParseMacroExpansionQuery
|
hir::db::ParseMacroExpansionQuery
|
||||||
|
hir::db::ProcMacroSpanQuery
|
||||||
hir::db::ProcMacrosQuery
|
hir::db::ProcMacrosQuery
|
||||||
hir::db::RealSpanMapQuery
|
hir::db::RealSpanMapQuery
|
||||||
|
|
||||||
|
@ -220,7 +238,9 @@ impl RootDatabase {
|
||||||
|
|
||||||
// SourceDatabase
|
// SourceDatabase
|
||||||
base_db::ParseQuery
|
base_db::ParseQuery
|
||||||
|
base_db::ParseErrorsQuery
|
||||||
base_db::CrateGraphQuery
|
base_db::CrateGraphQuery
|
||||||
|
base_db::CrateWorkspaceDataQuery
|
||||||
|
|
||||||
// SourceDatabaseExt
|
// SourceDatabaseExt
|
||||||
base_db::FileTextQuery
|
base_db::FileTextQuery
|
||||||
|
|
Loading…
Reference in a new issue