Skip to content

Commit fdbf460

Browse files
authored
Update perf-testing-setup.yml
1 parent 38ee2b7 commit fdbf460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/perf-testing-setup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
echo "Container id is $container_id"
8585
docker exec $container_id sh -c "pip install py-spy"
8686
# docker exec -d $container_id sh -c "py-spy record -p $worker_pid -o /home/site/wwwroot/helloperf.svg -f flamegraph --idle --nonblocking --rate 1500 --duration 5 &"
87-
docker exec -d $container_id sh -c "py-spy record -p $worker_pid -o /home/site/wwwroot/helloperf.svg -f flamegraph --idle --nonblocking --rate 1500 --duration 5 > /home/site/wwwroot/py-spy.log 2>&1 &"
87+
docker exec -d $container_id sh -c "py-spy record -p $worker_pid -o /home/site/wwwroot/helloperf.svg -f flamegraph --idle --nonblocking --rate 1500 > /home/site/wwwroot/py-spy.log 2>&1 &"
8888
# docker exec $container_id sh -c "py-spy record -p $worker_pid -o /home/site/wwwroot/helloperf.svg -f flamegraph --idle --nonblocking --rate 1500 --duration 5"
8989
sleep 2 # Give it a moment to start
9090
py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}')
@@ -97,7 +97,7 @@ jobs:
9797
echo "Tests completed, terminating py-spy..."
9898
docker exec $container_id cat /home/site/wwwroot/py-spy.log
9999
echo "Py-Spy pid is $py_spy_id"
100-
# docker exec $container_id sh -c "kill -2 $py_spy_id"
100+
docker exec $container_id sh -c "kill -2 $py_spy_id"
101101
py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}')
102102
echo "Py-Spy pid is $py_spy_id"
103103
docker exec $container_id sh -c "ls -ltr /home/site/wwwroot"

0 commit comments

Comments
 (0)