python 內存分析

pip install memory-profiler
from memory_profiler import profile

# @profile(precision=4, stream=open('memory_profiler.log','w+'))
@profile
def func():
    ... ...

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