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

Side by Side Diff: tools/telemetry/third_party/coverage/lab/platform_info.py

Issue 1366913004: Add coverage Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
3
4 """Dump information so we can get a quick look at what's available."""
5
6 import platform
7 import sys
8
9
10 def whatever(f):
11 try:
12 return f()
13 except:
14 return f
15
16
17 def dump_module(mod):
18 print("\n### {0} ---------------------------".format(mod.__name__))
19 for name in dir(mod):
20 if name.startswith("_"):
21 continue
22 print("{0:30s}: {1!r:.100}".format(name, whatever(getattr(mod, name))))
23
24
25 for mod in [platform, sys]:
26 dump_module(mod)
OLDNEW
« no previous file with comments | « tools/telemetry/third_party/coverage/lab/parser.py ('k') | tools/telemetry/third_party/coverage/lab/run_trace.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698