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