Trace the reads a render makes, gather a render's draws in renderDraws and columnDraws, and drop the done item

This commit is contained in:
2026-09-26 14:36:39 +02:00
committed by Lillem4n
parent fc8bb34242
commit 1a6111d67d
6 changed files with 50 additions and 19 deletions
+4
View File
@@ -35,6 +35,10 @@ func renderOnce(s *session, n node) string {
//go:noinline
func expandAnew(s *session, t *template) string {
var set holdSet
if s.trace != nil {
s.trace.depth++
defer func() { s.trace.depth-- }()
}
return expand(s, t, renderScope{set: &set})
}