File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
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 --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 &"
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
97
97
# docker exec $container_id sh -c "kill -2 $py_spy_id"
98
98
py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}')
99
99
echo "Py-Spy pid is $py_spy_id"
100
- sleep 40
101
100
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 "
103
102
docker cp $container_id:/home/site/wwwroot/helloperf.svg .
104
103
105
104
- name : Upload profiling result to artifact
You can’t perform that action at this time.
0 commit comments