Open RaduBerinde opened 1 week ago
This is really nice! A couple comments.
Any way to annotate the level iters with level numbers? There's possibly other metadata that might be useful too? Position? Direction? Data iterated over so far, etc?
Could this then be useful up in Cockroach, say, for trace spans - we can print this debug stack. It could supplement the iterator stats nicely.
Ok to merge? This has been useful when debugging some meta failures.
To print the entire iterator stack tree, we can now use
fmt.Printf("%s", base.DebugTree(iter))
to get something like this: