| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "components/scheduler/base/task_queue_manager.h" | 5 #include "components/scheduler/base/task_queue_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| 9 #include "base/time/default_tick_clock.h" | 11 #include "base/time/default_tick_clock.h" |
| 10 #include "components/scheduler/base/task_queue_impl.h" | 12 #include "components/scheduler/base/task_queue_impl.h" |
| 11 #include "components/scheduler/base/task_queue_manager_delegate_for_test.h" | 13 #include "components/scheduler/base/task_queue_manager_delegate_for_test.h" |
| 12 #include "components/scheduler/base/task_queue_selector.h" | 14 #include "components/scheduler/base/task_queue_selector.h" |
| 13 #include "components/scheduler/base/work_queue_sets.h" | 15 #include "components/scheduler/base/work_queue_sets.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "testing/perf/perf_test.h" | 17 #include "testing/perf/perf_test.h" |
| 16 | 18 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 max_tasks_in_flight_ = 200; | 142 max_tasks_in_flight_ = 200; |
| 141 Benchmark("run 10000 delayed tasks with eight queues", | 143 Benchmark("run 10000 delayed tasks with eight queues", |
| 142 base::Bind(&TaskQueueManagerPerfTest::ResetAndCallTestDelayedTask, | 144 base::Bind(&TaskQueueManagerPerfTest::ResetAndCallTestDelayedTask, |
| 143 base::Unretained(this), 10000)); | 145 base::Unretained(this), 10000)); |
| 144 } | 146 } |
| 145 | 147 |
| 146 // TODO(alexclarke): Add additional tests with different mixes of non-delayed vs | 148 // TODO(alexclarke): Add additional tests with different mixes of non-delayed vs |
| 147 // delayed tasks. | 149 // delayed tasks. |
| 148 | 150 |
| 149 } // namespace scheduler | 151 } // namespace scheduler |
| OLD | NEW |