使用py-spy繪製python程序火焰圖

安裝:

pip install py-spy 

監控pid生成火焰圖,文件爲profile.svg

py-spy record -o profile.svg --pid pid

參考文檔:https://www.xingmal.com/article/article/1232585298689527808

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章