Closes the remaining library rows of the final completeness audit (docs/rewrite/notes/final-Z3.md): - libghostty-vt: OSC parser storage goes through the caller-supplied C allocator via a ByteStorage abstraction; ghostty_osc_new reports GHOSTTY_OUT_OF_MEMORY and failed grows invalidate the OSC like Zig. Tested with a counting/failing/limiting C allocator. - shadertoy: sampler parameter rewriting is keyed by full signature so overloads work; the Metal uniform block keeps std140 strides for iChannelTime[4] (MSL offsets checked against the upload layout). - tripwire.zig ported (named trip points, hit counts, verification) and used to port the previously skipped allocation-failure tests that have a fallible Rust path; the rest are documented. - crash: fatal signals capture siginfo + registers and a forked helper writes a minidump (minidump-writer) as an envelope attachment, like sentry-native/Breakpad; tests parse it with the minidump crate. - kitty LoadingImage::debug_dump (debug builds) and the Darwin Instruments signpost around benchmark runs. Test Plan: - cargo test -p ghostty-vt-capi --test c_allocator - cargo test -p ghostty-crash --test minidump
17 lines
601 B
Rust
17 lines
601 B
Rust
//! Port of `ZIG/src/benchmark` (the `ghostty-bench` CLI) and
|
|
//! `ZIG/src/synthetic` (the `ghostty-synthetic` data generators).
|
|
//!
|
|
//! Like the Zig binary, `ghostty-bench +<action> [--opt=value ...]` runs the
|
|
//! selected benchmark exactly once and prints nothing; time the process with
|
|
//! `hyperfine`/`perf stat`. As a Rust-side convenience `--time` prints the
|
|
//! measured step duration and throughput to stderr.
|
|
#![cfg_attr(test, allow(clippy::unwrap_used))]
|
|
|
|
pub mod args;
|
|
pub mod benches;
|
|
pub mod benchmark;
|
|
#[cfg(target_vendor = "apple")]
|
|
pub mod signpost;
|
|
mod simd_width;
|
|
pub mod synthetic;
|