atagen

monolith

public
Star0
Watch0

Commit ea4e76c42b56

tarball

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

2 files changed+39-55
monolith: keep slow spans visible when RUST_LOG narrows the log

Without its own filter the span layer inherited the log filter level hint, so a filter like monolith=debug disabled every smithay span before the layer saw it.
Modified file: crates/monolith/src/main.rs+2 additions−1 deletions
@@ -103,7 +103,8 @@ fn main() -> ExitCode {
103103 .with_ansi(std::io::IsTerminal::is_terminal(&std::io::stderr()))
104104 .with_filter(filter);
105105 #[cfg(feature = "spans")]
106- let spans = Some(slow_spans::SlowSpans);
106+ let spans =
107+ Some(slow_spans::SlowSpans.with_filter(tracing_subscriber::filter::LevelFilter::TRACE));
107108 #[cfg(not(feature = "spans"))]
108109 let spans: Option<tracing_subscriber::layer::Identity> = None;
109110 tracing_subscriber::registry().with(fmt).with(spans).init();
Modified file: monolith.log+37 additions−54 deletions
@@ -1,58 +1,41 @@
11 Finished `release` profile [optimized] target(s) in 0.07s
22 Running `target/release/monolith run --backend drm , vkcube`
3-2026-10-16T13:41:51.631819Z INFO monolith::drm: primary GPU path=/dev/dri/card1
4-2026-10-16T13:41:51.960157Z INFO monolith::drm: output connected name="DP-2" w=2560 h=1440 refresh=165
5-2026-10-16T13:41:51.960243Z INFO monolith::ipc: control socket path=/run/user/1000/monolith-wayland-2.sock
6-2026-10-16T13:41:51.960257Z INFO monolith: monolith running socket="wayland-2" device="NVIDIA GeForce RTX 3060"
7-2026-10-16T13:41:51.960639Z INFO monolith::commands: spawned pid=351673 argv=[",", "vkcube"]
8-2026-10-16T13:41:51.987220Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=26496547 scene_ns=4840 render_ns=13370622 render_cpu_ns=3089012 queue_ns=107051
9-2026-10-16T13:41:51.990179Z DEBUG monolith::drm: frame rate output="DP-2" presented=1 vblanks=8584123 budget_us=28496
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
1010 Selected WSI platform: wayland
1111 Selected GPU 0: NVIDIA GeForce RTX 3060, type: DiscreteGpu, apiVersion: 4211017 (1.4.329), driverVersion: -1797652352 (83.416.128)
12-2026-10-16T13:41:52.990409Z DEBUG monolith::drm: frame rate output="DP-2" presented=45 vblanks=164 budget_us=2209
13-2026-10-16T13:41:53.166218Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6103871 budget_ns=2732345
14-2026-10-16T13:41:53.990625Z DEBUG monolith::drm: frame rate output="DP-2" presented=143 vblanks=164 budget_us=2788
15-2026-10-16T13:41:54.557117Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=5466464 scene_ns=4740 render_ns=5383123 render_cpu_ns=1768941 queue_ns=77001
16-2026-10-16T13:41:54.560470Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6065851 budget_ns=3271506
17-2026-10-16T13:41:54.990887Z DEBUG monolith::drm: frame rate output="DP-2" presented=164 vblanks=165 budget_us=3224
18-2026-10-16T13:41:55.991138Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3114
19-2026-10-16T13:41:56.312454Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6067851 budget_ns=3289218
20-2026-10-16T13:41:56.991399Z DEBUG monolith::drm: frame rate output="DP-2" presented=164 vblanks=165 budget_us=3323
21-2026-10-16T13:41:57.991651Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3245
22-2026-10-16T13:41:58.979875Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=3492910 scene_ns=5180 render_ns=3414248 render_cpu_ns=3479602 queue_ns=71322
23-2026-10-16T13:41:58.985892Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6097851 budget_ns=3408461
24-2026-10-16T13:41:58.991938Z DEBUG monolith::drm: frame rate output="DP-2" presented=164 vblanks=165 budget_us=3415
25-2026-10-16T13:41:59.559690Z DEBUG monolith::input: bind cmd=Fullscreen
26-2026-10-16T13:41:59.729017Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=10899698 scene_ns=7750 render_ns=10721335 render_cpu_ns=5547754 queue_ns=166883
27-2026-10-16T13:41:59.737603Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=78815063 budget_ns=3177867
28-2026-10-16T13:41:59.992172Z DEBUG monolith::drm: frame rate output="DP-2" presented=140 vblanks=164 budget_us=3326
29-2026-10-16T13:42:00.992420Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3359
30-2026-10-16T13:42:01.992690Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3402
31-2026-10-16T13:42:02.992934Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3237
32-2026-10-16T13:42:03.993200Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3261
33-2026-10-16T13:42:04.993449Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3279
34-2026-10-16T13:42:05.339249Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=3550112 scene_ns=6330 render_ns=3435140 render_cpu_ns=3521092 queue_ns=106462
35-2026-10-16T13:42:05.345073Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6066851 budget_ns=3292298
36-2026-10-16T13:42:05.993707Z DEBUG monolith::drm: frame rate output="DP-2" presented=164 vblanks=165 budget_us=3270
37-2026-10-16T13:42:06.993984Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3316
38-2026-10-16T13:42:07.994216Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3318
39-2026-10-16T13:42:08.994516Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3398
40-2026-10-16T13:42:09.994731Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=164 budget_us=3291
41-2026-10-16T13:42:10.994991Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3336
42-2026-10-16T13:42:11.995247Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3403
43-2026-10-16T13:42:12.995506Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3213
44-2026-10-16T13:42:13.995760Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=164 budget_us=3225
45-2026-10-16T13:42:14.996038Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3269
46-2026-10-16T13:42:15.996279Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=164 budget_us=3212
47-2026-10-16T13:42:16.996535Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3186
48-2026-10-16T13:42:17.760357Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=3380019 scene_ns=8680 render_ns=3228576 render_cpu_ns=3350232 queue_ns=138973
49-2026-10-16T13:42:17.766453Z DEBUG monolith::drm: frame missed its vblank output="DP-2" late_ns=6068851 budget_ns=3386040
50-2026-10-16T13:42:17.996794Z DEBUG monolith::drm: frame rate output="DP-2" presented=164 vblanks=165 budget_us=3266
51-2026-10-16T13:42:18.997113Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3323
52-2026-10-16T13:42:19.997305Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=164 budget_us=3180
53-2026-10-16T13:42:20.997589Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3305
54-2026-10-16T13:42:21.997830Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=164 budget_us=3357
55-2026-10-16T13:42:22.998079Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3373
56-2026-10-16T13:42:23.973895Z DEBUG monolith::drm: slow frame output="DP-2" took_ns=3117544 scene_ns=5260 render_ns=3023242 render_cpu_ns=3094742 queue_ns=86642
57-2026-10-16T13:42:23.998335Z DEBUG monolith::drm: frame rate output="DP-2" presented=165 vblanks=165 budget_us=3277
58-2026-10-16T13:42:24.122439Z DEBUG monolith::input: bind cmd=Quit
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