in lib/src/program_info_view.dart [38:66]
void _setupProgramwideInfo() {
_treeTable.children.clear();
var map = {
'Program Size': '${_model.size} bytes',
'Compile Time': _model.compilationMoment,
'Compile Duration': _model.compilationDuration,
'noSuchMethod Enabled': new SpanElement()
..text = _model.noSuchMethodEnabled.toString()
..style.background = _model.noSuchMethodEnabled ? "red" : "white",
// TODO(tyoverby): add support for loading files generated by
// TRACE_CALLS and compare them to the functions that are produced
// by dart2js.
'Extract Function Names': new ButtonElement()
..text = 'extract'
..onClick.listen(_extractClick)
};
map.forEach((k, v) {
var row = _treeTable.addRow();
row.addCell()..text = k;
if (v is String) {
row.addCell()..text = v;
} else if (v is Element) {
row.addCell()..children.add(v);
} else {
throw new ArgumentError("Unexpected value in map: $v");
}
});
}