OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
2 # Copyright 2016 The Chromium Authors. All rights reserved. | |
3 # Use of this source code is governed by a BSD-style license that can be | |
4 # found in the LICENSE file. | |
5 | |
6 import sys | |
7 | |
8 from core import path_util | |
9 sys.path.insert(1, path_util.GetTelemetryDir()) # To resolve telemetry imports | |
10 | |
11 import page_sets | |
12 | |
13 | |
14 def IterAllSystemHealthStories(): | |
15 for s in page_sets.SystemHealthStorySet(platform='desktop'): | |
16 yield s | |
17 for s in page_sets.SystemHealthStorySet(platform='mobile'): | |
18 if len(s.SUPPORTED_PLATFORMS) < 2: | |
19 yield s | |
20 | |
21 | |
22 def main(): | |
23 system_health_stories = list(IterAllSystemHealthStories()) | |
24 system_health_stories.sort(key=lambda s: s.name) | |
25 print '{0:60} {1}'.format('Story name', 'Supported platform') | |
26 print '-' * 79 | |
27 for s in system_health_stories: | |
28 p = s.SUPPORTED_PLATFORMS | |
29 if len(p) == 2: | |
30 p = 'all' | |
31 else: | |
32 p = list(p)[0] | |
33 print '{0:60} {1}'.format(s.name, p) | |
34 return 0 | |
35 | |
36 | |
37 if __name__ == '__main__': | |
38 sys.exit(main()) | |
OLD | NEW |