Commit ac7901c
committed
refactor(Wind): Improve extension host debugging observability
Enhance the extension host handshake and RPC message handling in Preload with more granular performance marks and debug logging.
Changes:
- Split single `handshake-complete` mark into three specific marks: `init-data-received`, `initialized-sent`, and `ready-sent`
- Add debug logging that outputs init data byte size and text preview (first 200 chars) for diagnosing initialization issues
- Rename message performance marks from `message:N` to `rpc:N` for clarity
- Log the first 5 RPC messages with byte size and preview for debugging protocol issues
These improvements enable better visibility into the extension host initialization flow and help diagnose communication problems between Wind and Cocoon.1 parent 798d976 commit ac7901c
2 files changed
Lines changed: 62 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
243 | 252 | | |
244 | 253 | | |
245 | 254 | | |
| |||
251 | 260 | | |
252 | 261 | | |
253 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
254 | 270 | | |
255 | 271 | | |
256 | 272 | | |
257 | 273 | | |
258 | | - | |
| 274 | + | |
259 | 275 | | |
260 | 276 | | |
261 | | - | |
| 277 | + | |
262 | 278 | | |
263 | 279 | | |
264 | 280 | | |
265 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
266 | 291 | | |
267 | 292 | | |
268 | 293 | | |
| |||
287 | 312 | | |
288 | 313 | | |
289 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
290 | 319 | | |
291 | 320 | | |
292 | 321 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments