liu.seSearch for publications in DiVA
Change search
ReferencesLink to record
Permanent link

Direct link
Heapy: A Memory Profiler and Debugger for Python
Linköping University, Department of Computer and Information Science.
2006 (English)Independent thesis Basic level (professional degree), 20 points / 30 hpStudent thesis
Abstract [en]

Excessive memory use may cause severe performance problems and system crashes. Without appropriate tools, it may be difficult or impossible to determine why a program is using too much memory. This applies even though Python provides automatic memory management --- garbage collection can help avoid many memory allocation bugs, but only to a certain extent due to the lack of information during program execution. There is still a need for tools helping the programmer to understand the memory behaviour of programs, especially in complicated situations. The primary motivation for Heapy is that there has been a lack of such tools for Python.

The main questions addressed by Heapy are how much memory is used by objects, what are the objects of most interest for optimization purposes, and why are objects kept in memory. Memory leaks are often of special interest and may be found by comparing snapshots of the heap population taken at different times. Memory profiles, using different kinds of classifiers that may include retainer information, can provide quick overviews revealing optimization possibilities not thought of beforehand. Reference patterns and shortest reference paths provide different perspectives of object access patterns to help explain why objects are kept in memory.

Place, publisher, year, edition, pages
2006. , 75 p.
Keyword [en]
memory profiling, memory leaks, debugging, optimization, testing, quality assurance, Python
National Category
Computer Science
URN: urn:nbn:se:liu:diva-7247ISRN: LITH-IDA-EX--06/043--SEOAI: diva2:22287
Available from: 2006-10-18 Created: 2006-10-18

Open Access in DiVA

fulltext(693 kB)1495 downloads
File information
File name FULLTEXT01.pdfFile size 693 kBChecksum SHA-1
Type fulltextMimetype application/pdf

By organisation
Department of Computer and Information Science
Computer Science

Search outside of DiVA

GoogleGoogle Scholar
Total: 1495 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

Total: 2613 hits
ReferencesLink to record
Permanent link

Direct link