Lots of claude-driven performance work.
This commit is contained in:
@@ -7,8 +7,38 @@ use ruin_app::prelude::*;
|
||||
|
||||
const SNAPSHOT_PATH: &str = "target/ruin-example05-manifest-snapshot.toml";
|
||||
|
||||
use tracing_subscriber::layer::SubscriberExt;
|
||||
use tracing_subscriber::util::SubscriberInitExt;
|
||||
use tracing_subscriber::{EnvFilter, fmt};
|
||||
|
||||
fn install_tracing() {
|
||||
let filter = EnvFilter::try_from_default_env().unwrap_or_else(|_| {
|
||||
EnvFilter::new(
|
||||
"info,\
|
||||
ruin_runtime::runtime=debug,\
|
||||
ruin_runtime::scheduler=debug,\
|
||||
ruin_reactivity::graph=debug,\
|
||||
ruin_reactivity::effect=debug,\
|
||||
ruin_reactivity::event=debug",
|
||||
)
|
||||
});
|
||||
|
||||
let fmt_layer = fmt::layer()
|
||||
.with_target(true)
|
||||
.with_thread_ids(true)
|
||||
.with_thread_names(true)
|
||||
.compact();
|
||||
|
||||
let _ = tracing_subscriber::registry()
|
||||
.with(filter)
|
||||
.with(fmt_layer)
|
||||
.try_init();
|
||||
}
|
||||
|
||||
#[ruin_runtime::async_main]
|
||||
async fn main() -> ruin_app::Result<()> {
|
||||
install_tracing();
|
||||
|
||||
let demo_server_addr = spawn_demo_server()?;
|
||||
App::new()
|
||||
.window(
|
||||
|
||||
Reference in New Issue
Block a user