Skip to content

Commit

Permalink
fix: perf now before executing the runner (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-coulon committed Jun 13, 2024
1 parent 65f879a commit 8cb4f1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-crews-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"skott": patch
---

Fix skott performance timing in the CLI
3 changes: 1 addition & 2 deletions packages/skott/src/rendering/terminal/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ export async function runTerminal<T>(
runtimeConfig: RuntimeConfig,
terminalOptions: TerminalConfig
): Promise<void> {
let skottInstance = await run();

const start = performance.now();
let skottInstance = await run();
const { graph, files } = skottInstance.getStructure();
displayInitialGetStructureTime(files, start);

Expand Down

0 comments on commit 8cb4f1c

Please sign in to comment.