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

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

Issue 809393002: Added support for improvement_direction to relevant values, which is propogated to chartjson. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix linter issues Created 5 years, 11 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 61%
copy from third_party/ashmem/BUILD.gn
copy to tools/telemetry/telemetry/value/improvement_direction.py
index a3f7e6a28657131501024ba45b28627ae0893fff..eea76f1e7a738ab42479bacbab0741abea4dcd53 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.h",
- "ashmem-dev.c",
- ]
-}
+def IsValid(improvement_direction):
+ return improvement_direction in [UP, DOWN]

Powered by Google App Engine
This is Rietveld 408576698