chore: add performance logger

This commit is contained in:
李华桥
2023-11-10 00:25:15 +08:00
committed by LongYinan
parent 927a6489f9
commit 09c3a8828f
10 changed files with 79 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
import { DebugLogger } from '@affine/debug';
import type { WorkspaceRegistry } from '@affine/env/workspace';
import { Workspace as BlockSuiteWorkspace } from '@blocksuite/store';
@@ -26,3 +27,6 @@ export const pathGenerator = {
} satisfies {
[Path in WorkspaceSubPath]: (workspaceId: string) => string;
};
export const performanceLogger = new DebugLogger('performance');
export const performanceRenderLogger = performanceLogger.namespace('render');