How severe does this issue affect your experience of using Ray?
- High: It blocks me to complete my task.
I run a script with ray.timeline()
with ray 1.13.0. When I visualized the JSON file it doesn’t match my script.
import ray
import ray._private.profiling as profiling
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'}):
r=x*x
return r
with profiling.profile("remote", extra_data={'key': 'val'}):
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")
there is the timeline shown in chrome.
I try to figure out where or who gives fetch_and_run_function
. Such as submit_task
and task::f()
I can understand the meanings.
I profiled get
and remote
and I can’t find them anywhere. I reviewed the ray core’s code. there is also a profile about ray.get
but it doesn’t show in the timeline.