mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
chore: add performance logger
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user