Update call to py-spy to conform to new API (#5758)

This commit is contained in:
Mitchell Stern 2019-09-23 14:52:23 -07:00 committed by Robert Nishihara
parent 249ca2cf9e
commit b03147e7bf
2 changed files with 2 additions and 2 deletions

View file

@ -751,7 +751,7 @@ workers=$(
for worker in $workers; do
echo "Stack dump for $worker";
pid=`echo $worker | awk '{print $2}'`;
sudo $pyspy --pid $pid --dump;
sudo $pyspy dump --pid $pid;
echo;
done
"""

View file

@ -73,7 +73,7 @@ extras = {
"rllib": [
"pyyaml", "gym[atari]", "opencv-python-headless", "lz4", "scipy"
],
"debug": ["psutil", "setproctitle", "py-spy"],
"debug": ["psutil", "setproctitle", "py-spy >= 0.2.0"],
"dashboard": ["aiohttp", "psutil", "setproctitle"],
"serve": ["uvicorn", "pygments", "werkzeug"],
}