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

Unified Diff: tools/telemetry/telemetry/value/improvement_direction.py

Issue 1313243003: [Telemetry] Introduce SummarizableValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/value/improvement_direction.py
diff --git a/third_party/ashmem/BUILD.gn b/tools/telemetry/telemetry/value/improvement_direction.py
similarity index 60%
copy from third_party/ashmem/BUILD.gn
copy to tools/telemetry/telemetry/value/improvement_direction.py
index 5e92b3773f55fb76b7c40303caaf2c66468ddcb8..aca75caef4dc2f3974afb8cf6f07713c736f5355 100644
--- a/third_party/ashmem/BUILD.gn
+++ b/tools/telemetry/telemetry/value/improvement_direction.py
@@ -2,11 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-assert(is_android)
+UP = 'up'
+DOWN = 'down'
-source_set("ashmem") {
- sources = [
- "ashmem-dev.c",
- "ashmem.h",
- ]
-}
+def IsValid(improvement_direction):
+ return improvement_direction in [UP, DOWN]
« no previous file with comments | « tools/telemetry/telemetry/value/histogram_unittest.py ('k') | tools/telemetry/telemetry/value/list_of_scalar_values.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698