mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Chrome trace timeline with sliders. (#731)
* Trace timeline with sliders. * Trace. * Switched ujson to json. * Fixed tests. * linting fixes * Fixed bug. * Cleaned up code. * Fixes according to comments. * removed checkpoints. * Undid accidental delete. * Fixed linting error. * Added documentation to notebook. * Undid accidental deletes. * Add comments and small formatting fixes. * Small fix.
This commit is contained in:
committed by
Robert Nishihara
parent
420013774c
commit
2b3190ad13
+3
-2
@@ -1611,7 +1611,7 @@ class GlobalStateAPI(unittest.TestCase):
|
||||
profiles = ray.global_state.task_profiles(start=0, end=time.time())
|
||||
limited_profiles = ray.global_state.task_profiles(start=0,
|
||||
end=time.time(),
|
||||
num=1)
|
||||
num_tasks=1)
|
||||
if len(profiles) == num_calls and len(limited_profiles) == 1:
|
||||
break
|
||||
time.sleep(0.1)
|
||||
@@ -1676,7 +1676,8 @@ class GlobalStateAPI(unittest.TestCase):
|
||||
ray.get([actor.method.remote() for actor in actors])
|
||||
|
||||
path = os.path.join("/tmp/ray_test_trace")
|
||||
ray.global_state.dump_catapult_trace(path)
|
||||
task_info = ray.global_state.task_profiles(start=0, end=time.time())
|
||||
ray.global_state.dump_catapult_trace(path, task_info)
|
||||
|
||||
# TODO(rkn): This test is not perfect because it does not verify that
|
||||
# the visualization actually renders (e.g., the context of the dumped
|
||||
|
||||
Reference in New Issue
Block a user