Skip to content

Commit bd5a066

Browse files
author
Mathew Seymour
committed
[RD-36217] Reduced sleep time in _wait_for_result
- Decreasing the sleep time in _wait_for_result decreases the total time a user spends waiting for execute operations, but is still enough to prevent 1 CPU core from being signficantly utilised by a single call of _wait_for_result. - Bumped patch version - Updated README
1 parent 421cc66 commit bd5a066

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ The purpose is to provide a python client to connect to the debugger tools of a
88

99
**Currently supports** connecting to **Google-Chrome/Chromium** over the devtools protocol, via a wrapped websockets client. **Feel free to extend and add support for other browsers** as required.
1010

11+
For improved performance, install the wsaccel python lib https://pypi.org/project/wsaccel/
12+
1113
## Example Usage
1214

1315
Start Google-Chrome, passing a remote debugger port argument, for example on Ubuntu:

browserdebuggertools/sockethandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def _wait_for_result(self):
196196
try:
197197
return self._find_next_result()
198198
except ResultNotFoundError:
199-
time.sleep(0.5)
199+
time.sleep(0.01)
200200
raise DevToolsTimeoutException(
201201
"Reached timeout limit of {}, waiting for a response message".format(self.timeout)
202202
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name="browserdebuggertools",
14-
version="5.0.0",
14+
version="5.0.1",
1515
packages=PACKAGES,
1616
install_requires=requires,
1717
license="GNU General Public License v3",

0 commit comments

Comments
 (0)