Akademy 2009 ~ Technical Papers July 3 to 11 2009 ~ Las Palmas, Gran Canaria, Spain Benchmarking of software for mobile devices Christian Strømme Helge Welde Bergen University College Bergen University College +47 90 19 02 94 +47 90 65 30 54
[email protected] [email protected] ABSTRACT The two most interesting columns in Exmap are Effective This is a summary of a report we have written as part of our resident- and Resident Memory. The resident size is the bachelor project called Benchmarking of software for total amount of memory used by a process, but only in mobile devices. Our report aimed to provide the reader RAM (not swap). The effective resident value is equal to access to unbiased documentation regarding which kind of the resident, but it is adjusted for shared memory. That is: software is the most beneficial for use on a mobile memory that is shared by two or more processes gets platform. divided equally amongst them. INTRODUCTION Valgrind We developed an example application which mimics basic Valgrind [4] is a suite for debugging and profiling memory- functionality found in common applications, such as: related issues in Linux applications. We used two of Valgrinds tools in this project: • Reading/writing text from/to files. • Memcheck – detects memory-management problems. • Displaying 2D and 3D graphics. • Massif – a heap profiler. • Loading web pages. The Valgrind tools were primarily used when we needed to Two versions of the application were made, each version conduct a more detailed memory analysis. utilizing different graphical frameworks, respectively GTK+ [1] and Qt [2].