diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -104,6 +104,10 @@ pub fn build(b: *std.Build) void { const options = b.addOptions(); options.addOption(u8, "led_pin", led_pin); options.addOption(u32, "stack_size", stack_size); + // On-board attribution: time `pardes_p4_input` and `pardes_p4_render` separately and print the + // cycle counts. Off by default because it puts a line on the wire per frame, which is the very + // resource being measured - it answers "where did the 34 ms go", not "how fast is it". + options.addOption(bool, "prof", b.option(bool, "prof", "print per-phase cycle counts (pardes)") orelse false); options.addOption([]const u8, "wifi_ssid", wifi_ssid); options.addOption([]const u8, "wifi_psk", if (psk_file) |path| blk: { const raw = std.Io.Dir.cwd().readFileAlloc(b.graph.io, path, b.allocator, .limited(256)) catch |
