AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(platform): add py-spy profiling support
Zamil Majdyc168277b1d89
diff --git a/autogpt_platform/backend/pyproject.toml b/autogpt_platform/backend/pyproject.tomlindex 3ff03a3d69..76086d1bac 100644--- a/autogpt_platform/backend/pyproject.toml+++ b/autogpt_platform/backend/pyproject.toml@@ -47,6 +47,7 @@ prisma = "^0.15.0"prometheus-client = "^0.22.1"psutil = "^7.0.0"psycopg2-binary = "^2.9.10"+py-spy = "^0.4.0"pydantic = { extras = ["email"], version = "^2.11.7" }pydantic-settings = "^2.10.1"pytest = "^8.4.1"diff --git a/autogpt_platform/docker-compose.platform.yml b/autogpt_platform/docker-compose.platform.ymlindex 74ad5e1856..b26ff4dae4 100644--- a/autogpt_platform/docker-compose.platform.yml+++ b/autogpt_platform/docker-compose.platform.yml@@ -59,6 +59,8 @@ services:dockerfile: autogpt_platform/backend/Dockerfiletarget: servercommand: ["python", "-m", "backend.rest"]+ cap_add:+ - SYS_PTRACEdevelop:watch:- path: ./@@ -107,6 +109,8 @@ services:dockerfile: autogpt_platform/backend/Dockerfiletarget: servercommand: ["python", "-m", "backend.exec"]+ cap_add:+ - SYS_PTRACEdevelop:watch:- path: ./@@ -154,6 +158,8 @@ services:dockerfile: autogpt_platform/backend/Dockerfiletarget: servercommand: ["python", "-m", "backend.ws"]+ cap_add:+ - SYS_PTRACEdevelop:watch:- path: ./@@ -195,6 +201,8 @@ services:dockerfile: autogpt_platform/backend/Dockerfiletarget: servercommand: ["python", "-m", "backend.db"]+ cap_add:+ - SYS_PTRACEdevelop:watch:- path: ./@@ -221,6 +229,8 @@ services:dockerfile: autogpt_platform/backend/Dockerfiletarget: servercommand: ["python", "-m", "backend.scheduler"]+ cap_add:+ - SYS_PTRACEdevelop:watch:- path: ./@@ -278,6 +288,8 @@ services:dockerfile: autogpt_platform/backend/Dockerfiletarget: servercommand: ["python", "-m", "backend.notification"]+ cap_add:+ - SYS_PTRACEdevelop:watch:- path: ./