Commit b351e0e
authored
Add max_stack_depth to --debug-stats output (#639)
## 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
- [x] JVM tests pass (140/140)
- [x] Verified output manually with `--debug-stats`1 parent 8cb7cfe commit b351e0e
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
0 commit comments