"docs/vscode:/vscode.git/clone" did not exist on "70da0c07483bb0cbcc80a2094cf41b64cb30ac0f"
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):
def profile(self, is_start: bool = True):
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:
self.profiler.start()
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