Improve profiler and integrate profiler in bench_one_batch_server (#6787)
This commit is contained in:
@@ -514,9 +514,7 @@ def _set_envs_and_config(server_args: ServerArgs):
|
||||
pid, exitcode = os.waitpid(0, os.WNOHANG)
|
||||
if exitcode != 0:
|
||||
logger.warning(
|
||||
"Child process unexpectedly failed with an exit code %d. pid=%d",
|
||||
exitcode,
|
||||
pid,
|
||||
f"Child process unexpectedly failed with {exitcode=}. {pid=}"
|
||||
)
|
||||
|
||||
signal.signal(signal.SIGCHLD, sigchld_handler)
|
||||
|
||||
@@ -350,6 +350,7 @@ async def start_profile_async(obj: Optional[ProfileReqInput] = None):
|
||||
activities=obj.activities,
|
||||
with_stack=obj.with_stack,
|
||||
record_shapes=obj.record_shapes,
|
||||
profile_by_stage=obj.profile_by_stage,
|
||||
)
|
||||
return Response(
|
||||
content="Start profiling.\n",
|
||||
|
||||
Reference in New Issue
Block a user