massif를 이용하면 메모리 사용량을 알 수 있습니다.
역시 valgrind tool중 하나 입니다.
luxtella@luxtella-T5500:bin(qt4.8.1)> valgrind --tool=massif ./QtTestBrowser
이렇게 실행하면 massif.out.8919 이런파일이 dump됩니다.
luxtella@luxtella-T5500:bin(qt4.8.1)> massif-visualizer ./massif.out.8919
이렇게 gui tool로 보면
1. 어느 모듈이 시간에 따라 얼마나 메모리를 사용했는지 알수 있고
2. 각 구간별로 그 메모리를 어떤 연유로 사용하게 됬는지 알 수 있습니다.
이게 편한 기능인데 WebKit안에서는 모두 fastMalloc으로 heap을 잡기 때문에 누가 heap을 잡았을까가 궁금한 부분이 잖아요.
'Technology > Webkit' 카테고리의 다른 글
WebKit Filters Animation Internal (1) | 2012.10.20 |
---|---|
WebKit2 Injected Bundle (1) | 2012.10.15 |
oprofile (2) | 2012.06.02 |
massif 메모리 사용량을 측정하자 (0) | 2012.05.31 |
cachegrind in valgrind (5) | 2012.05.31 |
WebKit2 Rendering 분석 (only if using Texture Mapper) (1) | 2012.01.28 |
Trackback 1 and
Comment 0