mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
Enable cpu profiling for ui tests (#9149)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user