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

Unified Diff: tools/telemetry/examples/benchmarks/__init__.py

Issue 1368533002: [Telemetry] Add an example for adding an end to end Telemetry benchmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Ethan comment message_loop -> v8 change 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/examples/benchmarks/__init__.py
diff --git a/tools/perf/core/__init__.py b/tools/telemetry/examples/benchmarks/__init__.py
similarity index 65%
copy from tools/perf/core/__init__.py
copy to tools/telemetry/examples/benchmarks/__init__.py
index e967a354ad271b7d3f82bcd4c21760e1222ae3f1..4f23bd438ad0c8ad198b425f2c713f25093146ce 100644
--- a/tools/perf/core/__init__.py
+++ b/tools/telemetry/examples/benchmarks/__init__.py
@@ -1,8 +1,7 @@
# Copyright 2015 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.append(path_util.GetTelemetryDir())
+import os
+import sys
+sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
aiolos (Not reviewing) 2015/11/06 18:15:21 Since this is an example, could you include a comm
nednguyen 2015/11/06 18:36:15 Done.

Powered by Google App Engine
This is Rietveld 408576698