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

Unified Diff: tracing/bin/memory_infra_remote_dump

Issue 3015743002: Fixes two connection issues with memory_infra_remote_dump. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/bin/memory_infra_remote_dump
diff --git a/tracing/bin/memory_infra_remote_dump b/tracing/bin/memory_infra_remote_dump
index 0ac184e5554a08cb152a5fafadc4b6ce8712d0e5..fbcfb1d14ffa75479df81c318bbc6b5e1d7c00a3 100755
--- a/tracing/bin/memory_infra_remote_dump
+++ b/tracing/bin/memory_infra_remote_dump
@@ -34,6 +34,7 @@ $ ./third_party/catapult/tracing/bin/memory_infra_remote_dump --port=1234
import argparse
import json
import os
+import requests
import sys
import tempfile
import time
@@ -47,9 +48,10 @@ except ImportError:
class TracingDevtoolsClient(object):
def __init__(self, host, port):
- url = 'ws://%s:%s/devtools/browser' % (host, port)
+ r = requests.get('http://%s:%s/json/version' % (host, port))
+ url = r.json()['webSocketDebuggerUrl']
print 'Connecting to ' + url
- self.ws = websocket.CreateConnection(url)
+ self.ws = websocket.create_connection(url)
self.cmd = 0
def send(self, method, params={}):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698