Changes

Jump to: navigation, search

B2G/QA/Tips And Tricks

520 bytes removed, 01:52, 31 January 2014
Debugging OOM
= Debugging OOM =
 
== Getting About Memory Logs for a Bug ==
 
The directions below summarize the steps to get an about memory log for a bug.
 
# git clone https://github.com/mozilla-b2g/B2G.git
# cd tools
# Right before the bug reproduces, run "python get_about_memory.py"
# Zip up the directory that was generated & attach it to this bug
 
* https://wiki.mozilla.org/B2G/Debugging_OOMs
* If you have b2g/gecko code on your computer, you should have a tools folder. Inside the tools folder you should see :
** get_about_memory.py
*** in order to run this, you will want python installed and a build placed on a device attached to your machine
*** run |adb root|
*** run |python get_about_memory.py|
*** on your computer open the URL listed in a browser. ie : about:memory?file=/Volumes/Projects/Projects/b2g18-v1train-leo/tools/about-memory-0/memory-reports
**** Sample run:
NH-MBP:tools nhirata$ python get_about_memory.py
Got 6/6 files.
Pulled files into about-memory-1.
To view this report, open Firefox on this machine and load the following URL:
about:memory?file=/Volumes/Projects/Projects/b2g18-v1train-leo/tools/about-memory-1/memory-reports
NH-MBP:tools nhirata$
[[file:memoryreport.png]]
= Data =
* QA Testing Data located : https://github.com/mozilla/qa-testcase-data
Confirm
2,959
edits

Navigation menu