Skip to content

Commit 32f19df

Browse files
authored
Update perf-testing-setup.yml
1 parent 7757eb1 commit 32f19df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ 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 &"
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 60 &"
8787
sleep 2 # Give it a moment to start
8888
py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}')
8989
echo "py_spy_id=$py_spy_id" >> $GITHUB_ENV
@@ -94,9 +94,10 @@ jobs:
9494
.ci/perf_tests/run-perftests.sh localhost $PORT ${{ env.TESTS_DIR_PATH }} ${{ matrix.test_to_run }}
9595
echo "Tests completed, terminating py-spy..."
9696
echo "Py-Spy pid is $py_spy_id"
97-
docker exec $container_id sh -c "kill -2 $py_spy_id"
97+
# docker exec $container_id sh -c "kill -2 $py_spy_id"
9898
docker exec $container_id sh -c "ls -ltr /home/site/wwwroot"
9999
docker exec $container_id sh -c "ls -ltr"
100+
sleep 2
100101
docker cp $container_id:/home/site/wwwroot/helloperf.svg .
101102
102103
- name: Upload profiling result to artifact

0 commit comments

Comments
 (0)