File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 84
84
echo "Container id is $container_id"
85
85
docker exec $container_id sh -c "pip install py-spy"
86
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 &"
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 > /home/site/wwwroot/py-spy.log 2>&1 &"
88
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"
89
89
sleep 2 # Give it a moment to start
90
90
py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}')
97
97
echo "Tests completed, terminating py-spy..."
98
98
docker exec $container_id cat /home/site/wwwroot/py-spy.log
99
99
echo "Py-Spy pid is $py_spy_id"
100
- # docker exec $container_id sh -c "kill -2 $py_spy_id"
100
+ docker exec $container_id sh -c "kill -2 $py_spy_id"
101
101
py_spy_id=$(docker exec $container_id sh -c "ps aux | grep '[p]y-spy record'" | awk '{print $2}')
102
102
echo "Py-Spy pid is $py_spy_id"
103
103
docker exec $container_id sh -c "ls -ltr /home/site/wwwroot"
You can’t perform that action at this time.
0 commit comments