Enable cpu profiling for ui tests (#9149)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-06-02 17:56:17 +07:00
committed by GitHub
parent d5919f3de9
commit 51cc82b175
6 changed files with 67 additions and 27 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
echo "Downloading profile"
token=$(./tool.sh generate-token --admin anticrm@hc.engineering sanity-ws)
current=$(date +%Y%m%d%H%M%S)
mkdir -p ./profiles
curl -X PUT "http://huly.local:3334/api/v1/manage?token=${token}&operation=profile-stop" -o "./profiles/profile-${current}".cpuprofile
./tool.sh profile http://localhost:3335 stop -o "./profiles/profile-${current}".cpuprofile
+1 -2
View File
@@ -1,3 +1,2 @@
echo "Start profiling on server"
token=$(./tool.sh generate-token --admin anticrm@hc.engineering sanity-ws)
curl -X PUT "http://huly.local:3334/api/v1/manage?token=${token}&operation=profile-start"
./tool-europe.sh profile http://localhost:3335 start