Skip to content

Commit 38ee2b7

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ jobs:
8383
echo "Starting py-spy in background..."
8484
echo "Container id is $container_id"
8585
docker exec $container_id sh -c "pip install py-spy"
86-
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 $container_id sh -c "py-spy record -p $worker_pid -o /home/site/wwwroot/helloperf.svg -f flamegraph --idle --nonblocking --rate 1500 --duration 5"
86+
# 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 &"
88+
# 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"
8889
sleep 2 # Give it a moment to start
8990
py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}')
9091
echo "py_spy_id=$py_spy_id" >> $GITHUB_ENV
@@ -94,6 +95,7 @@ jobs:
9495
chmod 755 .ci/perf_tests/run-perftests.sh
9596
.ci/perf_tests/run-perftests.sh localhost $PORT ${{ env.TESTS_DIR_PATH }} ${{ matrix.test_to_run }}
9697
echo "Tests completed, terminating py-spy..."
98+
docker exec $container_id cat /home/site/wwwroot/py-spy.log
9799
echo "Py-Spy pid is $py_spy_id"
98100
# docker exec $container_id sh -c "kill -2 $py_spy_id"
99101
py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}')

0 commit comments

Comments
 (0)