[EMAIL PROTECTED] wrote:
Selon [EMAIL PROTECTED]:
Selon Guillaume Pothier <[EMAIL PROTECTED]>:
Make sure the profiler runs a little bit longer. 20 seconds cumulative
or so. With 4.74 seconds there's a lot of statistical noise
Done, now 23s.
I updated the file at the same URL:
http://www.dcc.uchile.cl/~gpothier/gprof.out
One question: are you sure that your Qt is compiled with optimisation and debug
disabled? I've read somewhere that it makes a big difference (similar to the
stdlib_debug one). Looks like the QHash searching takes a lot... Same question
for your boost installation.

Abdel.
On some systems, build of qt passes the "-g" option to the c++ compiler by default (which was true for me). However, removing it (pass --separate-debug-info=no explicitly to configure) didn't improve the performance. Its configure has the following code:

> CFG_SEPARATE_DEBUG_INFO=auto
>
> ...
>
> # auto-detect support for separate debug info in objcopy
> if [ "$CFG_SEPARATE_DEBUG_INFO" != "no" ] && [ "$CFG_SHARED" = "yes" ]; then > TEST_COMPILER_CFLAGS=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%QMAKE_CFLAGS
> [^_].*=%%p' | tr '\n' ' '`
> TEST_COMPILER_CXXFLAGS=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%QMAKE_CXXF
> LAGS[^_].*=%%p' | tr '\n' ' '`
> TEST_CXX_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]"
> | sed "s%.* *= *\(.*\)$%\1%" | tr '\n' ' '`
>     COMPILER_WITH_FLAGS="$TEST_CXX_COMPILER $TEST_COMPILER_CXXFLAGS"
> COMPILER_WITH_FLAGS=`echo "$COMPILER_WITH_FLAGS" | sed -e "s%\\$\\$QMAKE_CFL
> AGS%$TEST_COMPILER_CFLAGS%"`
> if "$unixtests/objcopy.test" "$COMPILER_WITH_FLAGS" "$OPT_VERBOSE"; then
>        CFG_SEPARATE_DEBUG_INFO=no
>     else
>        case "$PLATFORM" in
>        hpux-*)
>            # binutils on HP-UX is buggy; default to no.
>            CFG_SEPARATE_DEBUG_INFO=no
>            ;;
>        *)
>            CFG_SEPARATE_DEBUG_INFO=yes
>            ;;
>        esac
>     fi
> fi
>
> ...
>
> if [ "$CFG_SEPARATE_DEBUG_INFO" = "yes" ]; then
>     QMakeVar add QMAKE_CFLAGS -g
>     QMakeVar add QMAKE_CXXFLAGS -g
>     QMAKE_CONFIG="$QMAKE_CONFIG separate_debug_info"
> fi


Koji

Reply via email to