<commit_before>#!/bin/bash

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../gperftools/.libs
export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:../gperftools/.libs

env LD_PRELOAD=../gperftools/.libs/libprofiler.so \
    DYLD_INSERT_LIBRARIES=../gperftools/.libs/libprofiler.dylib \
    CPUPROFILE=report.prof ./build/testharness $@

../gperftools/src/pprof --text build/testharness report.prof<commit_msg>update gperftools-testharness.sh<commit_after>#!/bin/bash

export GPERFTOOLS_ROOT=../gperftools
export GPERFTOOLS_REPORT=report.prof
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GPERFTOOLS_ROOT/.libs
export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:$GPERFTOOLS_ROOT/.libs

env LD_PRELOAD=$GPERFTOOLS_ROOT/.libs/libprofiler.so \
    DYLD_INSERT_LIBRARIES=$GPERFTOOLS_ROOT/.libs/libprofiler.dylib \
    CPUPROFILE=$GPERFTOOLS_REPORT ./build/testharness $@

$GPERFTOOLS_ROOT/src/pprof --text build/testharness $GPERFTOOLS_REPORT
{'fraction_non_alphanumeric': 0.11839323467230443, 'fraction_numerical': 0.0, 'mean_word_length': 6.229007633587786, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6782506', 'n_tokens_mistral': 418, 'n_tokens_neox': 392, 'n_words': 32}