-
We mainly rely on Chrome's
Performancetab to analyse and record the performance of MarkText -
Electron is split into 3 processes:
main,preloadandrenderer. We will be focusing onmainandrenderersince these are the heaviest
pnpm run perf:inspect-brk
-
This launches a production build of Marktext that has a break-point before the first line of Javascript is ran
-
A debugger at port
5858is also attached
-
Go to
chrome://inspect -
Press
Configure, and addlocalhost:5858 -
Press "Inspect" on the entry that appears below (might take a while)
-
When Developers Tools first launches, you will notice the breakpoint that is set
-
Simply go to
Performance, pressRecord, and wait for MarkText to launch fully, then Stop the recording
- If you do not need the breakpoint to test start-up performance, simply run:
pnpm run perf:inspect
pnpm run start
-
This launches a production build of MarkText as well
-
Press
F12to open Dev Tools and pressReload and Recordto benchmark start-up render performance