Quantcast
Viewing all articles
Browse latest Browse all 93

Python 上觀察 Memory Leak

Zendesk 的「Hunting for Memory Leaks in Python applications」這篇介紹了 memory_profiler 這個工具,可以比較長期的觀察記憶體使用量的問題。

首先是先看正常與疑似異常的分析:

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

然後可以拉出資料型態資訊:

Image may be NSFW.
Clik here to view.

這些資訊要找 memory leak 還是蠻粗糙的,但算是給了個方向,而且用起來算是簡單...


Viewing all articles
Browse latest Browse all 93