47
edits
| Line 180: | Line 180: | ||
See <tt>get_about_memory.py --help</tt> for more options, but you probably won't need anything other than the defaults. | See <tt>get_about_memory.py --help</tt> for more options, but you probably won't need anything other than the defaults. | ||
=== B2G Desktop Client === | |||
==== Build ==== | |||
[https://developer.mozilla.org/en-US/Firefox_OS/Building_the_B2G_desktop_client Build the B2G Desktop Client], adding these options to the | |||
[https://developer.mozilla.org/en/docs/Configuring_Build_Options mozconfig] file: | |||
ac_add_options --enable-debug | |||
ac_add_options --enable-dmd | |||
==== Launch ==== | |||
Start b2g like this: | |||
LD_PRELOAD=$OBJDIR/dist/lib/libdmd.so \ | |||
LD_LIBRARY_PATH=$OBJDIR/dist/lib/ \ | |||
DMD=1 \ # or replace the '1' with one or more DMD options (see below) | |||
$OBJDIR/dist/bin/b2g -profile $GAIA/profile-debug | |||
==== Trigger ==== | |||
[https://wiki.mozilla.org/FirefoxOS/Performance/Debugging_OOMs#Step_2.2C_option_4:_Run_B2G_on_your_desktop Send signal 34 to the b2g process]: | |||
$ killall -34 b2g | |||
The dmd gzipped log is located at ''/tmp'' directory: | |||
$ ls /tmp/dmd* | |||
/tmp/dmd-1406557150-14443.txt.gz | |||
Unzip the dmd log and run the ''fix-linux-stack.pl'' script: | |||
$ gunzip /tmp/dmd-1406557150-14443.txt.gz | |||
$ mozilla-central/tools/rb/fix-linux-stack.pl /tmp/dmd-1406557150-14443.tx > dmd-b2g.txt | |||
If you running a Mac OSX, you should use the ''fix_macosx_stack.py'' tool. | |||
=== Fennec === | === Fennec === | ||
edits