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

Unified 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, 3 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/third_party/coverage/lab/platform_info.py
diff --git a/tools/telemetry/third_party/coverage/lab/platform_info.py b/tools/telemetry/third_party/coverage/lab/platform_info.py
new file mode 100644
index 0000000000000000000000000000000000000000..8caea50f977871f195699c38264bbec31b45ff37
--- /dev/null
+++ b/tools/telemetry/third_party/coverage/lab/platform_info.py
@@ -0,0 +1,26 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+"""Dump information so we can get a quick look at what's available."""
+
+import platform
+import sys
+
+
+def whatever(f):
+ try:
+ return f()
+ except:
+ return f
+
+
+def dump_module(mod):
+ print("\n### {0} ---------------------------".format(mod.__name__))
+ for name in dir(mod):
+ if name.startswith("_"):
+ continue
+ print("{0:30s}: {1!r:.100}".format(name, whatever(getattr(mod, name))))
+
+
+for mod in [platform, sys]:
+ dump_module(mod)
« 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