Change search
ReferencesLink to record
Permanent link

Direct link
Runtime Memory Instrumentation to Analyze and Reduce Heap Memory Usage.
KTH, School of Computer Science and Communication (CSC).
2012 (English)Independent thesis Advanced level (professional degree), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Heap memory is used by almost all applications, and the amount required is ever increasing as applications become more complex. Reducing memory usage can be important, especially in embedded and server applications where memory is a major constraint. This thesis describes two techniques that can be used together to help developers reduce memory usage in their applications. The first technique allows the use of compiler generated debugging information to retrieve the type of a heap allocation in runtime. The second details how a dynamic binary instrumentation framework can help in determining how many bytes of an individual allocation that actually gets used during runtime. Lastly, we describe a prototype implementation of a profiler which utilizes the aforementioned techniques.

Abstract [sv]

Nästan alla program använder heap-minne och när program blir mer komplicerade så ökar minneskraven. Att få program minnessnåla kan vara viktigt, speciellt i inbyggda system med lite minne eller på servrar där minnet ofta är en begränsande faktor. Denna rapport beskriver två metoder som kan användas tillsammans för att minska minnesåtgången av program. Den första metoden använder debug data från kompilatorn för att få ut datatypen av alla minnesallokeringar under körning av programmet. Den andra räknar ut hur mycket av en heap-allokering som används med hjälp av dynamisk binärinstrumentering. Till sist beskriver vi en prototyp av en heap-profilerare som använder tidigare nämnda metoder.

Place, publisher, year, edition, pages
Trita-CSC-E, ISSN 1653-5715 ; 2012:010
National Category
Computer Science
URN: urn:nbn:se:kth:diva-130921OAI: diva2:654367
Educational program
Master of Science in Engineering - Computer Science and Technology
Available from: 2013-10-07 Created: 2013-10-07

Open Access in DiVA

No full text

Other links
By organisation
School of Computer Science and Communication (CSC)
Computer Science

Search outside of DiVA

GoogleGoogle Scholar
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: 16 hits
ReferencesLink to record
Permanent link

Direct link