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.
 
get_test_structures_paths()
Returns dictionary of short name + full path to read in test structures.
 
get_input_path(filename)
Get the full path to a file in the structures directory.
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?