Investigate memory leak (#19213)
In search for cache leak + Remove old instrumentation
This commit is contained in:
-1
@@ -244,7 +244,6 @@ describe('WorkspaceEntityManager', () => {
|
||||
IS_DIRECT_GRAPHQL_EXECUTION_ENABLED: false,
|
||||
IS_RECORD_PAGE_LAYOUT_GLOBAL_EDITION_ENABLED: false,
|
||||
IS_CONNECTED_ACCOUNT_MIGRATED: false,
|
||||
IS_GRAPHQL_QUERY_TIMING_ENABLED: false,
|
||||
IS_RECORD_TABLE_WIDGET_ENABLED: false,
|
||||
IS_DATASOURCE_MIGRATED: false,
|
||||
IS_COMMAND_MENU_ITEM_ENABLED: false,
|
||||
|
||||
@@ -95,6 +95,10 @@ export class PromiseMemoizer<T> {
|
||||
}
|
||||
}
|
||||
|
||||
getSize(): { cache: number; pending: number } {
|
||||
return { cache: this.cache.size, pending: this.pending.size };
|
||||
}
|
||||
|
||||
async clearAll(onDelete?: (value: T) => Promise<void> | void): Promise<void> {
|
||||
for (const [, entry] of this.cache.entries()) {
|
||||
await onDelete?.(entry.value);
|
||||
|
||||
Reference in New Issue
Block a user