diff options
Diffstat (limited to 'src/body_layer.zig')
| -rw-r--r-- | src/body_layer.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/body_layer.zig b/src/body_layer.zig index 3684605f..d4ca6d69 100644 --- a/src/body_layer.zig +++ b/src/body_layer.zig @@ -255,7 +255,9 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane .bg = pane_bg, }; const tz_body = tracy.zone(@src(), "bodyText"); + const probe_text = pardes.FrameStats.nowNs(); const body = built orelse try bodyText(p, arena, pane); + p.frames.zone(.body_text, probe_text); tz_body.end(); // A select sweep begun on the tag and dragged into the body marks the // body rows it crossed only where no text is: it is laid down before @@ -268,6 +270,8 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane // this is what writes it into the surface. const tz_rows = tracy.zone(@src(), "paneBodyRows"); defer tz_rows.end(); + const probe_rows = pardes.FrameStats.nowNs(); + defer p.frames.zone(.body_rows, probe_rows); var it = std.mem.splitScalar(u8, body, '\n'); var i: u16 = 0; while (it.next()) |line| : (i += 1) { @@ -277,6 +281,8 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane } const tz_color = tracy.zone(@src(), "paneRecolor"); + const probe_color = pardes.FrameStats.nowNs(); + defer p.frames.zone(.body_color, probe_color); // File layout is independent of whether its producer requests colors. if (pane.file) |*f| { panes.File.drawGutter(p, s, pane, r, tx, tw, body_h, active); |
