Skip to content

Commit 22c5996

Browse files
committed
fix
1 parent da944f8 commit 22c5996

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

lightllm/server/api_http.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -365,24 +365,6 @@ async def kv_move_status(websocket: WebSocket):
365365
return
366366

367367

368-
@app.get("/profiler_start")
369-
async def profiler_start() -> Response:
370-
if g_objs.args.enable_profiling:
371-
await g_objs.httpserver_manager.profiler_cmd("start")
372-
return JSONResponse({"status": "ok"})
373-
else:
374-
return JSONResponse({"message": "Profiling support not enabled"}, status_code=400)
375-
376-
377-
@app.get("/profiler_stop")
378-
async def profiler_stop() -> Response:
379-
if g_objs.args.enable_profiling:
380-
await g_objs.httpserver_manager.profiler_cmd("stop")
381-
return JSONResponse({"status": "ok"})
382-
else:
383-
return JSONResponse({"message": "Profiling support not enabled"}, status_code=400)
384-
385-
386368
@app.on_event("shutdown")
387369
async def shutdown():
388370
logger.info("Received signal to shutdown. Performing graceful shutdown...")

0 commit comments

Comments
 (0)