Skip to content

Commit

Permalink
Print stats every ten minutes.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Oct 6, 2014
1 parent 4ce05da commit 7026950
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions obspy/core/tests/test_waveform_plugins.py
Expand Up @@ -192,6 +192,8 @@ def test_readThreadSafe(self):
if format in ['SEGY', 'SU', 'SEG2']:
continue

print('=' * 60)
print(format)
yappi.clear_stats()
yappi.set_clock_type('wall')
yappi.start()
Expand Down Expand Up @@ -243,6 +245,8 @@ def testFunction(streams, cond):
msg = 'Not all threads finished after %d seconds!' % (
timeout)
print(msg, file=sys.stderr)
yappi.get_func_stats().print_all()
yappi.get_thread_stats().print_all()
start = time.time()
# Compare all values which should be identical and clean up
# files
Expand All @@ -253,8 +257,6 @@ def testFunction(streams, cond):
os.remove(outfile[:-4] + '.QHD')

yappi.stop()
print('=' * 60)
print(format)
yappi.get_func_stats().print_all()
yappi.get_thread_stats().print_all()

Expand Down

0 comments on commit 7026950

Please sign in to comment.