mirror of
https://github.com/charliermarsh/ruff
synced 2025-10-05 23:52:47 +02:00
track heap size
This commit is contained in:
@@ -297,7 +297,7 @@ impl<'db> GenericContext<'db> {
|
||||
InferableTypeVars::One(self.inferable_typevars_inner(db))
|
||||
}
|
||||
|
||||
#[salsa::tracked(returns(ref))]
|
||||
#[salsa::tracked(returns(ref), heap_size=ruff_memory_usage::heap_size)]
|
||||
fn inferable_typevars_inner(self, db: &'db dyn Db) -> FxHashSet<BoundTypeVarInstance<'db>> {
|
||||
// The second inner function is because the salsa macros seem to not like nested structs
|
||||
// and impl blocks inside the function.
|
||||
|
Reference in New Issue
Block a user