Package schrodinger :: Package test :: Package performance :: Module general
[hide private]
[frames] | no frames]

Module general

General tools for performance tests.

Functions [hide private]
 
get_process_name(process)
Pretty-print a psutil.Process object.
 
wait_for_successful_completion(process, timeout=300)
Wait until process is complete.
 
call_in_loop(func, iterations, *args, **kwargs)
Calls function repeatedly to normalize test data.
Variables [hide private]
  MAX_TIME = 300
  __package__ = 'schrodinger.test.performance'
Function Details [hide private]

wait_for_successful_completion(process, timeout=300)

 

Wait until process is complete.

If recursive is true, also wait for all child processes to complete. If the process is still running after timeout, kill it and all its children and raise an exception. If the exit code is not 0, raise an exception.

Parameters:
  • process - Process to watch, waiting for completion.
  • timeout - Duration (in seconds) to wait for the process.
  • recursive - Should the child processes of process be monitored as well?