File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 83
83
echo "Starting py-spy in background..."
84
84
echo "Container id is $container_id"
85
85
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 &"
87
87
sleep 2 # Give it a moment to start
88
88
py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}')
89
89
echo "py_spy_id=$py_spy_id" >> $GITHUB_ENV
94
94
.ci/perf_tests/run-perftests.sh localhost $PORT ${{ env.TESTS_DIR_PATH }} ${{ matrix.test_to_run }}
95
95
echo "Tests completed, terminating py-spy..."
96
96
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"
98
98
docker exec $container_id sh -c "ls -ltr /home/site/wwwroot"
99
99
docker exec $container_id sh -c "ls -ltr"
100
+ sleep 2
100
101
docker cp $container_id:/home/site/wwwroot/helloperf.svg .
101
102
102
103
- name : Upload profiling result to artifact
You can’t perform that action at this time.
0 commit comments