summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-08 05:31:46 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-08 05:31:46 +0000
commitfd47e1bcecd99252a9ec27858f6420905ba06f46 (patch)
treef4e64818b59967d0360e5601827f3acf4b96fb21
parentb28d75cc2c3cba40f71ceda4bf163ef5089f3941 (diff)
downloadchromium_src-fd47e1bcecd99252a9ec27858f6420905ba06f46.zip
chromium_src-fd47e1bcecd99252a9ec27858f6420905ba06f46.tar.gz
chromium_src-fd47e1bcecd99252a9ec27858f6420905ba06f46.tar.bz2
cc: Only report calc_draw_props_time.
The perf dashboard is configured to monitor every trace output by the cc_perftests. Here, we were outputting two traces that represent the exact same thing. This only causes more work for the perf sheriffs. So I'm cutting it down to one. Incidentally, this eliminates a bug where the dashboard thought that a higher count was a regression. This also improves the precision by supporting decimals. BUG=313537 Review URL: https://codereview.chromium.org/56573002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233775 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--cc/trees/layer_tree_host_common_perftest.cc6
-rw-r--r--cc/trees/layer_tree_host_perftest.cc4
-rw-r--r--testing/perf/perf_test.cc16
-rw-r--r--testing/perf/perf_test.h6
4 files changed, 22 insertions, 10 deletions
diff --git a/cc/trees/layer_tree_host_common_perftest.cc b/cc/trees/layer_tree_host_common_perftest.cc
index d940709..756a5ea 100644
--- a/cc/trees/layer_tree_host_common_perftest.cc
+++ b/cc/trees/layer_tree_host_common_perftest.cc
@@ -56,12 +56,6 @@ class LayerTreeHostCommonPerfTest : public LayerTreeTest {
virtual void AfterTest() OVERRIDE {
CHECK(!test_name_.empty()) << "Must SetTestName() before TearDown().";
- perf_test::PrintResult("calc_draw_props_count",
- "",
- test_name_,
- timer_.NumLaps(),
- "count",
- true);
perf_test::PrintResult("calc_draw_props_time",
"",
test_name_,
diff --git a/cc/trees/layer_tree_host_perftest.cc b/cc/trees/layer_tree_host_perftest.cc
index 79ee46b..5f15ca6 100644
--- a/cc/trees/layer_tree_host_perftest.cc
+++ b/cc/trees/layer_tree_host_perftest.cc
@@ -88,13 +88,9 @@ class LayerTreeHostPerfTest : public LayerTreeTest {
virtual void AfterTest() OVERRIDE {
CHECK(!test_name_.empty()) << "Must SetTestName() before AfterTest().";
- perf_test::PrintResult("layer_tree_host_frame_count", "", test_name_,
- draw_timer_.NumLaps(), "frame_count", true);
perf_test::PrintResult("layer_tree_host_frame_time", "", test_name_,
1000 * draw_timer_.MsPerLap(), "us", true);
if (measure_commit_cost_) {
- perf_test::PrintResult("layer_tree_host_commit_count", "", test_name_,
- commit_timer_.NumLaps(), "commit_count", true);
perf_test::PrintResult("layer_tree_host_commit_time", "", test_name_,
1000 * commit_timer_.MsPerLap(), "us", true);
}
diff --git a/testing/perf/perf_test.cc b/testing/perf/perf_test.cc
index fd39f87..0d5abc0 100644
--- a/testing/perf/perf_test.cc
+++ b/testing/perf/perf_test.cc
@@ -63,6 +63,22 @@ void PrintResult(const std::string& measurement,
important);
}
+void PrintResult(const std::string& measurement,
+ const std::string& modifier,
+ const std::string& trace,
+ double value,
+ const std::string& units,
+ bool important) {
+ PrintResultsImpl(measurement,
+ modifier,
+ trace,
+ base::DoubleToString(value),
+ std::string(),
+ std::string(),
+ units,
+ important);
+}
+
void AppendResult(std::string& output,
const std::string& measurement,
const std::string& modifier,
diff --git a/testing/perf/perf_test.h b/testing/perf/perf_test.h
index 4505202..36e2916 100644
--- a/testing/perf/perf_test.h
+++ b/testing/perf/perf_test.h
@@ -28,6 +28,12 @@ void PrintResult(const std::string& measurement,
size_t value,
const std::string& units,
bool important);
+void PrintResult(const std::string& measurement,
+ const std::string& modifier,
+ const std::string& trace,
+ double value,
+ const std::string& units,
+ bool important);
void AppendResult(std::string& output,
const std::string& measurement,