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

Unified Diff: tools/perf/list_system_health_stories

Issue 2888133002: Modify list_system_health_stories to generate_system_health_csv (Closed)
Patch Set: Address Juan's nits Created 3 years, 7 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
« no previous file with comments | « tools/perf/generate_system_health_csv ('k') | tools/perf/page_sets/system_health/background_stories.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/list_system_health_stories
diff --git a/tools/perf/list_system_health_stories b/tools/perf/list_system_health_stories
deleted file mode 100755
index cfc494a279c08fb54c03514ac3d00273cdb10c7d..0000000000000000000000000000000000000000
--- a/tools/perf/list_system_health_stories
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import sys
-
-from core import path_util
-sys.path.insert(1, path_util.GetTelemetryDir()) # To resolve telemetry imports
-
-import page_sets
-
-
-def IterAllSystemHealthStories():
- for s in page_sets.SystemHealthStorySet(platform='desktop'):
- yield s
- for s in page_sets.SystemHealthStorySet(platform='mobile'):
- if len(s.SUPPORTED_PLATFORMS) < 2:
- yield s
-
-
-def main():
- system_health_stories = list(IterAllSystemHealthStories())
- system_health_stories.sort(key=lambda s: s.name)
- print '{0:60} {1}'.format('Story name', 'Supported platform')
- print '-' * 79
- for s in system_health_stories:
- p = s.SUPPORTED_PLATFORMS
- if len(p) == 2:
- p = 'all'
- else:
- p = list(p)[0]
- print '{0:60} {1}'.format(s.name, p)
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « tools/perf/generate_system_health_csv ('k') | tools/perf/page_sets/system_health/background_stories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698