You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f945e40
Browse filesBrowse the repository at this point in the historyBrowse files
lumopolis: the typing e2e also reports how often the page paints during the compiles, how much of each long frame was blocking work, and how busy the whole machine is, so a slow echo on macOS shows whether the runner or the app is short of time
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
return`${xs.length} long frames, ${xs.reduce((a,x)=>a+x.d,0).toFixed(0)} ms in all (rendering ${xs.reduce((a,x)=>a+x.render,0).toFixed(0)} ms), longest ${Math.max(...xs.map((x)=>x.d)).toFixed(0)} ms; scripts ${top||'none'}`
544
+
return`${xs.length} long frames, ${xs.reduce((a,x)=>a+x.d,0).toFixed(0)} ms in all (rendering ${xs.reduce((a,x)=>a+x.render,0).toFixed(0)} ms, blocking ${xs.reduce((a,x)=>a+x.blocking,0).toFixed(0)} ms), longest ${Math.max(...xs.map((x)=>x.d)).toFixed(0)} ms; scripts ${top||'none'}`
531
545
}
532
546
// The page's clock as epoch ms: timeOrigin + now(), corrected by its offset from Date.now() at the end.
return`${xs.length} frames (${(1000*xs.length/Math.max(1,span)).toFixed(0)} a second), gap ${lagOf(xs)}`
594
+
}
595
+
console.log(`[typing while compiling, frames] page frames during compiles ${rafOf(true)}; with none running ${rafOf(false)}`)
574
596
console.log(`[typing while compiling, page] page timer lateness during compiles ${lagOf(pageDiag.lag.filter((x)=>pageIn(x[0])).map((x)=>x[1]))}, with none running ${lagOf(pageDiag.lag.filter((x)=>!pageIn(x[0])).map((x)=>x[1]))}; during ${compileMs.toFixed(0)} ms of compiles ${longOf(true)}; with none running ${longOf(false)}; during compiles ${framesOf(true)}; with none running ${framesOf(false)}`)
575
597
console.log(`[typing while compiling, main] ${cores} cores; main timer lateness during compiles ${lagOf(diag.lag.filter((x)=>inRun(x[0])).map((x)=>x[1]))}, with none running ${lagOf(diag.lag.filter((x)=>!inRun(x[0])).map((x)=>x[1]))}; Electron CPU during compiles ${cpuOf(true)}; with none running ${cpuOf(false)}`)
576
598
expect(r.compiling,'the compiles were still running after 60 s of typing').toBe(false)
0 commit comments