Performance/MemShrink/DMD: Difference between revisions

m
gdb
m (gdb)
Line 31: Line 31:
To run DMD on a desktop build (including Firefox and B2G desktop), you need to precede your usual invocation of Firefox with three environment variable definitions.
To run DMD on a desktop build (including Firefox and B2G desktop), you need to precede your usual invocation of Firefox with three environment variable definitions.


On Linux, do this:
On Linux, from a bourne-style shell, do this:


   LD_PRELOAD=$OBJDIR/dist/lib/libdmd.so \
   $ LD_PRELOAD=$OBJDIR/dist/lib/libdmd.so \
   LD_LIBRARY_PATH=$OBJDIR/dist/lib/ \
   > LD_LIBRARY_PATH=$OBJDIR/dist/lib/ \
   DMD=1 \
   > DMD=1 \
   <command>
   > <command>
 
If you are feeling masochistic enough to want to run DMD under gdb, one way is to do this:
 
  $ gdb --args <command>
  (gdb) set exec-wrapper env LD_PRELOAD=[path_to_lib]/libdmd.so LD_LIBRARY_PATH=[path_to_lib]/ DMD=1
  (gdb) run


On Mac OS X, do this:
On Mac OS X, do this:
Confirmed users
269

edits