| 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={}):
|
|
|