I try to use ray.timeline to follow the script. I want to how ray works. I review the coda about ray.get and ray.put and ray.remote. There is profiling in there. But when I run the script shown below, no events about them are shown. The timeline shows below. Some inter events show out which made me confused. I can't combinate them with my workflow. There are many blanks between events in the timeline. What are they?
I hope the timeline contains the info about get, put, remote, and something about public API. And those inter events can combinate with my script. I hope the timeline can help me figure out what happened when the script is running.
Versions / Dependencies
ray 1.13.0
python 3.8.13
ubuntu 18.04
Reproduction script
import ray
import ray._private.profiling as profiling
import time
import os
os.environ['RAY_PROFILING']='1'
ray.init(num_cpus=1)
@ray.remote
def f(x):
# with profiling.profile("compute", extra_data={'key': 'val'}):
# time.perf_counter()
r=x*x
return r
# with profiling.profile("remote", extra_data={'key': 'val'}):
for _ in range(5):
future = f.remote(2.0)
# with profiling.profile("get"):
value = ray.get(future)
print(value)
y=ray.put('xxx')
print(ray.get(y))
import time
time.sleep(1)
ray.timeline(filename="./ray_timeline.json")
What happened + What you expected to happen
I try to use
ray.timeline
to follow the script. I want to how ray works. I review the coda aboutray.get
andray.put
andray.remote
. There is profiling in there. But when I run the script shown below, no events about them are shown. The timeline shows below. Some inter events show out which made me confused. I can't combinate them with my workflow. There are many blanks between events in the timeline. What are they?I hope the timeline contains the info about
get
,put
,remote
, and something about public API. And those inter events can combinate with my script. I hope the timeline can help me figure out what happened when the script is running.Versions / Dependencies
ray 1.13.0 python 3.8.13 ubuntu 18.04
Reproduction script
Issue Severity
High: It blocks me from completing my task.