from cctbx.array_family import flex import scitbx.math.euler_angles from scitbx import matrix from libtbx.utils import format_cpu_times, getenv_bool from libtbx import adopt_init_args, slots_getstate_setstate import sys, time from libtbx import str_utils from libtbx.str_utils import prefix_each_line_suffix, format_value from libtbx import introspection from stdlib import math from cctbx import xray import cctbx.xray.structure_factors.global_counters from libtbx import easy_pickle from itertools import count enable_show_process_info = getenv_bool( "MMTBX_PRINT_STATISTICS_ENABLE_SHOW_PROCESS_INFO") time_collect_and_process = 0.0 def show_times(out=None): if (out is None): out = sys.stdout total = time_collect_and_process if (total > 0.01): print >> out, "Collect and process = %-7.2f" % time_collect_and_process return total def show_process_info(out): print >> out, "\\/" * 39 introspection.virtual_memory_info().show_if_available(out=out,
from cctbx.array_family import flex import scitbx.math.euler_angles from scitbx import matrix from libtbx.utils import format_cpu_times, getenv_bool from libtbx import adopt_init_args, slots_getstate_setstate import sys, time from libtbx import str_utils from libtbx.str_utils import prefix_each_line_suffix, format_value from libtbx import introspection from stdlib import math from cctbx import xray import cctbx.xray.structure_factors.global_counters from libtbx import easy_pickle from itertools import count enable_show_process_info = getenv_bool( "MMTBX_PRINT_STATISTICS_ENABLE_SHOW_PROCESS_INFO") time_collect_and_process = 0.0 def show_times(out = None): if(out is None): out = sys.stdout total = time_collect_and_process if(total > 0.01): print >> out, "Collect and process = %-7.2f" % time_collect_and_process return total def show_process_info(out): print >> out, "\\/"*39 introspection.virtual_memory_info().show_if_available(out=out, show_max=True) xray.structure_factors.global_counters.show(out=out) print >> out, format_cpu_times()