def memory_summary(address=None, redis_password=ray_constants.REDIS_DEFAULT_PASSWORD, group_by="NODE_ADDRESS", sort_by="OBJECT_SIZE", units="B", line_wrap=True, stats_only=False, num_entries=None): from ray.dashboard.memory_utils import memory_summary address = services.canonicalize_bootstrap_address(address) state = GlobalState() state._initialize_global_state( GcsClientOptions.from_redis_address(address, redis_password)) if stats_only: return get_store_stats(state) return (memory_summary(state, group_by, sort_by, line_wrap, units, num_entries) + get_store_stats(state))
def memory_summary(address=None, redis_password=ray_constants.REDIS_DEFAULT_PASSWORD, group_by="NODE_ADDRESS", sort_by="OBJECT_SIZE", units="B", line_wrap=True, stats_only=False, num_entries=None): from ray.dashboard.memory_utils import memory_summary if not address: address = services.get_ray_address_to_use_or_die() if address == "auto": address = services.find_redis_address_or_die() state = GlobalState() state._initialize_global_state(address, redis_password) if stats_only: return get_store_stats(state) return (memory_summary(state, group_by, sort_by, line_wrap, units, num_entries) + get_store_stats(state))