mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 21:03:47 -10:00
io/trace's stats.rs: a stat channel is a RAEA_ variable's name without RAEA_ (bake_trace, trace, bevy_passes), on
when the composition chose it (native("stats.on", { channels }) at its top level), when RAEA_STATS lists it, or when
its variable is set, the override. The 51 reads of 24 trace and stat variables go through raea_io_trace::stat. Each
of Bevy's render passes (RenderDiagnosticsPlugin, on by bevy_passes) and PassTimer's go into the run's totals, with
the counters engine/draws and engine/updates; native("stats.read", {}) returns them, and a run that chose a channel
prints the table and keeps stats.json in its trace folder (docs/manual/reference/cli/traces.md).
tools/nobuild.sh stats checks it: every channel decided done reads through stat(); the scene choosing bevy_passes and
trace traces, reads 9 passes and 11 draws back on its last frame, prints the table and keeps stats.json; with nothing
chosen nothing prints; RAEA_TRACE=1 and RAEA_STATS give the same trace lines. 12 frames take 12 updates.
raea-render's lines stay as they were (NB4a's plugin choice folded to one line). native-calls.ts gains the two calls,
and bevy.app.*, which raea registers now that the macOS build links the plugin catalog.
36 lines
1.8 KiB
TOML
36 lines
1.8 KiB
TOML
[package]
|
|
name = "raea-runtime-dom"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "FSL-1.1-ALv2"
|
|
publish = false
|
|
description = "TSX roots on a Blitz page: their scripts, ops, events, timers, iframes and host calls, getComputedStyle, and media elements"
|
|
|
|
[dependencies]
|
|
raea-io-trace = { path = "../../io/trace" }
|
|
# the layers under it
|
|
raea-sys-page = { path = "../../systems/page" }
|
|
raea-runtime-twins = { path = "../../runtime/twins" }
|
|
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "bevy_render", "bevy_asset", "bevy_image", "bevy_log", "bevy_window", "ui_bevy_render", "bevy_picking", "ui_picking", "bevy_input_focus"] }
|
|
# the document: stylo's styles, Taffy's and Blitz's layout (floats on, as Chrome lays them out)
|
|
blitz-dom = { version = "=0.3.0-beta.4", default-features = false, features = ["svg", "woff", "system-fonts", "floats", "text-transform-icu", "complex-scripts"] }
|
|
blitz-traits = "=0.3.0-beta.4"
|
|
# keys as Blitz takes them (host.rs WindowInput: a window's KeyboardInput as DOM keys and codes), blitz-traits' own
|
|
keyboard-types = "0.8"
|
|
# a page's script host: JS engines, native calls, media, canvas, accessibility records
|
|
raea-runtime-js = { path = "../js" }
|
|
# the page's video and audio elements (runtime/dom/media)
|
|
raea-runtime-dom-media = { path = "media" }
|
|
# a canvas element's bitmap, drawn from its display list
|
|
raea-sys-canvas = { path = "../../systems/canvas" }
|
|
# the op wire, and the element tree raea's page diffs into ops (motion.rs)
|
|
raea-core-wire = { path = "../../core/wire" }
|
|
raea-io-net = { path = "../../io/net" }
|
|
serde_json = "1"
|
|
url = "2"
|
|
# an element's damage when its picture changes (blitz-dom's own type)
|
|
stylo = "=0.22.0"
|
|
|
|
[dev-dependencies]
|
|
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "bevy_render", "bevy_core_pipeline", "bevy_log", "png", "bevy_window"] }
|