提交 7abccc07 编写于 作者: Y yelihua

add summary info for step trace graph and change the name.

上级 ce93cb82
......@@ -134,7 +134,7 @@ def get_training_trace_graph():
'mode': 'step',
'step_id': graph_type
}})
graph_info['summary'] = analyser.summary
return jsonify(graph_info)
......
......@@ -192,10 +192,11 @@ class StepTraceAnalyser(BaseAnalyser):
fp_point = row_info_dict.get('fp_point', 0)
bp_point = row_info_dict.get('bp_point', 0)
points = [
self._construct_time_point('', 0, row_info_dict.get('iteration_interval', 0)),
self._construct_time_point('fp_and_bp', fp_point - start_point,
row_info_dict.get('fp_and_bp', 0)),
self._construct_time_point('', bp_point - start_point, row_info_dict.get('tail', 0)),
self._construct_time_point(
'iteration_interval', 0, row_info_dict.get('iteration_interval', 0)),
self._construct_time_point(
'fp_and_bp', fp_point - start_point, row_info_dict.get('fp_and_bp', 0)),
self._construct_time_point('tail', bp_point - start_point, row_info_dict.get('tail', 0))
]
return points
......
......@@ -98,7 +98,6 @@ class TestProfilerAnalyse(TestCase):
{'name': 'stream_540_parallel_0', 'start': 118.3705, 'duration': 49.281},
{'name': '', 'start': 167.6515, 'duration': 37.7294}]
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册