refactor: add widget call stack tracing for render continuations

This commit is contained in:
CJ van den Berg 2026-01-15 17:16:36 +01:00
parent c3cf5ea02f
commit ef60a95d55
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -203,7 +203,10 @@ pub fn update(self: Self) void {
}
pub fn render(self: Self, theme: *const Theme) bool {
return self.vtable.render(self.ptr, theme);
const more = self.vtable.render(self.ptr, theme);
if (more)
tp.trace(tp.channel.widget, .{ "continue_by", self.vtable.type_name });
return more;
}
pub fn resize(self: Self, pos: Box) void {