OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import json | 5 import json |
6 import unittest | 6 import unittest |
7 | 7 |
8 import telemetry.timeline.counter as tracing_counter | 8 import telemetry.timeline.counter as tracing_counter |
9 import telemetry.timeline.model as timeline_model | 9 import telemetry.timeline.model as timeline_model |
10 from telemetry.timeline import trace_data as trace_data_module | 10 from telemetry.timeline import trace_data as trace_data_module |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 {'name': 'a2', 'cat': 'foo', 'id': 70, 'pid': 52, 'tid': 53, 'ts': 550, | 1011 {'name': 'a2', 'cat': 'foo', 'id': 70, 'pid': 52, 'tid': 53, 'ts': 550, |
1012 'ph': 's', 'args': {}}, | 1012 'ph': 's', 'args': {}}, |
1013 {'name': 'b', 'cat': 'foo', 'id': 73, 'pid': 52, 'tid': 53, 'ts': 570, | 1013 {'name': 'b', 'cat': 'foo', 'id': 73, 'pid': 52, 'tid': 53, 'ts': 570, |
1014 'ph': 'f', 'args': {}}, | 1014 'ph': 'f', 'args': {}}, |
1015 {'name': 'a', 'cat': 'foo', 'id': 72, 'pid': 52, 'tid': 53, 'ts': 560, | 1015 {'name': 'a', 'cat': 'foo', 'id': 72, 'pid': 52, 'tid': 53, 'ts': 560, |
1016 'ph': 't', 'args': {}}, | 1016 'ph': 't', 'args': {}}, |
1017 ] | 1017 ] |
1018 | 1018 |
1019 trace_data = trace_data_module.TraceData(events) | 1019 trace_data = trace_data_module.TraceData(events) |
1020 m = timeline_model.TimelineModel(trace_data) | 1020 m = timeline_model.TimelineModel(trace_data) |
1021 self.assertEqual(0, len(m.flow_events)) | 1021 self.assertEqual(0, len(m.flow_events)) |
OLD | NEW |