diff options
Diffstat (limited to 'core/replica.zig')
| -rw-r--r-- | core/replica.zig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/replica.zig b/core/replica.zig index 92e49df5..c9a69bdf 100644 --- a/core/replica.zig +++ b/core/replica.zig @@ -3031,6 +3031,12 @@ pub const Link = struct { /// load took (PARDES_REPLICA_STATS). join: struct { blobs: u32 = 0, from_memory: u32 = 0, from_disk: u32 = 0, sent_bytes: u64 = 0 } = .{}, join_ms: u64 = 0, + /// Its view's yanks, pastes and links (Pardes.View.yanks) its + /// frontend has done: from the joined dump's, so a join does none + /// again (client.zig `asks`). + yanks: u32 = 0, + pastes: u32 = 0, + links: u32 = 0, /// Frames it drew whole (`drawn`), and the last one presented again /// moved on (its own motion), for PARDES_REPLICA_STATS. draws: u32 = 0, @@ -3066,6 +3072,11 @@ pub const Link = struct { c.asked = false; c.mispredicted = 0; c.put_off = false; + if (r.core().views[r.view]) |v| { + c.yanks = v.yanks; + c.pastes = v.pastes; + c.links = v.links; + } } pub fn notify(c: *Link, comptime fmt: []const u8, args: anytype) void { |
