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 "gpu/perftests/measurements.h" | 5 #include "gpu/perftests/measurements.h" |
6 | 6 |
| 7 #include "base/logging.h" |
| 8 #include "gpu/command_buffer/service/gpu_timing.h" |
7 #include "testing/perf/perf_test.h" | 9 #include "testing/perf/perf_test.h" |
8 | 10 |
9 namespace gpu { | 11 namespace gpu { |
10 | 12 |
11 Measurement::Measurement() : name(), wall_time(), cpu_time(), gpu_time() { | 13 Measurement::Measurement() : name(), wall_time(), cpu_time(), gpu_time() { |
12 } | 14 } |
13 Measurement::Measurement(const Measurement& m) | 15 Measurement::Measurement(const Measurement& m) |
14 : name(m.name), | 16 : name(m.name), |
15 wall_time(m.wall_time), | 17 wall_time(m.wall_time), |
16 cpu_time(m.cpu_time), | 18 cpu_time(m.cpu_time), |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 gpu_time = gpu_timer_->GetDeltaElapsed(); | 92 gpu_time = gpu_timer_->GetDeltaElapsed(); |
91 } | 93 } |
92 return Measurement(name, wall_time_, cpu_time_, | 94 return Measurement(name, wall_time_, cpu_time_, |
93 base::TimeDelta::FromMicroseconds(gpu_time)); | 95 base::TimeDelta::FromMicroseconds(gpu_time)); |
94 } | 96 } |
95 | 97 |
96 MeasurementTimers::~MeasurementTimers() { | 98 MeasurementTimers::~MeasurementTimers() { |
97 } | 99 } |
98 | 100 |
99 } // namespace gpu | 101 } // namespace gpu |
OLD | NEW |