fix: Better logging and revie system of debug

This commit is contained in:
Julien Froidefond
2025-02-23 22:19:24 +01:00
parent c7b2621946
commit 66e1db7788
11 changed files with 70 additions and 110 deletions

View File

@@ -7,9 +7,8 @@ export function withPageTiming(pageName: string, Component: PageComponent) {
const start = performance.now();
const result = await Promise.resolve(Component(props));
const duration = performance.now() - start;
// Log le temps de rendu
await DebugService.logPageRender(pageName, duration);
await DebugService.logPageRender(pageName + JSON.stringify(props.params), duration);
return result;
};