build/unix/run-hiprof.sh
author rhelmer@mozilla.com
Wed, 02 May 2007 22:47:56 -0700
changeset 1038 05a66eda8320154c6ba0846a1185d037c68ce7fd
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
set timeout for parent window to fire after child window. b=379484 r=bzbarsky

#!/bin/sh

LD_LIBRARY_PATH=.
export LD_LIBRARY_PATH

PROG=mozilla-bin
PLIBS="-L."

TOOL=hiprof

for l in ./*.so components/*.so; do
    PLIBS="$PLIBS -incobj $l"
done

$ECHO atom $PROG -tool $TOOL -env threads -toolargs="-calltime -systime" -all $PLIBS

cd components && (
    for f in lib*.so; do
        mv ../$f.$PROG.$TOOL.threads .
    done
)