Unverified Commit 8dd0db68 authored by Boyuan Feng's avatar Boyuan Feng Committed by GitHub
Browse files

[UX] improve profiler error message (#31125)


Signed-off-by: default avatarBoyuan Feng <boyuan@meta.com>
parent 022f3cea
...@@ -634,7 +634,12 @@ class Worker(WorkerBase): ...@@ -634,7 +634,12 @@ class Worker(WorkerBase):
def profile(self, is_start: bool = True): def profile(self, is_start: bool = True):
if self.profiler is None: if self.profiler is None:
raise RuntimeError("Profiling is not enabled.") raise RuntimeError(
"Profiling is not enabled. Please set --profiler-config to enable "
"profiling. Example: "
"'--profiler-config.profiler=torch --profiler-config.torch_profiler_dir"
"=YOUR_DIR_PATH_TO_DUMP_TRACE'"
)
if is_start: if is_start:
self.profiler.start() self.profiler.start()
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment