profile_glyphcache.sh 545 Bytes
Newer Older
Michael Winkelmann's avatar
Michael Winkelmann committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/bin/bash
export QT_LOGGING_RULES=qt.scenegraph.time.glyph.debug=true

#CALLGRIND_OPTIONS=--toggle-collect="QSGDistanceFieldGlyphCache::update()"

OUTPUT_DIR=profiledata

mkdir $OUTPUT_DIR

function callgrind() {
    valgrind --tool=callgrind ${CALLGRIND_OPTIONS} \
        --callgrind-out-file=$OUTPUT_DIR/$1.$2.out \
        --log-file=$OUTPUT_DIR/$1.$2.callgrind.log \
        ./glyphcache_test $1.txt $2 > $OUTPUT_DIR/$1.$2.log 2>&1    
}

callgrind
callgrind korean QT
callgrind german QT
callgrind korean NATIVE
callgrind german NATIVE