Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
When all else fails, sleep better.
  • Loading branch information
bawr committed Aug 24, 2017
commit 82c192082587973d15ad4f1756b217dd73f196e1
4 changes: 2 additions & 2 deletions vmprof/test/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ def test_vmprof_real_time_threaded(insert_foo, remove_bar):
import threading
import pprint
prof = vmprof.Profiler()
wait = 0.5
wait = 10.0
thread = threading.Thread(target=functime_foo, args=[wait, insert_foo])
with prof.measure(period=wait/4, real_time=True):
with prof.measure(period=wait/999, real_time=True):
thread.start()
functime_bar(wait, remove_bar)
thread.join()
Expand Down