'debug'에 해당되는 글 2건
- 2011.05.25
- 2011.02.19
To execute Callgrind:
valgrind --tool=callgrind --instr-atstart=no --dump-instr=no --smc-check=all --collect-jumps=yes [executable] [argument]
--tool= callgrind : use callgrind tool on valgrind
--dump-instr=no : we are not interested in assembly code level.
--instr-atstart=no : do not start the instrumentation of callgrind while staring.
Because we are only interested in the profiling while rendering webpage.
--smc-check=all : This option controls Valgrind's detection of self-modifying code.
JIT::linkCall function modifying the jitted code, so valgrind must check self modification.
--collect-jumps=yes : Get the information for (conditional) jumps.
--main-stacksize=110000000 : set stack size --toggle-collect=PVR::WebView:oDraw* : Set starting method
To control instrumentation, execute below on the terminal.
callgrind_control -i on : start the instrumentation
callgrind_control -i off : end the instrumentation
callgrind_control -k : kill the Valgrind process.
Ok, output of collected data will be saved at
callgrind.out.[pid]
on the working directory.
So you can read this information from kcachegrind.
|
Qt Build (2) | 2011.09.23 |
---|---|
Regular Expression (1) | 2011.06.06 |
kcachegrind 없이 코딩 어떻게 해? (0) | 2011.05.25 |
Wiki 문법 (0) | 2011.03.08 |
WinCE Memory Leak 잡기 (0) | 2011.03.03 |
Quick Reference Cards (0) | 2011.02.26 |
핵의학 길잡이 (1) | 2011.06.03 |
---|---|
Java Concurrency in Practice (0) | 2011.05.15 |
Debug it! 실용주의 디버깅 (1) | 2011.02.19 |
생각하는 뇌, 생각하는 기계 (0) | 2010.09.20 |
읽고싶은 개발 서적 (0) | 2010.08.10 |
Java책 추천 (0) | 2010.07.28 |