| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <link rel="import" href="/tracing/extras/vsync/vsync_auditor.html"> | 8 <link rel="import" href="/tracing/extras/vsync/vsync_auditor.html"> |
| 9 <link rel="import" href="/tracing/model/counter_series.html"> | 9 <link rel="import" href="/tracing/model/counter_series.html"> |
| 10 <link rel="import" href="/tracing/model/model.html"> | 10 <link rel="import" href="/tracing/model/model.html"> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 test('findMultipleVsyncs', function() { | 73 test('findMultipleVsyncs', function() { |
| 74 testFindVSyncTimestamps([ | 74 testFindVSyncTimestamps([ |
| 75 [buildSlice('VSYNC', 1), buildSlice('MessageLoop::RunTask', 2)], | 75 [buildSlice('VSYNC', 1), buildSlice('MessageLoop::RunTask', 2)], |
| 76 [buildSlice('MessageLoop::RunTask', 3)], | 76 [buildSlice('MessageLoop::RunTask', 3)], |
| 77 [buildSlice('MessageLoop::RunTask', 4), buildSlice('VSYNC', 5)], | 77 [buildSlice('MessageLoop::RunTask', 4), buildSlice('VSYNC', 5)], |
| 78 [buildSlice('VSYNC', 6), buildSlice('VSYNC', 7)] | 78 [buildSlice('VSYNC', 6), buildSlice('VSYNC', 7)] |
| 79 ], [], [1, 5, 6, 7]); | 79 ], [], [1, 5, 6, 7]); |
| 80 }); | 80 }); |
| 81 | 81 |
| 82 test('filterNearDuplicates', function() { |
| 83 testFindVSyncTimestamps([ |
| 84 [buildSlice('VSYNC', 1), buildSlice('VSYNC', 1)], |
| 85 [buildSlice('VSYNC', 2), buildSlice('VSYNC', 2.1)], |
| 86 [buildSlice('VSYNC', 3), buildSlice('VSYNC', 4)], |
| 87 ], [], [1, 2, 3, 4]); |
| 88 }); |
| 89 |
| 82 test('findMultipleAndroidVsyncs', function() { | 90 test('findMultipleAndroidVsyncs', function() { |
| 83 testFindVSyncTimestamps([ | 91 testFindVSyncTimestamps([ |
| 84 [buildSlice('MessageLoop::RunTask', 2)], | 92 [buildSlice('MessageLoop::RunTask', 2)], |
| 85 [buildSlice('MessageLoop::RunTask', 3)], | 93 [buildSlice('MessageLoop::RunTask', 3)], |
| 86 [buildSlice('MessageLoop::RunTask', 4)] | 94 [buildSlice('MessageLoop::RunTask', 4)] |
| 87 ], | 95 ], |
| 88 [ | 96 [ |
| 89 { | 97 { |
| 90 category: 'android', | 98 category: 'android', |
| 91 name: 'VSYNC-app', | 99 name: 'VSYNC-app', |
| (...skipping 14 matching lines...) Expand all Loading... |
| 106 test('findDifferentPrecisions', function() { | 114 test('findDifferentPrecisions', function() { |
| 107 // vblank has higher precision than RenderWidgetHostViewAndroid::OnVSync. | 115 // vblank has higher precision than RenderWidgetHostViewAndroid::OnVSync. |
| 108 testFindVSyncTimestamps([ | 116 testFindVSyncTimestamps([ |
| 109 [buildSlice('RenderWidgetHostViewAndroid::OnVSync', 1), | 117 [buildSlice('RenderWidgetHostViewAndroid::OnVSync', 1), |
| 110 buildSlice('vblank', 2), | 118 buildSlice('vblank', 2), |
| 111 buildSlice('RenderWidgetHostViewAndroid::OnVSync', 3)] | 119 buildSlice('RenderWidgetHostViewAndroid::OnVSync', 3)] |
| 112 ], [], [2]); | 120 ], [], [2]); |
| 113 }); | 121 }); |
| 114 | 122 |
| 115 test('findBeginFrame', function() { | 123 test('findBeginFrame', function() { |
| 116 var title = 'Scheduler::BeginFrame'; | 124 var title = 'DisplayScheduler::BeginFrame'; |
| 117 testFindVSyncTimestamps([[ | 125 testFindVSyncTimestamps([[ |
| 118 new ThreadSlice('', title, 0, 2, { args: { frame_time_us: 1000 } }), | 126 new ThreadSlice('', title, 0, 2, { args: { frame_time_us: 1000 } }), |
| 119 new ThreadSlice('', title, 0, 4, { args: { frame_time_us: 3000 } }) | 127 new ThreadSlice('', title, 0, 4, { args: { frame_time_us: 3000 } }) |
| 120 ]], [], [1, 3]); | 128 ]], [], [1, 3]); |
| 121 }); | 129 }); |
| 122 | 130 |
| 123 test('findBeginFrame_noFrameTime', function() { | 131 test('findBeginFrame_noFrameTime', function() { |
| 124 var title = 'Scheduler::BeginFrame'; | 132 var title = 'DisplayScheduler::BeginFrame'; |
| 125 testFindVSyncTimestamps([[ | 133 testFindVSyncTimestamps([[ |
| 126 new ThreadSlice('', title, 0, 2, {}), | 134 new ThreadSlice('', title, 0, 2, {}), |
| 127 new ThreadSlice('', title, 0, 4, { args: {} }) | 135 new ThreadSlice('', title, 0, 4, { args: {} }) |
| 128 ]], [], []); | 136 ]], [], []); |
| 129 }); | 137 }); |
| 130 }); | 138 }); |
| 131 </script> | 139 </script> |
| OLD | NEW |