Add line counts to data model

This commit is contained in:
Dmitry Trofimov
2016-07-13 00:56:17 +02:00
parent 608ddff809
commit f06540e18d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ struct CallTreeStat {
1: required i32 count,
2: required string name,
3: required list<CallTreeStat> children,
4: required map<i32, i32> line_count, // number of times a line inside the frame was executed
}
struct TreeStats {
@@ -88,6 +88,7 @@ def tree_stats_to_response(filename, response):
tstats.name = node.name
tstats.count = node.count
tstats.children = []
tstats.line_count = {}
if parent is not None:
if parent.children is None: