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

Unified Diff: tools/telemetry/telemetry/core/browser.py

Issue 12813013: [Telemetry] Cause web server to keep resources in memory and thread requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nduca comments Created 7 years, 9 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/core/browser.py
diff --git a/tools/telemetry/telemetry/core/browser.py b/tools/telemetry/telemetry/core/browser.py
index 38d755ac527a9db2716d09480b8d4a246c2cb624..03ce13cb624bd92bd1f3b4d832d11e35eca5fa66 100644
--- a/tools/telemetry/telemetry/core/browser.py
+++ b/tools/telemetry/telemetry/core/browser.py
@@ -172,23 +172,19 @@ class Browser(object):
def http_server(self):
return self._http_server
- def SetHTTPServerDirectory(self, path):
- if path:
- abs_path = os.path.abspath(path)
- if self._http_server and self._http_server.path == path:
- return
- else:
- abs_path = None
+ def SetHTTPServerDirectories(self, paths):
+ if paths and self._http_server and self._http_server.paths == paths:
+ return
if self._http_server:
self._http_server.Close()
self._http_server = None
- if not abs_path:
+ if not paths:
return
self._http_server = temporary_http_server.TemporaryHTTPServer(
- self._browser_backend, abs_path)
+ self._browser_backend, paths)
def SetReplayArchivePath(self, archive_path):
if self._wpr_server:
« no previous file with comments | « tools/perf/page_sets/page_cycler/moz2.json ('k') | tools/telemetry/telemetry/core/chrome/inspector_console_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698