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

Side by Side Diff: cc/trees/layer_tree_host_perftest.cc

Issue 56573002: cc: Only report calc_draw_props_count. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix stray diff Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_common_perftest.cc ('k') | testing/perf/perf_test.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 if (!animation_driven_drawing_) 81 if (!animation_driven_drawing_)
82 impl->SetNeedsRedraw(); 82 impl->SetNeedsRedraw();
83 if (full_damage_each_frame_) 83 if (full_damage_each_frame_)
84 impl->SetFullRootLayerDamage(); 84 impl->SetFullRootLayerDamage();
85 } 85 }
86 86
87 virtual void BuildTree() {} 87 virtual void BuildTree() {}
88 88
89 virtual void AfterTest() OVERRIDE { 89 virtual void AfterTest() OVERRIDE {
90 CHECK(!test_name_.empty()) << "Must SetTestName() before AfterTest()."; 90 CHECK(!test_name_.empty()) << "Must SetTestName() before AfterTest().";
91 perf_test::PrintResult("layer_tree_host_frame_count", "", test_name_,
92 draw_timer_.NumLaps(), "frame_count", true);
93 perf_test::PrintResult("layer_tree_host_frame_time", "", test_name_, 91 perf_test::PrintResult("layer_tree_host_frame_time", "", test_name_,
94 1000 * draw_timer_.MsPerLap(), "us", true); 92 1000 * draw_timer_.MsPerLap(), "us", true);
95 if (measure_commit_cost_) { 93 if (measure_commit_cost_) {
96 perf_test::PrintResult("layer_tree_host_commit_count", "", test_name_,
97 commit_timer_.NumLaps(), "commit_count", true);
98 perf_test::PrintResult("layer_tree_host_commit_time", "", test_name_, 94 perf_test::PrintResult("layer_tree_host_commit_time", "", test_name_,
99 1000 * commit_timer_.MsPerLap(), "us", true); 95 1000 * commit_timer_.MsPerLap(), "us", true);
100 } 96 }
101 } 97 }
102 98
103 protected: 99 protected:
104 LapTimer draw_timer_; 100 LapTimer draw_timer_;
105 LapTimer commit_timer_; 101 LapTimer commit_timer_;
106 102
107 std::string test_name_; 103 std::string test_name_;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 358
363 TEST_F(PageScaleImplSidePaintingPerfTest, HeavyPage) { 359 TEST_F(PageScaleImplSidePaintingPerfTest, HeavyPage) {
364 measure_commit_cost_ = true; 360 measure_commit_cost_ = true;
365 SetTestName("heavy_page_page_scale"); 361 SetTestName("heavy_page_page_scale");
366 ReadTestFile("heavy_layer_tree"); 362 ReadTestFile("heavy_layer_tree");
367 RunTestWithImplSidePainting(); 363 RunTestWithImplSidePainting();
368 } 364 }
369 365
370 } // namespace 366 } // namespace
371 } // namespace cc 367 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_perftest.cc ('k') | testing/perf/perf_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698