Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: gpu/perftests/measurements.cc

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/perftests/measurements.h ('k') | gpu/perftests/texture_upload_perftest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/perftests/measurements.h ('k') | gpu/perftests/texture_upload_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698