V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
ak918xp
V2EX  ›  Python

Python2 有什么不错的内存分析工具

  •  
  •   ak918xp · Oct 8, 2022 · 2642 views
    This topic created in 1306 days ago, the information mentioned may be changed or developed.

    如题,工作中有一些 python2 的大型项目,经常会有耗时过长优化或者内存上涨优化的情况。查了很多网站,大多是针对小型项目中某个函数的分析工具,至今唯一找到的比较好用的是 py-spy 但是只能分析 CPU 的变化,想问问万能的网友,python2 有没有内存分析的非侵入式的工具推荐呢,谢谢大家

    7 replies    2022-10-20 09:56:10 +08:00
    janxin
        1
    janxin  
       Oct 8, 2022
    知道的都是 py3 的...
    ClericPy
        2
    ClericPy  
       Oct 8, 2022
    realpython 刚推送的邮件里的, 没看, 趁热吧

    Episode #128: Using a Memory Profiler in Python & What It Can Teach You – The Real Python Podcast - https://realpython.com/podcasts/rpp/128/?utm_source=notification_summary&utm_medium=email&utm_campaign=2022-10-07
    ak918xp
        3
    ak918xp  
    OP
       Oct 9, 2022
    @ClericPy 谢谢你的回复,我把你链接中的工具都看过,都是支持 py3 的,不支持 py2
    ak918xp
        4
    ak918xp  
    OP
       Oct 9, 2022
    @janxin 是啊,我找了半天也发现是这个结果
    ClericPy
        5
    ClericPy  
       Oct 9, 2022 via Android
    @ak918xp 我就是看到了随手发上来了... 我用 py2 的年代这类工具用的少,最后一次处理性能瓶颈还是用状态机统计日志找到的,非侵入式的确实 py3 的很常见一点,直接拿 pid 到当前栈里溜达一波那种
    skywatcher
        6
    skywatcher  
       Oct 10, 2022
    扩内存,改造 py3😂
    ak918xp
        7
    ak918xp  
    OP
       Oct 20, 2022
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3250 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 13:08 · PVG 21:08 · LAX 06:08 · JFK 09:08
    ♥ Do have faith in what you're doing.