code: func TextItems(rpt *Report) ([]TextItem, []string) {
  	g, origCount, droppedNodes, _ := rpt.newTrimmedGraph()
  	rpt.selectOutputUnit(g)
  	labels := reportLabels(rpt, g, origCount, droppedNodes, 0, false)
  
  	var items []TextItem
  	var flatSum int64
  	for _, n := range g.Nodes {
  		name, flat, cum := n.Info.PrintableName(), n.FlatValue(), n.CumValue()
  
  		var inline, noinline bool
  		for _, e := range n.In {
  			if e.Inline {
  				inline = true
  			} else {
  				noinline = true
  			}
  		}
  
  		var inl string
  		if inline {
  			if noinline {
  				inl = "(partial-inline)"
  			} else {
  				inl = "(inline)"
  			}
  		}
  
  		flatSum += flat
  		items = append(items, TextItem{
  			Name:        name,
  			InlineLabel: inl,
  			Flat:        flat,
  			Cum:         cum,
  			FlatFormat:  rpt.formatValue(flat),
  			CumFormat:   rpt.formatValue(cum),
  		})
  	}
  	return items, labels
  }
docs: // TextItems returns a list of text items from the report and a list
  // of labels that describe the report.