mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 06:53:19 -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.
32 lines
1.5 KiB
TOML
32 lines
1.5 KiB
TOML
[package]
|
|
name = "raea-runtime-view"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "FSL-1.1-ALv2"
|
|
publish = false
|
|
description = "The direct render's views (GPU and CPU) without the Bevy frame loop, the 2D rows drawn by Blitz, clips' masks, and the paint device as Bevy's renderer"
|
|
|
|
[dependencies]
|
|
raea-io-trace = { path = "../../io/trace" }
|
|
# a local file as a page src (raea_io_home::src: a file URL on Windows)
|
|
raea-io-home = { path = "../../io/home" }
|
|
raea-core-program = { path = "../../core/program" }
|
|
raea-core-shape = { path = "../../core/shape" }
|
|
raea-core-wire = { path = "../../core/wire" }
|
|
raea-core-k = { path = "../../core/k" }
|
|
raea-sys-k = { path = "../../systems/k" }
|
|
raea-sys-frame = { path = "../../systems/frame", features = ["native"] }
|
|
raea-gpu-device = { path = "../../gpu/device" }
|
|
raea-io-media = { path = "../../io/media", default-features = false, features = ["soft-audio", "apple"] }
|
|
raea-page = { path = "../../engine/page" }
|
|
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "3d_bevy_render", "ui_bevy_render"] }
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "hdr"] }
|
|
wgpu = "=30.0.1"
|
|
bytemuck = "1"
|
|
serde_json = "1"
|
|
|
|
[target.'cfg(target_vendor = "apple")'.dependencies]
|
|
objc2-core-foundation = "0.3"
|
|
objc2-core-video = { version = "0.3", features = ["objc2-metal"] }
|
|
objc2-metal = { version = "0.3", default-features = false, features = ["std", "MTLTexture", "MTLPixelFormat", "MTLDevice", "MTLResource", "MTLAllocation"] }
|