Skip to content

Commit e73b25e

Browse files
authored
Update perf-testing-setup.yml
1 parent 8325a99 commit e73b25e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 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 --duration 40 &"
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 30 &"
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
@@ -97,9 +97,8 @@ jobs:
9797
# docker exec $container_id sh -c "kill -2 $py_spy_id"
9898
py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}')
9999
echo "Py-Spy pid is $py_spy_id"
100-
sleep 40
101100
docker exec $container_id sh -c "ls -ltr /home/site/wwwroot"
102-
docker exec $container_id sh -c "ls -ltr"
101+
docker exec $container_id sh -c "find / -name helloperf.svg"
103102
docker cp $container_id:/home/site/wwwroot/helloperf.svg .
104103
105104
- name: Upload profiling result to artifact

0 commit comments

Comments
 (0)