Profile pre-dispatch WASM readiness
This commit is contained in:
@@ -205,6 +205,10 @@ source, bytes, and phase durations so a cold outlier identifies its exact unit
|
||||
and whether it used worker memory, serialized code, compilation, or failed.
|
||||
Absolute source paths and source contents are not exposed. This keeps cold-worker
|
||||
module latency distinguishable without exposing source paths.
|
||||
The same snapshot divides pre-dispatch WASM readiness into entry normalization,
|
||||
mutation freshness, artifact stat, complete dependency freshness, and worker
|
||||
availability. `ready_check_count` distinguishes the warm one-check path from an
|
||||
on-demand compile and recheck; repeated snapshot reads retain the initial values.
|
||||
When a current serialized module exists, the worker scans wasm section headers
|
||||
and reads only `dylink.0` and `uce.abi`; it does not fault the multi-megabyte code
|
||||
and data bodies into every new worker. A missing/stale/invalid serialized module
|
||||
|
||||
Reference in New Issue
Block a user