Replace DebugString with Describe
This change makes tree description completely open to mechanical analysis and ensures consistency between description formats for each of the iterator types. Renamed StatsContainer.(Kind -> Type) for consistency.
This commit is contained in:
parent
b5f113203d
commit
62013d3dfc
22 changed files with 186 additions and 162 deletions
|
|
@ -85,7 +85,12 @@ func (s *Session) ExecInput(input string, c chan interface{}, _ int) {
|
|||
}
|
||||
it, _ := s.currentQuery.it.Optimize()
|
||||
if glog.V(2) {
|
||||
glog.V(2).Infoln(it.DebugString(0))
|
||||
b, err := json.MarshalIndent(it.Describe(), "", " ")
|
||||
if err != nil {
|
||||
glog.Infof("failed to format description: %v", err)
|
||||
} else {
|
||||
glog.Infof("%s", b)
|
||||
}
|
||||
}
|
||||
for graph.Next(it) {
|
||||
tags := make(map[string]graph.Value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue