1
3
mirror of https://github.com/charliermarsh/ruff synced 2025-10-05 23:52:47 +02:00

track heap size

This commit is contained in:
Douglas Creager
2025-10-03 15:06:55 -04:00
parent 7b5684fb4c
commit 6090300419

View File

@@ -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.