projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: python agent: 'time' has no attribute 'clock'
[lttng-ust.git]
/
python-lttngust
/
lttngust
/
agent.py
diff --git
a/python-lttngust/lttngust/agent.py
b/python-lttngust/lttngust/agent.py
index ebfa2de1dbb8abbf0b51eb89556558efe034ea74..7b750bcc6f96fde62f0dd82a2935a80d678ecc8f 100644
(file)
--- a/
python-lttngust/lttngust/agent.py
+++ b/
python-lttngust/lttngust/agent.py
@@
-21,6
+21,7
@@
from __future__ import print_function
from __future__ import division
import lttngust.debug as dbg
import lttngust.loghandler
from __future__ import division
import lttngust.debug as dbg
import lttngust.loghandler
+import lttngust.compat
import lttngust.cmd
from io import open
import threading
import lttngust.cmd
from io import open
import threading
@@
-368,9
+369,9
@@
def _init_threads():
try:
dbg._pdebug('waiting for registration done (expecting {}, timeout is {} s)'.format(reg_expecting,
cur_timeout))
try:
dbg._pdebug('waiting for registration done (expecting {}, timeout is {} s)'.format(reg_expecting,
cur_timeout))
- t1 =
time.
clock()
+ t1 =
lttngust.compat._
clock()
reg_queue.get(timeout=cur_timeout)
reg_queue.get(timeout=cur_timeout)
- t2 =
time.
clock()
+ t2 =
lttngust.compat._
clock()
reg_expecting -= 1
dbg._pdebug('unblocked')
reg_expecting -= 1
dbg._pdebug('unblocked')
This page took
0.024664 seconds
and
4
git commands to generate.