diff --git a/tools/scripts/profiling/clpeak/.gitignore b/tools/scripts/profiling/clpeak/.gitignore deleted file mode 100644 index d575c207c1..0000000000 --- a/tools/scripts/profiling/clpeak/.gitignore +++ /dev/null @@ -1 +0,0 @@ -clpeak/ diff --git a/tools/scripts/profiling/clpeak/build.sh b/tools/scripts/profiling/clpeak/build.sh deleted file mode 100755 index 5206ed0c45..0000000000 --- a/tools/scripts/profiling/clpeak/build.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -cd $DIR - -if [ ! -d "$DIR/clpeak" ]; then - git clone https://github.com/krrishnarraj/clpeak.git - - cd clpeak - git fetch - git checkout ec2d3e70e1abc7738b81f9277c7af79d89b2133b - git reset --hard origin/master - git submodule update --init --recursive --remote - - git apply ../run_continuously.patch -fi - -cd clpeak -mkdir build || true -cd build -cmake .. -cmake --build . diff --git a/tools/scripts/profiling/clpeak/run_continuously.patch b/tools/scripts/profiling/clpeak/run_continuously.patch deleted file mode 100644 index 075c65bd2a..0000000000 --- a/tools/scripts/profiling/clpeak/run_continuously.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/clpeak.cpp b/src/clpeak.cpp -index 8cb192b..b6fe6f5 100644 ---- a/src/clpeak.cpp -+++ b/src/clpeak.cpp -@@ -47,7 +47,7 @@ int clPeak::runAll() - - log->xmlOpenTag("clpeak"); - log->xmlAppendAttribs("os", OS_NAME); -- for (size_t p = 0; p < platforms.size(); p++) -+ for (size_t p = 0; p < platforms.size(); (p+1 % platforms.size())) - { - if (forcePlatform && (p != specifiedPlatform)) - continue; diff --git a/tools/scripts/profiling/palanteer/.gitignore b/tools/scripts/profiling/palanteer/.gitignore deleted file mode 100644 index 158e7b0759..0000000000 --- a/tools/scripts/profiling/palanteer/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -palanteer/ -viewer diff --git a/tools/scripts/profiling/palanteer/setup.sh b/tools/scripts/profiling/palanteer/setup.sh deleted file mode 100755 index 6f115dc86b..0000000000 --- a/tools/scripts/profiling/palanteer/setup.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -set -e - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" -cd $DIR - -if [ ! -d palanteer ]; then - git clone https://github.com/dfeneyrou/palanteer - pip install wheel - sudo apt install libunwind-dev libdw-dev -fi - -cd palanteer -git pull - -mkdir -p build -cd build -cmake .. -DCMAKE_BUILD_TYPE=Release -make -j$(nproc) - -pip install --force-reinstall python/dist/palanteer*.whl - -cp bin/palanteer $DIR/viewer diff --git a/tools/scripts/profiling/perfetto/.gitignore b/tools/scripts/profiling/perfetto/.gitignore deleted file mode 100644 index d86c89d462..0000000000 --- a/tools/scripts/profiling/perfetto/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -trace_* - -tracebox -trace_processor - -perfetto/ -configs/ diff --git a/tools/scripts/profiling/perfetto/build.sh b/tools/scripts/profiling/perfetto/build.sh deleted file mode 100755 index 24255ac3b0..0000000000 --- a/tools/scripts/profiling/perfetto/build.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -if [ ! -d perfetto ]; then - git clone https://android.googlesource.com/platform/external/perfetto/ -fi - -cd perfetto - -tools/install-build-deps --linux-arm -tools/gn gen --args='is_debug=false target_os="linux" target_cpu="arm64"' out/linux -tools/ninja -C out/linux tracebox traced traced_probes perfetto diff --git a/tools/scripts/profiling/perfetto/copy.sh b/tools/scripts/profiling/perfetto/copy.sh deleted file mode 100755 index b91d49a80b..0000000000 --- a/tools/scripts/profiling/perfetto/copy.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -DEST=tici:/data/openpilot/selfdrive/debug/profiling/perfetto - -scp -r perfetto/out/linux/tracebox $DEST -scp -r perfetto/test/configs $DEST diff --git a/tools/scripts/profiling/perfetto/record.sh b/tools/scripts/profiling/perfetto/record.sh deleted file mode 100755 index 9715a7e7e9..0000000000 --- a/tools/scripts/profiling/perfetto/record.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" -cd $DIR - -OUT=trace_ -sudo ./tracebox -o $OUT --txt -c configs/scheduling.cfg -sudo chown $USER:$USER $OUT diff --git a/tools/scripts/profiling/perfetto/server.sh b/tools/scripts/profiling/perfetto/server.sh deleted file mode 100755 index 103ad9bd84..0000000000 --- a/tools/scripts/profiling/perfetto/server.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -curl -LO https://get.perfetto.dev/trace_processor -chmod +x ./trace_processor - -./trace_processor --httpd diff --git a/tools/scripts/profiling/perfetto/traces.sh b/tools/scripts/profiling/perfetto/traces.sh deleted file mode 100755 index 17ca89da72..0000000000 --- a/tools/scripts/profiling/perfetto/traces.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -DEST=tici:/data/openpilot/selfdrive/debug/profiling/perfetto - -scp tici:/data/openpilot/selfdrive/debug/profiling/perfetto/trace_* . diff --git a/tools/scripts/profiling/py-spy/profile.sh b/tools/scripts/profiling/py-spy/profile.sh deleted file mode 100755 index 2fdbe8d16e..0000000000 --- a/tools/scripts/profiling/py-spy/profile.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash -set -e - -cd "$(dirname "$0")" - -# find process with name passed in (excluding this process) -for PID in $(pgrep -f $1); do - if [ "$PID" != "$$" ]; then - ps -p $PID -o args - TRACE_PID=$PID - break - fi -done - -if [ -z "$TRACE_PID" ]; then - echo "could not find PID for $1" - exit 1 -fi - -sudo env PATH=$PATH py-spy record -d 5 -o /tmp/perf$TRACE_PID.svg -p $TRACE_PID && -google-chrome /tmp/perf$TRACE_PID.svg diff --git a/tools/scripts/profiling/snapdragon/.gitignore b/tools/scripts/profiling/snapdragon/.gitignore deleted file mode 100644 index 80078842a0..0000000000 --- a/tools/scripts/profiling/snapdragon/.gitignore +++ /dev/null @@ -1 +0,0 @@ -SnapdragonProfiler/ \ No newline at end of file diff --git a/tools/scripts/profiling/snapdragon/README.md b/tools/scripts/profiling/snapdragon/README.md deleted file mode 100644 index 383d83ba9b..0000000000 --- a/tools/scripts/profiling/snapdragon/README.md +++ /dev/null @@ -1,13 +0,0 @@ -snapdragon profiler --------- - - -* download from https://developer.qualcomm.com/software/snapdragon-profiler/tools-archive (need a qc developer account) - * choose v2021.5 (verified working with 24.04 dev environment) -* unzip to openpilot/selfdrive/debug/profiling/snapdragon/SnapdragonProfiler -* run ```./setup-profiler.sh``` -* run ```./setup-agnos.sh``` -* run ```openpilot/selfdrive/debug/adb.sh``` on device -* run the ```adb connect xxx``` command that was given to you on local pc -* cd to SnapdragonProfiler and run ```./run_sdp.sh``` -* connect to device -> choose device you just setup diff --git a/tools/scripts/profiling/snapdragon/setup-agnos.sh b/tools/scripts/profiling/snapdragon/setup-agnos.sh deleted file mode 100755 index 9a781bf3ce..0000000000 --- a/tools/scripts/profiling/snapdragon/setup-agnos.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -# TODO: there's probably a better way to do this - -cd SnapdragonProfiler/service -mv android real_android -ln -s agl/ android diff --git a/tools/scripts/profiling/snapdragon/setup-profiler.sh b/tools/scripts/profiling/snapdragon/setup-profiler.sh deleted file mode 100755 index b97c1ae688..0000000000 --- a/tools/scripts/profiling/snapdragon/setup-profiler.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -# install depends -sudo apt update -sudo apt-get install libc++1 libc++abi1 default-jre android-tools-adb gtk-sharp2 - -# setup mono -sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF -sudo apt install apt-transport-https ca-certificates -echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list -sudo apt update -sudo apt-get install -y mono-complete - -echo "Setup successful, you should now be able to run the profiler with cd SnapdragonProfiler and ./run_sdp.sh"