TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Memray: Python memory profiler

196 pointsby bx376over 1 year ago

14 comments

martinky24over 1 year ago
Memray is incredibly usable. In a few projects I was able to go from 0 to identifying my &quot;problem children&quot; in less than 15 minutes.<p>I don&#x27;t use it often, but when I need to I&#x27;m glad it&#x27;s a part of my toolbox!
评论 #38573143 未加载
评论 #38578769 未加载
bastihover 1 year ago
I have a lot of praise for using Memray as part of working out some memory kinks in a codebase I’m working on. It allowed me to quickly iterate on some hunches and then enshrine the resulting memory savings in tests via pytest-memray.
评论 #38577167 未加载
emmanueloga_over 1 year ago
Does anyone know how it compares to scalene?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;plasma-umass&#x2F;scalene">https:&#x2F;&#x2F;github.com&#x2F;plasma-umass&#x2F;scalene</a>
评论 #38573946 未加载
dangover 1 year ago
Related:<p><i>Memray: a memory profiler for Python</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31102089">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31102089</a> - April 2022 (48 comments)
LarsDu88over 1 year ago
memray is awesome. Used it to demonstrate massive memory savings wins for presentations<p>My favorite feature is the jupyter integration. Just decorate a cell with %%memray_flamegraph<p>I&#x27;d really like a version of this to spit out a csv or something for going straight into making plots
harikbover 1 year ago
bloomberg! they seem to be sponsoring a bunch of good work for OSS. Thank you!! I also happen to meet some of their engineers at Gophercon this year. Wouldn&#x27;t have thought they do so much! Thanks!
评论 #38578387 未加载
cozosover 1 year ago
Ive used Memray and it works great locally. But when I deployed my application over long running processes (i.e. in production) because I want to see memory usage over a long period of time, the profiler outputs get really large, like hundreds of gbs. They cause disk outages and also take forever to download and visualize with the flamegraphs. What do people use to understand memory usage of long running workloads in production?
ph4eversover 1 year ago
This is great! I managed to spot some inefficiënties in my ML inference pipeline by generating some flame graphs using Memray.
shikon7over 1 year ago
Does it also work with CUDA memory?
mike_hockover 1 year ago
All my memrays gather &#x27;round her.<p>Miner&#x27;s layday, stranger to blue water.
Loranubiover 1 year ago
Note that there is no support for Windows (only WSL).
bovermyerover 1 year ago
Now if only there was one of these for Node.js...
timothylaurentover 1 year ago
Memray is definitely best in class!
malkiaover 1 year ago
Is this working on Windows?
评论 #38583468 未加载