[V1] EngineCore supports profiling (#10564)

Signed-off-by: Abatom <abzhonghua@gmail.com>
This commit is contained in:
Zhonghua Deng
2024-11-23 09:16:15 +08:00
committed by GitHub
parent 28598f3939
commit d345f409b7
5 changed files with 68 additions and 9 deletions

View File

@@ -346,10 +346,10 @@ class AsyncLLM(EngineClient):
logger.debug("Called check_health.")
async def start_profile(self) -> None:
raise ValueError("Not supported on V1 yet.")
await self.engine_core.profile(True)
async def stop_profile(self) -> None:
raise ValueError("Not supported on V1 yet.")
await self.engine_core.profile(False)
@property
def is_running(self) -> bool: