링크정리...
[Android상에서 Bitmap 처리 관련 링크들 및
Out Of Memory에 대한 개인적인 방안]
Out Of Memory에 대한 개인적인 방안]
[Eclipse Memory Analyzer (MAT)]
: memory leak 확인을 위해 사용하는 툴
[Related Links]
: Eclipse Memory Analyzer Tool (MAT) 사이트
여러 자료가 링크 되어 있음.
: MAT 관련 설치, 간락한 사용법 소개
: 안드로이드 관점에서 GC와 memory leak 확인 및 처리 방법 관련 설명
: 위의 링크와 함께 봐야할 Google I/O 2011 세션 동영상 (Google I/O 2011: Memory management for Android Apps)
: 일반적인 메모리릭 예제 및 조언
: 메모리릭 확인 및 해결 실제 예제
[Installation]
2. Installation
Install Eclipse MAT via the Eclipse Update manager Select General Purpose Tools and install theMemory Analyzer and Memory Analyzer (Charts) .
|
[How to use]
: 간략 버전
|
* 5번 단계가 끝나면 리포트가 나오게 되는데 리포트에서
dominator_tree view를 선택한뒤 의심이 가는 항목을 선택하고 오른쪽 클릭 후 > Path To GC Roots > exclude weak references 를 선택하여 leak 원인 확인
=> 관련 내용은 위에 링크된 Google I/O 동영상에서 29-35분 사이를 참고.
1.3. Use the Eclipse Memory Analyzer
After a new heap dump with the
.hprof ending has been created, you can open it via a double-click in Eclipse. You may need to refresh your project (F5 on the project). Double-click the file and select theLeak Suspects Report.![]()
The overview page allows you to start the analysis of the heap dump. The dominator tree gives quickly an overview of the used objects.
![]() |
[Profiling with Traceview and dmtracedump]
댓글 없음:
댓글 쓰기