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

Unified Diff: tools/perf/record_wpr

Issue 1633143003: [tools/perf] Resolve the import error when record_wpr tries to discover benchmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | tools/perf/scripts_smoke_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/record_wpr
diff --git a/tools/perf/record_wpr b/tools/perf/record_wpr
index dc4e153a667266b5c806e38700bd7fbfda0e1d97..b600c13fc3d604104b7950584f491f97591aa1eb 100755
--- a/tools/perf/record_wpr
+++ b/tools/perf/record_wpr
@@ -6,12 +6,16 @@ import os
import sys
+from core import path_util
from chrome_telemetry_build import chromium_config
sys.path.append(chromium_config.GetTelemetryDir())
from telemetry import record_wpr
+# This is required to resolve importing davclient in tools/perf/third_party/
+# when record_wpr try to dynamically discover benchmark classes.
+import third_party # pylint: disable=unused-import
+
if __name__ == '__main__':
- _perf_dir = os.path.dirname(__file__)
- sys.exit(record_wpr.Main(_perf_dir))
+ sys.exit(record_wpr.Main(path_util.GetPerfDir()))
« no previous file with comments | « no previous file | tools/perf/scripts_smoke_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698