atagen

monolith

public
Star0
Watch0

Commit f00961b08216

tarball

atagen <boss@atagen.co>2026-10-16 13:55 UTC

2 files changed+37-38
monolith: say at startup when slow span logging is on
Modified file: crates/monolith/src/main.rs+2 additions
@@ -108,6 +108,8 @@ fn main() -> ExitCode {
108108 #[cfg(not(feature = "spans"))]
109109 let spans: Option<tracing_subscriber::layer::Identity> = None;
110110 tracing_subscriber::registry().with(fmt).with(spans).init();
111+ #[cfg(feature = "spans")]
112+ tracing::info!("logging spans slower than 1 ms");
111113 let backend = match backend {
112114 Backend::Auto if std::env::var_os("WAYLAND_DISPLAY").is_some() => Backend::Nested,
113115 Backend::Auto => Backend::Drm,
Modified file: monolith.log+35 additions−38 deletions
@@ -1,41 +1,38 @@
1- Finished `release` profile [optimized] target(s) in 0.07s
1+ Compiling monolith v0.0.0 (/home/bolt/code/monolith/crates/monolith)
2+ Finished `release` profile [optimized] target(s) in 12.52s
23 Running `target/release/monolith run --backend drm , vkcube`
3-2026-10-16T13:51:02.803171Z INFO monolith::drm: primary GPU path=/dev/dri/card1
4-2026-10-16T13:51:03.171981Z INFO monolith::drm: output connected name="DP-2" w=2560 h=1440 refresh=165
5-2026-10-16T13:51:03.172150Z INFO monolith::ipc: control socket path=/run/user/1000/monolith-wayland-2.sock
6-2026-10-16T13:51:03.172198Z INFO monolith: monolith running socket="wayland-2" device="NVIDIA GeForce RTX 3060"
7-2026-10-16T13:51:03.172797Z INFO monolith::commands: spawned pid=357227 argv=[",", "vkcube"]
8-2026-10-16T13:51:03.205514Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=32589141 scene_ns=3060 render_ns=22964497 render_cpu_ns=5037322 queue_ns=182933
9-2026-10-16T13:51:03.210169Z DEBUG monolith::drm: frame rate output="DP-2" presented=1 vblanks=8675051 budget_us=34589
4+2026-10-16T13:53:37.943439Z INFO monolith::drm: primary GPU path=/dev/dri/card1
5+2026-10-16T13:53:38.355268Z INFO monolith::drm: output connected name="DP-2" w=2560 h=1440 refresh=165
6+2026-10-16T13:53:38.355369Z INFO monolith::ipc: control socket path=/run/user/1000/monolith-wayland-2.sock
7+2026-10-16T13:53:38.355385Z INFO monolith: monolith running socket="wayland-2" device="NVIDIA GeForce RTX 3060"
8+2026-10-16T13:53:38.355828Z INFO monolith::commands: spawned pid=358143 argv=[",", "vkcube"]
9+2026-10-16T13:53:38.383773Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=27867019 scene_ns=3700 render_ns=8621537 render_cpu_ns=2390802 queue_ns=213233
10+2026-10-16T13:53:38.387370Z DEBUG monolith::drm: frame rate output="DP-2" presented=1 vblanks=8700649 budget_us=29867
1011 Selected WSI platform: wayland
1112 Selected GPU 0: NVIDIA GeForce RTX 3060, type: DiscreteGpu, apiVersion: 4211017 (1.4.329), driverVersion: -1797652352 (83.416.128)
12-2026-10-16T13:51:04.210384Z DEBUG monolith::drm: frame rate output="DP-2" presented=24 vblanks=164 budget_us=2247
13-2026-10-16T13:51:05.210645Z DEBUG monolith::drm: frame rate output="DP-2" presented=114 vblanks=165 budget_us=2263
14-2026-10-16T13:51:05.352711Z DEBUG monolith::input: bind cmd=Fullscreen
15-2026-10-16T13:51:05.552117Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=28187101 scene_ns=13480 render_ns=27892916 render_cpu_ns=8439424 queue_ns=272645
16-2026-10-16T13:51:05.556299Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=30295361 budget_ns=2569864
17-2026-10-16T13:51:05.568324Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=5980851 budget_ns=3138325
18-2026-10-16T13:51:05.580468Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6065851 budget_ns=3335399
19-2026-10-16T13:51:06.210908Z DEBUG monolith::drm: frame rate output="DP-2" presented=135 vblanks=165 budget_us=3204
20-2026-10-16T13:51:06.269610Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=13406444 scene_ns=3661 render_ns=13342182 render_cpu_ns=1676781 queue_ns=58931
21-2026-10-16T13:51:06.271526Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=12111851 budget_ns=3213757
22-2026-10-16T13:51:07.211170Z DEBUG monolith::drm: frame rate output="DP-2" presented=163 vblanks=165 budget_us=3352
23-2026-10-16T13:51:08.019701Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=5447739 scene_ns=3510 render_ns=5383268 render_cpu_ns=1369682 queue_ns=59511
24-2026-10-16T13:51:08.023497Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6048851 budget_ns=3186917
25-2026-10-16T13:51:08.211429Z DEBUG monolith::drm: frame rate output="DP-2" presented=164 vblanks=165 budget_us=3401
26-2026-10-16T13:51:09.211682Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3380
27-2026-10-16T13:51:10.211939Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3320
28-2026-10-16T13:51:10.685423Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=3893591 scene_ns=6720 render_ns=3779849 render_cpu_ns=3863102 queue_ns=104592
29-2026-10-16T13:51:10.690861Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6062851 budget_ns=3288468
30-2026-10-16T13:51:11.212207Z DEBUG monolith::drm: frame rate output="DP-2" presented=164 vblanks=165 budget_us=3246
31-2026-10-16T13:51:12.212465Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=164 budget_us=3222
32-2026-10-16T13:51:13.212720Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3535
33-2026-10-16T13:51:14.212978Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3230
34-2026-10-16T13:51:15.213236Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3373
35-2026-10-16T13:51:16.213496Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3428
36-2026-10-16T13:51:16.899049Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=3770988 scene_ns=5050 render_ns=3593195 render_cpu_ns=3742622 queue_ns=170773
37-2026-10-16T13:51:16.904600Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6071851 budget_ns=3231808
38-2026-10-16T13:51:17.213748Z DEBUG monolith::drm: frame rate output="DP-2" presented=164 vblanks=164 budget_us=3324
39-2026-10-16T13:51:18.214005Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3314
40-2026-10-16T13:51:19.214265Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3222
41-2026-10-16T13:51:19.455708Z DEBUG monolith::input: bind cmd=Quit
13+2026-10-16T13:53:39.387636Z DEBUG monolith::drm: frame rate output="DP-2" presented=10 vblanks=165 budget_us=2400
14+2026-10-16T13:53:40.387865Z DEBUG monolith::drm: frame rate output="DP-2" presented=90 vblanks=164 budget_us=2082
15+2026-10-16T13:53:40.442431Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6062851 budget_ns=2558414
16+2026-10-16T13:53:41.388127Z DEBUG monolith::drm: frame rate output="DP-2" presented=163 vblanks=165 budget_us=2697
17+2026-10-16T13:53:41.497723Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=3177748 scene_ns=4680 render_ns=3092097 render_cpu_ns=387440 queue_ns=79371
18+2026-10-16T13:53:41.503321Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6052851 budget_ns=3227936
19+2026-10-16T13:53:42.388427Z DEBUG monolith::drm: frame rate output="DP-2" presented=164 vblanks=165 budget_us=3081
20+2026-10-16T13:53:43.255318Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6096851 budget_ns=3239058
21+2026-10-16T13:53:43.388643Z DEBUG monolith::drm: frame rate output="DP-2" presented=164 vblanks=164 budget_us=3216
22+2026-10-16T13:53:44.385342Z DEBUG monolith::input: bind cmd=Fullscreen
23+2026-10-16T13:53:44.388911Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3300
24+2026-10-16T13:53:44.619725Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=41477278 scene_ns=13400 render_ns=41081802 render_cpu_ns=6374442 queue_ns=375246
25+2026-10-16T13:53:44.625342Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=96996106 budget_ns=3200227
26+2026-10-16T13:53:45.389164Z DEBUG monolith::drm: frame rate output="DP-2" presented=131 vblanks=165 budget_us=3242
27+2026-10-16T13:53:46.389427Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3249
28+2026-10-16T13:53:47.389678Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3188
29+2026-10-16T13:53:48.389939Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3242
30+2026-10-16T13:53:49.390191Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3208
31+2026-10-16T13:53:50.390452Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3182
32+2026-10-16T13:53:51.390710Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3172
33+2026-10-16T13:53:52.391010Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3287
34+2026-10-16T13:53:53.391226Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=164 budget_us=3190
35+2026-10-16T13:53:54.391491Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3195
36+2026-10-16T13:53:55.391795Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3227
37+2026-10-16T13:53:56.392074Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=164 budget_us=3406
38+2026-10-16T13:53:56.817264Z DEBUG monolith::input: bind cmd=Quit