diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-18 18:08:43 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-18 18:45:50 -0300 |
| commit | 6e1da675ec9d18672fea7748f389e59a73c692a6 (patch) | |
| tree | 05b8f191eb4134cec82e32459738f89f4b39a6a6 /build/tools.zig | |
| parent | 41f665c986886790e474bef78928f4b0d3b05c21 (diff) | |
| download | pardes-6e1da675ec9d18672fea7748f389e59a73c692a6.tar.gz pardes-6e1da675ec9d18672fea7748f389e59a73c692a6.zip | |
perf, build: pardes-perf refuses to start when the image addon is not where its build put it: the path is relative to the build root (.zig-cache/o/<hash>/libimage.so, where `zig build perf` runs it), and from anywhere else, or after the cache was wiped, the run used to end at its last cell as ImageNotShown with a count about 9.5M instructions short that two agents read as +0.43%; now the gesture run (or --op image-frame) checks the file before any measurement and exits with "pardes-perf: no image addon at <path> (FileNotFound), relative to the working directory: run it from the build root" and ImageAddonMissing; the path stays relative so a kept binary can be pointed at a kept copy of its addon by its working directory (the coordinator's perf gate does that); perf_options' pdf_addon and has_pdf_addon, baked in and read by nothing, are gone (the perf step no longer builds the PDF addon); the three perf baselines' harness id follows perf.zig (d6c5e18a4acc4fe3: the measurement is unchanged, the numbers are kept, not re-recorded); on Zig 0.17.1: tui core-test 822/963 (141 skipped), shell-test 998/1001, behaviour-test 274/274, pane-test 180/181; `zig build perf -Dplatform=tui -Doptimize=ReleaseFast -- --only small --reps 2` passes from the build root, and the same binary from another directory exits 1 with the message before any number; gui frame corpus 77/77 Debug and ReleaseFast against mbase171; gui unit-test 1588/1596 under load, the four failures host_io's tty-job tests (60/60 alone with -Dtest-filter=host_io), perf-gate within 3x in the full run
Diffstat (limited to 'build/tools.zig')
| -rw-r--r-- | build/tools.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/tools.zig b/build/tools.zig index bcf073ef..e782ba12 100644 --- a/build/tools.zig +++ b/build/tools.zig @@ -204,9 +204,9 @@ pub fn add(b: *std.Build, c: struct { .terminal_simd = c.ghostty_simd, .prebuilt_shaders = c.platform == .gui and c.prebuilt_shaders, }); + // Relative to the build root, where `zig build perf` runs it: perf.zig + // refuses to start when it is not there (a wiped cache, another directory). perf_options.addOptionPath("image_addon", c.image_addon.getEmittedBin()); - perf_options.addOption(bool, "has_pdf_addon", c.pdf_addon != null); - if (c.pdf_addon) |l| perf_options.addOptionPath("pdf_addon", l.getEmittedBin()); const perf = program(b, "pardes-perf", "test/perf.zig", c.target, perf_optimize, &.{.{ .name = "pardes", .module = c.core_module }}); // --live drives the real binary through a pty (test/e2e_harness.zig). if (c.ghostty_vt_for_tests) |vt| perf.root_module.addImport("ghostty-vt", vt); |
