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.

Profiling Python in Production

177 pointsby mauover 9 years ago

5 comments

mauover 9 years ago
Here is a profiler developed by dropbox using the same technique described in the article:<p>- <a href="https:&#x2F;&#x2F;blogs.dropbox.com&#x2F;tech&#x2F;2012&#x2F;07&#x2F;plop-low-overhead-profiling-for-python&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blogs.dropbox.com&#x2F;tech&#x2F;2012&#x2F;07&#x2F;plop-low-overhead-pro...</a><p>- <a href="https:&#x2F;&#x2F;github.com&#x2F;bdarnell&#x2F;plop" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bdarnell&#x2F;plop</a>
sitkackover 9 years ago
Reducing CPU load also<p>* reduces power usage, wear and tear on hardware<p>* gives more capacity for traffic surges<p>* gives more headroom for new features<p>* enables running on a smaller instance<p>This isn&#x27;t an argument against slow code, more of a suggestion to tune out unnecessary work.
评论 #10811677 未加载
评论 #10811781 未加载
sanxiynover 9 years ago
Here is another Python profiler intended for live use: <a href="https:&#x2F;&#x2F;github.com&#x2F;what-studio&#x2F;profiling" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;what-studio&#x2F;profiling</a>
iamspoiltover 9 years ago
This question might be bit naive but how is this approach any better or different from monitoring tools like NewRelic which does the profiling for you?
评论 #10813572 未加载
评论 #10811874 未加载
moonchromeover 9 years ago
&gt;It’s a large Python application (~30k LOC) which handles syncing via IMAP, SMTP, ActiveSync, and other protocols.<p>In what context is 30k LOC a large application ? 30k LOC is small enough that one programmer can write and easily have an overview of the entire codebase. Maybe it&#x27;s a typo and it&#x27;s 300k LOC
评论 #10813186 未加载
评论 #10815782 未加载