docs(docs): R4.6 J2 recette (procedure, results grid, kit script), export harness phases and dist override, export series script, ledger targets of the app PDF suites, CLAUDE.md export flow; export driver publishes its User Timing split
This commit is contained in:
1 parent
9cb3cb75d4
commit
cdcdda8e1c
12 files changed
+679
-39
No files matched your search
@@ -21,6 +21,8 @@ export function installProbes() {
|
||||
dataUrls: 0,
|
||||
clickAt: null,
|
||||
pdfBlobAt: null,
|
||||
/** R4.6: the `faunosteo:export` User Timing entry's detail (the Rust driver's split). */
|
||||
exportTiming: null,
|
||||
changeAt: null,
|
||||
navAt: null,
|
||||
alertAt: null,
|
||||
@@ -37,8 +39,14 @@ export function installProbes() {
|
||||
const toBlob = proto.toBlob
|
||||
proto.toBlob = function (callback, ...rest) {
|
||||
const size = { width: this.width, height: this.height }
|
||||
const startedAt = now()
|
||||
const record = (blob) => {
|
||||
probe.png.push({ ...size, bytes: blob ? blob.size : null })
|
||||
probe.png.push({
|
||||
...size,
|
||||
bytes: blob ? blob.size : null,
|
||||
startedAt,
|
||||
at: now(),
|
||||
})
|
||||
callback(blob)
|
||||
}
|
||||
return toBlob.call(this, record, ...rest)
|
||||
@@ -132,8 +140,19 @@ export function countErrorLines() {
|
||||
}).observe(document.body, { childList: true, subtree: true })
|
||||
}
|
||||
|
||||
/** Reads the probe back (a structured-clone copy). */
|
||||
export const readProbe = () => window.__harness
|
||||
/** Reads the probe back (a structured-clone copy), with the export timing entry if any. */
|
||||
export const readProbe = () => {
|
||||
const probe = window.__harness
|
||||
const entry = performance.getEntriesByName('faunosteo:export').at(-1)
|
||||
if (entry) {
|
||||
probe.exportTiming = {
|
||||
startTime: entry.startTime,
|
||||
duration: entry.duration,
|
||||
...(entry.detail ?? {}),
|
||||
}
|
||||
}
|
||||
return probe
|
||||
}
|
||||
|
||||
/**
|
||||
* A page of a fresh context with the probes and the tab seed, dialogs
|
||||
|
||||
Reference in new issue
Block a user