Commit 3154fe2
committed
Add comprehensive performance diagnostics for macOS slowness debugging
- Add [PERF] logging to track app startup time and key events
- Add [IPC] logging to track when renderer sends messages to main
- Add performance tracking for IPC handlers (first call vs subsequent)
- Enable production logging with --enable-logging flag
- Track timing for: startup, window creation, ready-to-show, IPC handlers
- Add script to easily view performance logs
This will help identify:
- Where the 1-3 second delay occurs
- If it's in IPC communication, event handling, or renderer process
- Why first clicks are slower than subsequent clicks
- Exact timing of each operation1 parent 158e7eb commit 3154fe2
File tree
3 files changed
+93
-5
lines changed- electron-app
- src
- scripts
3 files changed
+93
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
79 | | - | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| |||
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
99 | 112 | | |
100 | 113 | | |
101 | 114 | | |
| |||
165 | 178 | | |
166 | 179 | | |
167 | 180 | | |
| 181 | + | |
| 182 | + | |
168 | 183 | | |
169 | 184 | | |
170 | 185 | | |
| |||
176 | 191 | | |
177 | 192 | | |
178 | 193 | | |
| 194 | + | |
179 | 195 | | |
| 196 | + | |
180 | 197 | | |
181 | 198 | | |
182 | 199 | | |
| |||
214 | 231 | | |
215 | 232 | | |
216 | 233 | | |
| 234 | + | |
| 235 | + | |
217 | 236 | | |
218 | 237 | | |
219 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
11 | 42 | | |
12 | 43 | | |
13 | 44 | | |
14 | 45 | | |
| 46 | + | |
15 | 47 | | |
16 | | - | |
| 48 | + | |
| 49 | + | |
17 | 50 | | |
18 | 51 | | |
19 | 52 | | |
| |||
63 | 96 | | |
64 | 97 | | |
65 | 98 | | |
66 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
67 | 115 | | |
68 | 116 | | |
69 | 117 | | |
70 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
71 | 121 | | |
72 | 122 | | |
73 | 123 | | |
74 | | - | |
| 124 | + | |
75 | 125 | | |
76 | 126 | | |
77 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments