Skip to content

Add max_stack_depth to --debug-stats output#639

Merged
stephenamar-db merged 1 commit intomasterfrom
debug-stats-stack
Mar 6, 2026
Merged

Add max_stack_depth to --debug-stats output#639
stephenamar-db merged 1 commit intomasterfrom
debug-stats-stack

Conversation

@stephenamar-db
Copy link
Collaborator

Summary

  • Tracks the high-water mark of the evaluation stack depth counter and reports it as max_stack_depth in --debug-stats output.
  • Useful for understanding how deep the call stack gets for a given Jsonnet program and tuning --max-stack accordingly.

Test plan

  • JVM tests pass (140/140)
  • Verified output manually with --debug-stats

Tracks the high-water mark of the stack depth counter during evaluation
and includes it in the debug stats report.
@stephenamar-db stephenamar-db merged commit b351e0e into master Mar 6, 2026
8 checks passed
@stephenamar-db stephenamar-db deleted the debug-stats-stack branch March 6, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant