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

Unified Diff: tools/telemetry/telemetry/components/tvcm_stub.py

Issue 169283004: Introduce telemetry.web_components and a simple component-based Results object (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added HTML output, ready for review Created 6 years, 10 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/components/tvcm_stub.py
diff --git a/tools/telemetry/telemetry/components/tvcm_stub.py b/tools/telemetry/telemetry/components/tvcm_stub.py
new file mode 100644
index 0000000000000000000000000000000000000000..b91c306711cb3774cf4448c0528d5e554d9668d1
--- /dev/null
+++ b/tools/telemetry/telemetry/components/tvcm_stub.py
@@ -0,0 +1,15 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
tonyg 2014/02/19 16:44:32 2014
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+import os
+import sys
tonyg 2014/02/19 16:44:32 I think there should be some vertical space here.
+def _SetupTVCMPath():
slamm 2014/02/19 17:10:51 _SetupTVCMPath -> _SetupTvcmPath
+ tvcm_path = os.path.abspath(os.path.join(
+ os.path.dirname(__file__),
+ '..', '..', '..', '..',
+ 'third_party', 'trace-viewer', 'third_party', 'tvcm'))
+ assert os.path.exists(os.path.join(tvcm_path, 'tvcm', '__init__.py'))
+ if tvcm_path not in sys.path:
+ sys.path.append(tvcm_path)
tonyg 2014/02/19 16:44:32 I think we also have a util method that appends to
+
+_SetupTVCMPath()

Powered by Google App Engine
This is Rietveld 408576698