CodingForOOo4Kids/Profiling

From Wiki.ooo4kids.org

Jump to: navigation, search

Contents

First: Get OOo4kids source and compile

To compile sources: global instruction

For Ubuntu: User:Benbois/Sandbox

For Mandriva: User:Matt1/sandbox/compilation_mandriva

Second: Get tools

Install Valgrind, Kcachegrind and graphviz on your system. Callgrind is included with Valgrind.

Mandriva

urpmi Kcachegrind valgrind graphviz

third: execute valgrind

valgrind --tool=callgrind --separate-threads=no --instr-atstart=yes ./soffice
valgrind --tool=callgrind --separate-threads=no --instr-atstart=yes ./soffice -swriter

Fourth: execute Kcachegrind

You can sort by function, source etc...

Fifth: see source code

If you want to see source code, you need to recompile module where is the librairie, with option debug.

rm -rf unxlngi6.pro
build --ENVCFLAGS+=-g -P2

Bibliography

http://wiki.services.openoffice.org/wiki/Callgrind

http://wiki.services.openoffice.org/wiki/Valgrind

http://kcachegrind.sourceforge.net/html/Documentation.html


Matt1 18:51, 1 May 2010 (UTC)

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox