build/unix/run-hiprof.sh

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build/unix/run-hiprof.sh	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +#!/bin/sh
     1.5 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.8 +
     1.9 +
    1.10 +LD_LIBRARY_PATH=.
    1.11 +export LD_LIBRARY_PATH
    1.12 +
    1.13 +PROG=mozilla-bin
    1.14 +PLIBS="-L."
    1.15 +
    1.16 +TOOL=hiprof
    1.17 +
    1.18 +for l in ./*.so components/*.so; do
    1.19 +    PLIBS="$PLIBS -incobj $l"
    1.20 +done
    1.21 +
    1.22 +$ECHO atom $PROG -tool $TOOL -env threads -toolargs="-calltime -systime" -all $PLIBS
    1.23 +
    1.24 +cd components && (
    1.25 +    for f in lib*.so; do
    1.26 +        mv ../$f.$PROG.$TOOL.threads .
    1.27 +    done
    1.28 +)

mercurial