From a9c71a76f5bc64d130a20045404d9edd8468fb2f Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 13 Jan 2021 19:41:56 -0800 Subject: [PATCH] add clpeak to profiling tools --- selfdrive/debug/profiling/clpeak/.gitignore | 1 + selfdrive/debug/profiling/clpeak/build.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 selfdrive/debug/profiling/clpeak/.gitignore create mode 100755 selfdrive/debug/profiling/clpeak/build.sh diff --git a/selfdrive/debug/profiling/clpeak/.gitignore b/selfdrive/debug/profiling/clpeak/.gitignore new file mode 100644 index 0000000000..d575c207c1 --- /dev/null +++ b/selfdrive/debug/profiling/clpeak/.gitignore @@ -0,0 +1 @@ +clpeak/ diff --git a/selfdrive/debug/profiling/clpeak/build.sh b/selfdrive/debug/profiling/clpeak/build.sh new file mode 100755 index 0000000000..a2413a8e34 --- /dev/null +++ b/selfdrive/debug/profiling/clpeak/build.sh @@ -0,0 +1,19 @@ +#!/usr/bin/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 +fi + +cd clpeak +git fetch +git checkout master +git reset --hard origin/master +git submodule update --init --recursive --remote + +mkdir build +cd build +cmake .. +cmake --build .