-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: building out perf testing * chore: adding my printing code for the different formats of the marks * feat: adding invocation count table * fix: markOnce iunstead * fix: typescript additions * fix: adding more types * chore: adding telemetry panel as MVP, gonna remove the pane * chore: view telemetry from command bar in file route and home route * fix: deleting unused imports * fix: deleting some unused files * fix: auto cleanup * chore: adding other routes, these will need to be moved... * chore: moving some printing logic around and unit testing some of it * fix: moving command init * fix: removing debugging marks * fix: adding some comments * fix: fixed a bug with generating the go to page commands * chore: adding will pages load within the router config * chore: implementing marks for routes * fix: auto fixes and checkers * chore: implemented a route watcher at the root level... * fix: auto fixes, removing unused code * chore: timing for syntax highlighting and auto fixes * fix: didAuth issue and syntax highlighting in the packaged application. Constructor name gets renamed * fix: fixing typescript checks * chore: adding mag bar chart icon for telemetry * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) * chore: swapped telemetry icon for stopwatch * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * chore: writing telemetry to disk * fix: auto fixers * chore: getting args parsed for cli flags and writing telemetry file * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * chore: swapped mark for markOnce since we infinitely write marks to a JS array... need to solve this run time marking in another way. We only need this for startup right now * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) * chore: writing raw marks to disk as well * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest) * fix: cleaned up the testing names * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest) * Fix fmt and codespell * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest-8-cores) * A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu-latest-8-cores) * fix: moving this route loader data stuff * chore: adding comment * fix: fmt * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest-8-cores) * empty :( * A snapshot a day keeps the bugs away! 📷🐛 (OS: windows-latest-8-cores) * empty :( --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: 49fl <[email protected]>
- Loading branch information
1 parent
17b9af2
commit 938e27a
Showing
68 changed files
with
891 additions
and
18 deletions.
There are no files selected for viewing
Binary file modified
BIN
+120 Bytes
(100%)
...side-scene-scale-should-match-engine-scale-Inch-scale-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+317 Bytes
(100%)
...side-scene-scale-should-match-engine-scale-Inch-scale-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+153 Bytes
(100%)
...side-scene-scale-should-match-engine-scale-Inch-scale-2-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+323 Bytes
(100%)
...side-scene-scale-should-match-engine-scale-Inch-scale-2-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+355 Bytes
(100%)
...cene-scale-should-match-engine-scale-Millimeter-scale-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+328 Bytes
(100%)
...cene-scale-should-match-engine-scale-Millimeter-scale-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+347 Bytes
(100%)
...cene-scale-should-match-engine-scale-Millimeter-scale-2-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+311 Bytes
(100%)
...cene-scale-should-match-engine-scale-Millimeter-scale-2-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+339 Bytes
(100%)
...ests.spec.ts-snapshots/Draft-circle-should-look-right-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+309 Bytes
(100%)
...ests.spec.ts-snapshots/Draft-circle-should-look-right-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+336 Bytes
(100%)
....spec.ts-snapshots/Draft-rectangles-should-look-right-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+310 Bytes
(100%)
....spec.ts-snapshots/Draft-rectangles-should-look-right-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+562 Bytes
(100%)
...ts.spec.ts-snapshots/Draft-segments-should-look-right-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+300 Bytes
(100%)
...ts.spec.ts-snapshots/Draft-segments-should-look-right-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+571 Bytes
(100%)
...ts.spec.ts-snapshots/Draft-segments-should-look-right-2-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+307 Bytes
(100%)
...ts.spec.ts-snapshots/Draft-segments-should-look-right-2-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+340 Bytes
(100%)
...sts.spec.ts-snapshots/Grid-visibility-Grid-turned-off-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+316 Bytes
(100%)
...sts.spec.ts-snapshots/Grid-visibility-Grid-turned-off-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+316 Bytes
(100%)
...ests.spec.ts-snapshots/Grid-visibility-Grid-turned-on-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+323 Bytes
(100%)
...ests.spec.ts-snapshots/Grid-visibility-Grid-turned-on-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+686 Bytes
(100%)
...tests.spec.ts-snapshots/Sketch-on-face-with-none-z-up-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+640 Bytes
(100%)
...tests.spec.ts-snapshots/Sketch-on-face-with-none-z-up-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+329 Bytes
(100%)
...ests.spec.ts-snapshots/Zoom-to-fit-on-load---solid-2d-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+305 Bytes
(100%)
...ests.spec.ts-snapshots/Zoom-to-fit-on-load---solid-2d-1-Google-Chrome-win32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+350 Bytes
(100%)
...ests.spec.ts-snapshots/Zoom-to-fit-on-load---solid-3d-1-Google-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+323 Bytes
(100%)
...ests.spec.ts-snapshots/Zoom-to-fit-on-load---solid-3d-1-Google-Chrome-win32.png
Oops, something went wrong.
Binary file modified
BIN
+265 Bytes
(100%)
...pshots/extrude-on-default-planes-should-be-stable--XY-1-Google-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+322 Bytes
(100%)
...pshots/extrude-on-default-planes-should-be-stable--XY-1-Google-Chrome-win32.png
Oops, something went wrong.
Binary file modified
BIN
+253 Bytes
(100%)
...pshots/extrude-on-default-planes-should-be-stable--XZ-1-Google-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+222 Bytes
(100%)
...pshots/extrude-on-default-planes-should-be-stable--XZ-1-Google-Chrome-win32.png
Oops, something went wrong.
Binary file modified
BIN
+301 Bytes
(100%)
...pshots/extrude-on-default-planes-should-be-stable--YZ-1-Google-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+312 Bytes
(100%)
...pshots/extrude-on-default-planes-should-be-stable--YZ-1-Google-Chrome-win32.png
Oops, something went wrong.
Binary file modified
BIN
+259 Bytes
(100%)
...apshots/extrude-on-default-planes-should-be-stable-XY-1-Google-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+299 Bytes
(100%)
...apshots/extrude-on-default-planes-should-be-stable-XY-1-Google-Chrome-win32.png
Oops, something went wrong.
Binary file modified
BIN
+263 Bytes
(100%)
...apshots/extrude-on-default-planes-should-be-stable-XZ-1-Google-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+304 Bytes
(100%)
...apshots/extrude-on-default-planes-should-be-stable-XZ-1-Google-Chrome-win32.png
Oops, something went wrong.
Binary file modified
BIN
+281 Bytes
(100%)
...apshots/extrude-on-default-planes-should-be-stable-YZ-1-Google-Chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+342 Bytes
(100%)
...apshots/extrude-on-default-planes-should-be-stable-YZ-1-Google-Chrome-win32.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import yargs from 'yargs' | ||
import { hideBin } from 'yargs/helpers' | ||
|
||
const argv = yargs(hideBin(process.argv)) | ||
.option('telemetry', { | ||
alias: 't', | ||
type: 'boolean', | ||
description: 'Writes startup telemetry to file on disk.', | ||
}) | ||
.parse() | ||
|
||
export default argv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { useEffect, useState, createContext, ReactNode } from 'react' | ||
import { useNavigation, useLocation } from 'react-router-dom' | ||
import { PATHS } from 'lib/paths' | ||
import { markOnce } from 'lib/performance' | ||
|
||
export const RouteProviderContext = createContext({}) | ||
|
||
export function RouteProvider({ children }: { children: ReactNode }) { | ||
const [first, setFirstState] = useState(true) | ||
const navigation = useNavigation() | ||
const location = useLocation() | ||
useEffect(() => { | ||
// On initialization, the react-router-dom does not send a 'loading' state event. | ||
// it sends an idle event first. | ||
const pathname = first ? location.pathname : navigation.location?.pathname | ||
const isHome = pathname === PATHS.HOME | ||
const isFile = | ||
pathname?.includes(PATHS.FILE) && | ||
pathname?.substring(pathname?.length - 4) === '.kcl' | ||
if (isHome) { | ||
markOnce('code/willLoadHome') | ||
} else if (isFile) { | ||
markOnce('code/willLoadFile') | ||
} | ||
setFirstState(false) | ||
}, [navigation]) | ||
|
||
return ( | ||
<RouteProviderContext.Provider value={{}}> | ||
{children} | ||
</RouteProviderContext.Provider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import { getMarks } from 'lib/performance' | ||
|
||
import { | ||
printDeltaTotal, | ||
printInvocationCount, | ||
printMarkDownTable, | ||
printRawMarks, | ||
} from 'lib/telemetry' | ||
|
||
export function TelemetryExplorer() { | ||
const marks = getMarks() | ||
const markdownTable = printMarkDownTable(marks) | ||
const rawMarks = printRawMarks(marks) | ||
const deltaTotalTable = printDeltaTotal(marks) | ||
const invocationCount = printInvocationCount(marks) | ||
// TODO data-telemetry-type | ||
// TODO data-telemetry-name | ||
return ( | ||
<div> | ||
<h1 className="pb-4">Marks</h1> | ||
<div className="max-w-xl max-h-64 overflow-auto select-all"> | ||
{marks.map((mark, index) => { | ||
return ( | ||
<pre className="text-xs" key={index}> | ||
<code key={index}>{JSON.stringify(mark, null, 2)}</code> | ||
</pre> | ||
) | ||
})} | ||
</div> | ||
<h1 className="pb-4">Startup Performance</h1> | ||
<div className="max-w-xl max-h-64 overflow-auto select-all"> | ||
{markdownTable.map((line, index) => { | ||
return ( | ||
<pre className="text-xs" key={index}> | ||
<code key={index}>{line}</code> | ||
</pre> | ||
) | ||
})} | ||
</div> | ||
<h1 className="pb-4">Delta and Totals</h1> | ||
<div className="max-w-xl max-h-64 overflow-auto select-all"> | ||
{deltaTotalTable.map((line, index) => { | ||
return ( | ||
<pre className="text-xs" key={index}> | ||
<code key={index}>{line}</code> | ||
</pre> | ||
) | ||
})} | ||
</div> | ||
<h1 className="pb-4">Raw Marks</h1> | ||
<div className="max-w-xl max-h-64 overflow-auto select-all"> | ||
{rawMarks.map((line, index) => { | ||
return ( | ||
<pre className="text-xs" key={index}> | ||
<code key={index}>{line}</code> | ||
</pre> | ||
) | ||
})} | ||
</div> | ||
<h1 className="pb-4">Invocation Count</h1> | ||
<div className="max-w-xl max-h-64 overflow-auto select-all"> | ||
{invocationCount.map((line, index) => { | ||
return ( | ||
<pre className="text-xs" key={index}> | ||
<code key={index}>{line}</code> | ||
</pre> | ||
) | ||
})} | ||
</div> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.