mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 18:45:03 +08:00
Move global state API out of global_state object. (#4857)
This commit is contained in:
committed by
Philipp Moritz
parent
ea8d7b4dc0
commit
6703519144
@@ -746,7 +746,7 @@ def timeline(redis_address):
|
||||
ray.init(redis_address=redis_address)
|
||||
time = datetime.today().strftime("%Y-%m-%d_%H-%M-%S")
|
||||
filename = "/tmp/ray-timeline-{}.json".format(time)
|
||||
ray.global_state.chrome_tracing_dump(filename=filename)
|
||||
ray.timeline(filename=filename)
|
||||
size = os.path.getsize(filename)
|
||||
logger.info("Trace file written to {} ({} bytes).".format(filename, size))
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user